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!
|