in reply to Displaying cgi-tmpl file in new window

I find it easier to open a new window with javascript, you can set the size, and, perhaps, pass a query holding your variable.
Call your cgi script during the onload event.
There is more than one way to do it though.
There are many js tutorials (1000's) that can help you and it would be a waste duplicating it here.
Google is your friend!
wfsp
  • Comment on Re: Displaying cgi-tmpl file in new window

Replies are listed 'Best First'.
Re^2: Displaying cgi-tmpl file in new window
by thisisperl (Novice) on Jul 07, 2004 at 20:08 UTC
    Yeah-I do rely on Google a lot-I just don't know what to search on here.
    The way I understand your response-can you confirm this is what you are saying:
    1. In the anchor tag, call a windowOpen JS function (pass hidden parameter value to it, say 'Temp').
    2. In the windowOpen JS function:
    a)Set hidden variable to the passed value (MyVar=Temp)
    b)Call window.open and customize
    c)Set window.onLoad = <path to my cgi file>
    In this case, will the variable MyVar still be accessible in the CGI script?
    Thanks!
      Set window onload to call a function. This would tack a '?' and the variable (having escaped it) onto the end of the cgi filename. Call the script.
      'javascript tutorial window.open' would give you a good start.
      wfsp

      update:
      I've posted a script you could use in the question you posted to devshed.
      Thankfully, it is very similar to the other reply. I'm not completly mad yet!
      Apologies to all for any OT infringments
      wfsp