Best way to turn off hit highlighting

Post Reply
Mr. Bigglesworth
Posts: 56
Joined: Fri Feb 16, 2001 6:54 pm

Best way to turn off hit highlighting

Post by Mr. Bigglesworth »

I'm running a query and highlighting the search term in my vortex page results.

However, I have a javascript function I later call, into which I pass the search term, and I'd like to disable highlighting completely when passing in the function parameters (to avoid the <B> </B> tags), and am not sure the best way to go about this.

Would <fmtcp query "%m" $mmfmt> work? I've tried it, and it seems to work, but not every time.

Perhaps I'm doing something wrong, not sure, but I was curious if you had another way to go about this. Thanks!
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Best way to turn off hit highlighting

Post by Kai »

Just turn it off with </mm> and back on later with <mm>:

blah blah highlight $thisvar and $thatvar
</mm>do not highlight $anothervar <mm> but highlight $yetanothervar

<mm> and </mm> turn on/off highlighting that is automatically done by <fmtcp query>.
Post Reply