PDA

View Full Version : Highlighting the occurance of certain words selected from a textAreaField



chandran09
21 Dec 2011, 10:33 PM
Hai,

I want to check the occurance of certain keywords in the textAreaField. If the word is present, i want to highlight that word in some form either in html format or anything else. Please help me to find an answer for how to check the keywords in the textField with certain predefined set of keywords as well as how to highlight those words in case of a match. I'm in an urgent need. Please help me as soon as possible.


Thanks in advance :)

sruthi v m
21 Dec 2011, 10:41 PM
hi...
i'm looking for the same..

slemmon
22 Dec 2011, 1:07 PM
I don't know of a way to do it in Ext's library. I've looked before and didn't see anything (perhaps I overlooked it).

You might try looking at the following script:
http://webcloud.se/log/Selecting-text-with-JavaScript/