Hi everyone,
I would firstly like to say hello to everyone as this is my first time at tek-tips.com.
I'm making a dynamic popup of user names as the user is entering them. I was wondering if anyone had any tips for making an accent insensitive search using javascript.
Here's my setup:
My issue is that if people don't enter the accented charater, they won't get the results that have accented characters such as ê and é.
Does anyone have any suggestions?
Thanks in advance,
HardingD
I would firstly like to say hello to everyone as this is my first time at tek-tips.com.
I'm making a dynamic popup of user names as the user is entering them. I was wondering if anyone had any tips for making an accent insensitive search using javascript.
Here's my setup:
Code:
for(i = 0; i < arrName.length; i++)
{
if([b]arrName[i].toLowerCase().indexOf(searchValue)[/b] == 0 && searchValue.length != 0)
{
fillBox.innerHTML += '<div class="peopleSearch" >+ arrName[i] + '</div>';
results ++;
}
}
Does anyone have any suggestions?
Thanks in advance,
HardingD