Highlight specific word/phrase/text?

Questions, tips and tricks and techniques for scripting in Servoy

Highlight specific word/phrase/text?

Postby john.allen » Wed Oct 30, 2013 3:28 am

I know how to locate a specific word, phrase or text within a text field and I know how to change the color of a entire record or field. But I can't seem to find a way to highlight just the 'chosen' text within a text field. This could involve simply changing the font color or highlighting the chosen text. Can this be done? I would think it could be since it is similar to doing a search for a word on any web page. This is Servoy 6.1.6 in web client.
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Highlight specific word/phrase/text?

Postby goldcougar » Wed Oct 30, 2013 6:51 am

Use this with the WebClientUtils plugin on Servoy Forge http://bartaz.github.io/sandbox.js/jque ... light.html
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
goldcougar
Servoy Expert
 
Posts: 688
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: Highlight specific word/phrase/text?

Postby john.allen » Wed Oct 30, 2013 7:36 am

Cool. Thanks Scott. Somehow imagined it was in Servoy itself and I was just missing it.
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA


Return to Methods

Who is online

Users browsing this forum: No registered users and 2 guests