hiliting all instances of a string in a field
Trevor DeVore
lists at mangomultimedia.com
Wed Mar 3 19:16:21 EST 2004
On Mar 3, 2004, at 5:02 PM, Dar Scott wrote:
> On Wednesday, March 3, 2004, at 04:44 PM, Trevor DeVore wrote:
>
> This example does not check that it is in a link. Maybe that is
> straightforward to add, maybe with a compromise and checking only that
> the linkText of the first character is empty.
This doesn't need to check if the text is a link. The problem I was
having with links before was that I had <a> tags in the htmlText that
had text in them e.g. <a href=name=bob>My Name</a>. Doing a search for
bob in the htmlText would find bob in the <a> tag which I didn't want.
The code I'm using now searches the plain text so there isn't a problem
of getting results from the <a> tag. Make sense?
--
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com
More information about the use-livecode
mailing list