Question
I have a simple form created using standard HTML form tags. There is nothing special about the form. It takes some simple input and runs a Perl-CGI script in the background.
What should I do such that the result of the cgi-script ( print statements et.al ) appear within the twiki framework. i.e. I would like to retain the side-bar, top screens and display the result similar to how any twiki topic looks like.
Environment
--
VaidyGanapathy - 30 Jan 2007
Answer
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.
You could simply
%INCLUDE{"http://localhost/cgi-bin/ticker.cgi"}% to run the cgi script and render it in the wiki topic. You could also do that in an IFrame, see
IFrameExample.
If needed you can create a form asking for parameters, and pass that along to the script via URL parameters, such as
%INCLUDE{"http://localhost/cgi-bin/ticker.cgi?symbol=%URLPARAM{symbol}%"}%.
See example
TWikiInstallation. Learn more at
TWikiVariables and
TWikiTemplates.
--
PeterThoeny - 30 Jan 2007
Thanks Peter, I am yet to try this but thanks again for the response.
--
VaidyGanapathy - 02 Feb 2007
Able to use iframes to render cgi scripts that have known parameters. Thank you.
--
VaidyGanapathy - 08 Feb 2007