SID-00133: Search clicked word from hyperlink
| Status: |
Answered |
TWiki version: |
4.0.4 |
Perl version: |
|
| Category: |
CategorySearch |
Server OS: |
VMWare Appliance Build |
Last update: |
16 years ago |
I'm using:
%SARCH{"text" web="all"}%
This works well. But I have a table of keywords I want to be searchable when the word is clicked. If I use the code above in a hyperlink it is automatically searched when the topic is viewed rather than when the user clicks the hyperlink.
Is there a way to create hyperlinks on the words and not have the search performed until the user clicks the word? Then either pop a new window with the search results or still have them embedded in the topic?
I've searched high and low and cannot find a way to suppress the search until the user clicks the keyword.
Thanks much!
Mark
--
MarkTrevithick - 25 Feb 2009
Discussion and Answer
Click here to search for this
word in a new window.
Raw code is this
Click here to search for this
<a href="%SCRIPTURL{"view"}%/%WEB%/WebSearch?search=word&scope=all&web=all" title='Click to search' target='_blank'>word</a>
in a new window.
--
EnriqueCadalso - 25 Feb 2009
Enrique, if I was a millionaire I would pay someone to fly to you and give you the biggest high five, kiss, hug, whatever!!!!
You are a lifesaver. I have been trying to figure this out for two days solid and obviously my forte is not HTML.
THANK YOU SOOOOO MUCH!!!!!!!! I seriously cannot thank you enough. This is EXACTLY what I was looking for.
Mark
--
MarkTrevithick - 25 Feb 2009
Thank you. I would like to be a millionaire too.
--
EnriqueCadalso - 26 Feb 2009
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.