I thought it was needed...saw it in a sample code somewhere...
I do have a button named submit...I'll change that and try again.
Main Topics
Browse All TopicsTrying to post the form in the opener window...
The opener window creates the popup:
popUp = window.open(...);
popUp.opener = self;
The popup window wants to submit the opener form:
opener.document.formName.f
opener.document.formName.s
window.close();
It sets the field value fine (no error), but then errors on the line to submit the form (object doesnt support this prpoerty or method). What am I doing wrong?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
i tested it and the code is working even that line is included
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Third Santor</title>
<script>
function openWindow(url){
popUp = window.open(url, 'popup', 'width=200,height=200');
popUp.opener = self;
}
</script>
</head>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<a href="#" onclick="openWindow('child
<form name="formName" method="post" action="" onsubmit="return ">
<input type="text" name="field">
<input type="submit" value="Submit">
</form>
</body>
</html>
child.html
------------------
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Third Santor</title>
<script>
function submitOpener(){
opener.document.formName.f
opener.document.formName.s
window.close();
}
</script>
</head>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<a href="#" onclick="submitOpener();re
</body>
</html>
Business Accounts
Answer for Membership
by: thirdPosted on 2006-08-07 at 20:02:54ID: 17268484
why do you have to set this?
popUp.opener = self;
also, make sure that you don't have a field element named submit.