By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

window.opener

P: n/a
Hi,

Does anyone here know of a way of tracking the window that launched a popup
window besides using window.opener? The problem i'm having is that the
popup window submits a form within itself before wanting to return the data
to the launching page, and unfortunately in IE5 window.opener is undefined
after the form is submitted, so i need some sort of workaround to make the
page work in IE5.
Thanks,

Daniel
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Call a function within the opener (on Clicking a submit image or something
on your pop up window) which pulls the data into itself then submits the
form of the pop up page, then closes the pop up page.

E.G.
Put this in your opener page...

var popUp;

function openPopUp(strPage) {
popUp = window.open(strPage, etc,etc...
}

function finishIt() {
var x = popUp.document.form.txtField1.value;
var y = popUp.document.form.txtField2.value; etc, etc

popUp.document.form.submit();

popUp.close();
}

Put this in your pop up page...

<a href="javascript:window.opener.finishIt();"><img
src="submit.gif"></a>

Hope that helps you.

Peter.

"Daniel Andersen" <da*****@itconnect.net.au> wrote in message
news:3f********@news.brisbane.pipenetworks.com...
Hi,

Does anyone here know of a way of tracking the window that launched a popup window besides using window.opener? The problem i'm having is that the
popup window submits a form within itself before wanting to return the data to the launching page, and unfortunately in IE5 window.opener is undefined
after the form is submitted, so i need some sort of workaround to make the
page work in IE5.
Thanks,

Daniel

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.