in reply to Displaying cgi-tmpl file in new window

Specify name of the script that you want to call on submit in a href itself and pass the variable as a parameter using ? format as follows: <a href="name of script"?param name=<TMPL_VAR NAME="value"> This must solve your purpose.
  • 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 Anonymous Monk on Jul 08, 2004 at 22:42 UTC
    I tried all suggested solutions-each of them has it's own problem. I am posting the summary here-in the hope that someone can help me get one of them working:

    1. Specify target="_blank" in anchor tag-
    No page is displayed-cgi script does not get called.

    2. Specify target="_blank" in <form> tag-
    Seems to be my best option so far-displays in a new window but I cannot customize the window.

    3. Call openWindow function. In openWindow function:
    pageURL = eval("http:\/\/127.0.0.1\/cgi-bin\/prepareDispatch.cgi?subNu +mber="+subNo+"&whichForm=Dispatch"); popupwin = window.open(pageURL,'','toolbar=no,scrollbars=yes,location= +no,width=' + 800 + ',height=' + 650); popupwin.focus();
    In the above code, pageURL is returned as undefined. The eval function is fine-I checked that on a website but pageURL is not initialized to whatever the eval function returns. So far, the second option seems to be working except that I'd like to take this one step further and customize the target window-for which I need to get pageURL above initialized. Comments? Thanks!
      See the update to my reply above.
      wfsp
        Accept my apologies-I stopped checking devshed when I did not get a reply for like a week after my original post (and 2 days after the reminder). Guess that was the wrong thing to do. Thanks for your help-I'll come back with the result :-) or more problems :-(
        Update:Problem solved. Thanks!