Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: CGI::Application - how to get a popup window

by gryphon (Abbot)
on Aug 21, 2006 at 15:17 UTC ( #568572=note: print w/replies, xml ) Need Help??

in reply to CGI::Application - how to get a popup window

Greetings jdtoronto,

CGI::Application is a Perl module, so it helps organize work that needs to be done server-side. Opening a pop-up window is a client-side function, so it requires Javascript (unless you just want a new, full-size window, in which case you can just use an anchor target). In the returned HTML for the page, add something like this:

<script type="text/javascript"> "your-cgi-wrapper.cgi?rm=popupstart", "popup", "width=500" ); </script>

Obviously, "popupstart" is the run-mode of the first page of the pop-up.

gryphon Development Manager (WDDC)
code('Perl') || die;

Replies are listed 'Best First'.
Re^2: CGI::Application - how to get a popup window
by jdtoronto (Prior) on Aug 21, 2006 at 18:57 UTC
    Thanks gryphon, I had it in my head that I could do it with headers without having to use the JavaScript, but the JS method works so why not!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://568572]
[hippo]: Why not?
[1nickt]: That's good! I suppose the cpanfile would be the same however the app distro is structured ...
[1nickt]: hippo no reason why not other than wanting to check an assumption :-)
[hippo]: For a self-contained application which can therefore ensure thread safety it seems like a sensible approach.
[choroba]: No, if there are no threads, then the user wants to use MCE. If there are threads, the user can choose.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (16)
As of 2017-10-18 13:16 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (244 votes). Check out past polls.