Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: suse 9
Web server: Apache
Perl version: 5.005
Client OS: Windows XP
Web Browser: i-explorer
Categories: Missing functionality

-- VaidyGanapathy - 30 Jan 2007

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.

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

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-02-08 - VaidyGanapathy
 
  • 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.