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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfer value from "grandchild" window??

Status
Not open for further replies.

JNB

Programmer
Jul 25, 2000
4
US
I have a program which opens a new window (dialogBox) to enter search parameters in a couple of input boxes.&nbsp;&nbsp;The submit button in this window causes yet another window (selectList) to open and be populated with results of query using the parameters entered.&nbsp;&nbsp;I display the result as hyperlinks; I need to know how to transfer the selected value back to the original window, then close the two opened windows.<br>I have tried multiple ways that I can think of, but haven't found the magic combination yet.&nbsp;&nbsp;Is this possible, or do I have to use a hidden value on dialogBox window as a &quot;pass-thru&quot;?&nbsp;&nbsp;Any help will be most appreciated; thanks...
 
technically opener.opener.whatever should work... I havent tested this though. You are submitting forms? Sometimes when you submit a form, the window loses track of its opener property.<br><br><br>lemme klnow if it works<br><A HREF="mailto:jared@aauser.com">jared@aauser.com</A>
 
&quot;Sometimes when you submit a form, the window loses track of its opener property&quot; -&gt; yes and if anyone here knows how to bypass that ... <br>i have a weird bug with that, and i don't know how to fix it. It's not a window opening another, it's a frame inside a frame, but it's the same anyway.<br>I've tried :<br>if (top.frames) if (top.frames.length&gt;=1) <br>&nbsp;&nbsp;&nbsp;if (top.frames.frames) if (top.frames.frames.length&gt;=1) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (top.frames[1].frames[1].location!='') <br> top.frames[1].frames[1].location.reload(true);<br>and still i get an alert from iexplorer saying that it can't find one frame or another (well, not EACH time, and that makes it really really weird as it looks as if it was kind of a random bug ??)<br>all that to force a frame to reload !!!!!!! so, if there's an easy way to fix that, let me know pleazzz !!!<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top