Tags:
create new tag
, view all tags

Question

I have an html form like:

<td valign = "top">
<form name="testing2" action="%SCRIPTURLPATH{"view"}%/%WEB%">
<select name="topic" size=10>
<option>MyList...</option>
   %SEARCH{ search="META\:FORM.*[F]unForm;META\:FIELD.*[N]ameFun.*value\=.*" type="regex" topic="*" nosearch="on" nototal="on" order="$topic" format="<option value=$topic>$topic</option>" }%
</select>
</form>

I wish to have the listed Topics in their hyperlink form, so that I do not have to include the ( <input type="submit" value="Go" /> ) to reach the topic selected.

Thanks in advance.

Environment

TWiki version: TWikiRelease04x02x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian
Web server: Apache
Perl version: ?
Client OS: Windows XP
Web Browser: Firefox
Categories: Forms

-- AlainLavoieDexto - 25 Aug 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

-- RafaelAlvarez- 25 Aug 2008

Thanks for your quick response. I have tested your suggestion, but I end up with an empty list on my SEARCH. The example on this page does not shows any hyperlink. I did not know about the onClick possibility. Do you have a page on twiki where this syntax is used and where the listed topics are shown as hyperlinks ?

-- AlainLavoieDexto - 25 Aug 2008

> I end up with an empty list on my SEARCH.

Your search wasn't returning any results because the quotes inside format had to be escaped: format="...\"...\"..."

> The example on this page does not shows any hyperlink

The items don't appear to be hyperlinked since the window is opened by javascript, not by clicking on an anchor tag ( <a href=blahblah> ).

Starting with an example I found I had to change some other things to get this to work:

  1. the event has to be on the select, not the option
  2. onClick isn't a select box event

AlainLavoieDexto's support topics:

-- SeanCMorgan - 25 Aug 2008

Wow.... Excellent. It works fine. What is the proper behavior: This answers correctly my question, but I wish to continue to elaborate on this example, for further questions. Should I change the status to Close and request another support question or continue on this subject ?

-- AlainLavoieDexto - 27 Aug 2008

If it's an elaboration, you should probably re-open the question, so that you don't lose the history (it provides the context of what you're requesting elaboration).

A new question is best if it's a different subject, or if the discussion has been long and branching.

-- SeanCMorgan - 28 Aug 2008

 
Topic revision: r6 - 2008-08-28 - SeanCMorgan
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.