Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Re: targeting popup windows


  • From: javascript@xxxxxxxxxx (Bill Marriott)
  • Subject: [Javascript] Re: targeting popup windows
  • Date: Tue, 23 Oct 2001 12:24:19 +1000

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