Results 1 to 2 of 2

Thread: Highlight a word in a extjs page by comparing it with words in database.

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Vote Rating

    Default Highlight a word in a extjs page by comparing it with words in database.

    I need to create some advertisements with some text contents in it in a page called addcreation page,for some company. It's the company who ,depending on their like and dislike, approves the advertisement. for their approval, I have created a seperate page called approval page. Now what i need is the company can specify and save some words(exmple:bad words) that they never wants to be in their advertisements. If the advertisements created by me contains any of those words ,then in the approval page those words must be highlighted(or any other user intimation for bad words must be displayed.).Please help me to highlight those words in my second page,i.e, in my approval page.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    If you have a string, then you can use RegEx to search and replace with a <span> to style the word
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch

Posting Permissions

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