1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    13
    Vote Rating
    0
    chandran09 is on a distinguished road

      0  

    Default Unanswered: Highlighting the occurance of certain words selected from a textAreaField

    Unanswered: Highlighting the occurance of certain words selected from a textAreaField


    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

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    7
    Vote Rating
    0
    sruthi v m is on a distinguished road

      0  

    Default


    hi...
    i'm looking for the same..

  3. #3
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,124
    Answers
    405
    Vote Rating
    188
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    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/

Thread Participants: 2