Tags:
create new tag
view all tags

Question

Forgive me, I'm new to Twiki but I've done a lot of HTML form creation via cgi and I'm having a bit of a mental block figuring out dynamic forms in twiki (ideally based on MySql). I've looked at the Database and DBI plugins but they don't appear to allow me to create dynamic forms (or do they?).

I would like to have a form drop-down which represents a list of servers and then upon selecting a server, have a custom topic showing some specific columns from a mysql table.

Is there a way to build dynamic forms with twiki? I'm using php to include from twiki but I'd rather do it in twiki if possible. The output can't just be a plain table -- I have to build a form.

Could someone post the code used to build a dynamic drop-down and pass to another topic and then have the topic read from the URL to know the argument passed to it and then set form data after doing an SQL query? Since I'll be displaying the same drop-down in the new topic, I want to do the equivelent of a document.form.dropdown[0].selected=true.

I think once I see an example, I'll understand.

I also note that the %include% tag seems to strip out javascript. So my included php scripts that return javascript don't work. Is this normal? If I just put the javascript in a twiki page, it works. Just doesn't when including.

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 5.8
Web server: Apache 2
Perl version: 5.8.6
Client OS: MS Windows XP, sp 2
Web Browser: Firefox
Categories: Forms, Javascript, Plugins

-- ChrisElfers - 20 Dec 2005

Answer

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.

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-02-04 - 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.