Tags:
create new tag
view all tags

SID-00133: Search clicked word from hyperlink

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Search clicked word from hyperlink
SupportCategory CategorySearch
TWiki version 4.0.4
Server OS VMWare Appliance Build
Web server

Perl version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2009-02-26 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.