Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pop up window problem

Status
Not open for further replies.

shakes911

ISP
Jul 3, 2001
2
GB
hi, i'm using a form to select items from 2 dropdown menus, which, when posted is processed by a perl script on another site. I want the results of this query to be displayed in a pop-up window with a frameset. the top frame is the nav bar and the content frame containing the results of the query. does anyone have any idea how to do this?
 
yes : <form ... target=&quot;_blank&quot;> will open the page sent back by the server in a pop up ------
please review FAQ183-874 - this will help you to get the best out of tt
[ &quot;you&quot; is not someone in particular - don't take it too personnal ]
 
The way I have achieved this in the past is to open a window with a hidden form pass the parameters to this form and call the new forms submit method (Calling your server side query).

This will create the perception of a query entered in one window having the result posted in another

Tip in the new window show a message such as data loading or something similar, to keep users from getting impatient if there are any delays

EG

Code:
function infoCreator(teamNo,membNo)
{
   
   if (!infowin || infowin.closed)
   {
      infowin=window.open(&quot;teamdetail.html&quot;,&quot;mem&quot;,&quot;menubar=yes,width=360,height=200&quot;);
   }
   else
   {
      infowin.close();
	  infowin=window.open(&quot;teamdetail.html&quot;,&quot;mem&quot;,&quot;menubar=yes,width=360,height=200&quot;);
   }
   infowin.document.forms['teamForm'].elements['_team'].value = teamNo;
   infowin.document.forms['teamForm'].elements['_memb'].value = membNo;
   infowin.document.forms['teamForm'].submit();
  
}
 
hie
didnt checked my suggestion myself, but what about
<form ... target=&quot;windowname.frames.framename&quot;> ?
i mean this window named windowname must be opened before submittin this form.. (window.open(url,windowname,prefs)) regards, vic
 
i didn't read the question carefully ! i gave a sol to display the result in a new window
to display it in a subframe of a ALREADY OPENED window use vituz's trick
else onSubmit : build the window (ww=window.open and ww.write(frameset)) and then set form.target=ww.framename and return true (so that it submits) ------
please review FAQ183-874 - this will help you to get the best out of tt
[ &quot;you&quot; is not someone in particular - don't take it too personnal ]
 
iza u're here? i think i saw u elsewhere second before.. wooo, u're quick!! regards, vic
 
yeah, who knows, maybe i'm 2 or 3 ... maybe i don't even exist ... ;] ------
please review FAQ183-874 - this will help you to get the best out of tt
[ &quot;you&quot; is not someone in particular - don't take it too personnal ]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top