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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.