Window opening

liunx

Guest
Hi,<br />
can anybody help me with this? <br />
<br />
From file1, I'm opening a new small window for Search (file2) by doing window.open("file2","Search","width=410,height=110,scrollbars=no")<br />
<br />
Now in file2, I have a form which, after posting, I want the result to show in the window of file1.<br />
<br />
How can I achieve this?<br />
<br />
thanks much!<!--content-->theres an example of 'pop to parent' below<br />
<br />
<!-- m --><a class="postlink" href="http://www.fourlevel.com/dreamweaver/extensions/PopToParent/index.htm">http://www.fourlevel.com/dreamweaver/ex ... /index.htm</a><!-- m --><br />
<br />
click on the "Launch Popup" example, maybe theres something there you can use (theres a mxp plugin for dreamweaver at the bottom of the page)<!--content-->you may be able to send your results back to the parent frame in the same way, (example, three pages 1.htm, 2.htm, 3.htm)<br />
<br />
page 1 opens page2, then page2 opens page3 inside page1 and closes itself. HTML below<br />
<br />
PAGE1:<br />
<html><head><script><br />
function openwindow(url){<br />
window.open(url);<br />
}<br />
</script></head><body><br />
this is p1<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:;" onclick="openwindow('2.htm')">openme</a><br />
<br />
</body></html><br />
<br />
PAGE2:<br />
<html><head><script><br />
<!--<br />
function P2P(u,c,d,w,h){ <br />
top.opener.location.href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/u">http://www.htmlforums.com/archive/index.php/u</a><!-- m --><br />
if (c == true)setTimeout('top.close()',d)<br />
if (w > 0){top.resizeTo(w,h)}<br />
}<br />
//--><br />
</script></head><br />
<br />
<body onBlur="window.close()"><br />
this is p2<br />
<p><a href=http://www.htmlforums.com/archive/index.php/"javascript:;" onFocus="P2P('3.htm',true,0000,0,0)">clickme</a></p><br />
</body></html><br />
<br />
PAGE3:<br />
<br />
<html><head></head><body><br />
this is p3<br />
</body></html><!--content-->thanks that helps but my problem is not solved. My case is not simply showing another page. As per your example, from a FORM in page2, I need to submit the form and the result (say page 3) should open in window for page1. How do I get top.opener.location.href to hold the page after submission?<br />
<br />
thanks!<!--content-->Originally posted by coolname <br />
you may be able to send your results back to the parent frame in the same way<br />
<br />
as to how this can be done, ive no idea, but "top.opener.location.href" seems like a useful property. sorry but im fairly new to all this, perhaps a veteran will be of more use :)<br />
<br />
good luck<!--content-->
 
Back
Top