Just for the record, there's another bug with IE when you search for a
pattern (let's say "e") in a sentence containing two or more
occurences of this pattern together (for example: "Feel"). This is due
to a strange way (I call it a bug) that IE has to deal with the split
() method. I suggest that
There is a bug in the previous code with Internet Explorer.
To fix it, replace this:
###
// If its not the last part, add the accented and highlighted term to
the final value
if (n < everything_except_term.length - 1)
{
// Get the term with the original accentuation and a
So, I tried something similar to what I had in mind and was able to
get it working. I'll put it here in case anyone wants it:
# ORIGINAL CODE #
highlight: function(value, term) {
return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" +
term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?
Thank you both for your answers!
I was already considering using Eric's idea of stripping the accents
and comparing the words. Since this would apply to highlighting (too
many h's and g's in this word!) a typed word in a sentece, I think I
would have to do something like that:
Let's suppose I ha
Autocomplete plugin:
http://docs.jquery.com/Plugins/Autocomplete
As in the subject, I want to be able to highlight the words accents-
insensitivily. Example: if I type "Jose", "José" would be highlighted
and vice-versa ("José" would highlight "Jose"). Is there anyway to do
it? I'm willing to make
5 matches
Mail list logo