21 Dec 2011 10:29 PM #1
Unanswered: 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.
22 Dec 2011 11:28 AM #2
- 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 wordMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.