[Javascript] Re: targeting popup windows

Bill Marriott bill.marriott at optusnet.com.au
Mon Oct 22 21:24:19 CDT 2001


Hi Everyone,

I'm having trouble getting a document (myhelp) to load in a popup window
(helpPop).
Because I need to post a variable before the document is loaded (to filter
the records)
I am using a form.

<FORM METHOD=POST Name="helpForm" ACTION="$WEB_HOME"  TARGET="helpPop">
<INPUT TYPE="hidden" name="PAGE" Value=5>

and Javascript to build the new window. (  by the way $WEB_HOME and MIval
are Informix)

var helpPop;
function showHelp()
{ 
   helpPop = open("","","SCROLLBARS=YES,RESIZABLE=YES,WIDTH=450,HEIGHT=500,LEFT=350,TOP=50");
   if (!helpPop.opener) helpPop.opener = self;
   document.helpForm.MIval.value='myhelp';
   document.helpForm.submit();   
}    

However the document opens in another window, after the blank helpPop window opens.
Can anyone see what I'm doing wrong?

thanks

Bill





More information about the Javascript mailing list