in reply to Opening an HTML::Template page in new window

How about, in your parent page, calling window.open with the name of your cgi script that processes and displays the HTML::Template template file? -imran
  • Comment on Re: Opening an HTML::Template page in new window

Replies are listed 'Best First'.
Re^2: Opening an HTML::Template page in new window
by bradcathey (Prior) on Apr 26, 2006 at 12:51 UTC

    Perfect. Not really a Perl thing, but here's what worked:

    HTML: <a href="javascript:help('homehelp');"> <img src="../images/help.gif" alt="home" /></a> JAVASCRIPT: function help (tmpl_to_open) { window.open("http://foobar.com/instances/help?rm=sh&pg="+tmpl_to_o +pen,"optional_page_name","scrollbars=1,location=0,directories=0,statu +s=0,width=550,height=375,toolbar=0,menubar=0,resizable=0"); }

    Thanks!


    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot

        Point well taken. Unless, of course, it is a closed system that *requires* Javascript to be enabled. Which this is.

        Now, back to Perl everybody :)


        —Brad
        "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
      Hi,
      Just do 'alert' the  window.open parameter. And one more thing while setting optional parameters in the window.open function,
      "scrollbars=1,location=0,directories=0,statu +s=0,width=550,height=375,toolbar=0,menubar=0,resizable=0"

      I guess it might be like
      "scrollbars=1;location=0;directories=0;statu +s=0;width=550;height=375;toolbar=0;menubar=0;resizable=0"
      Before that, Try with some static pages and make sure that javascript is working fine. Otherwise i'm sure that you may miss some values which is dynamically passing into the  window.open function.
      Thanks.
      -kulls