Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    ~J~
    ~J~ is offline
    New to the CF scene
    Join Date
    May 2004
    Location
    Swansea
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Non case sensitive searching

    Hi all,

    Hopefully some of you can help em with a problem that I'm losing my mind with...!

    I have some javascript functions that traverse through nodes in an XML file, pulling out values that I specifiy.

    The problem(s) I have are as follows...

    function verifiyDistName(distName)
    {
    var matchedNodes = xmlDoc.selectNodes('//DistributionLists/List1/* [N="' + distName + '"]');
    if (matchedNodes.length==1)
    {
    return true
    }
    }

    This returns true if a value matches what I specify in the function parameter, the MAJOR problem is it's case sensitive! So searching for "Jim" will return a value, but searching for "jim" won't!

    I've found the following URL (http://support.microsoft.com/default...;EN-US;q315719) which offers some explanation, but I just can't see how to implement this, or indeed if this is the solution, into my function.

    Any help would be really appreciated on this matter....


    TIA

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Perhaps this link will help:
    http://www.experts-exchange.com/Web/..._20873726.html

    Good luck,
    Sadiq.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •