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

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

Replies are listed 'Best First'.
Re^3: Opening an HTML::Template page in new window
by dorward (Curate) on Apr 26, 2006 at 13:10 UTC

      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
Re^3: Opening an HTML::Template page in new window
by kulls (Hermit) on Apr 28, 2006 at 04:30 UTC
    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