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

window opener

P: n/a
Hi
I have a form that opens a pop-up window. The pop up window
has a form like this:

<FORM method="POST" ENCTYPE="multipart/form-data">
<INPUT class="txt" type=file name="dn_file">
<INPUT class="btn" type=submit name="upload" value="UPLOAD">
<INPUT type=hidden name="upload_popup">
[$ if $fdat{upload} $]
<TEXTAREA cols=100 rows=10> [+ $upstr +] </TEXTAREA>
[- delete $fdat{upload} -]
<INPUT class="btn" type="button" name="Process" value="PROCESS"
onClick="this.form.target=window.opener;this.form. submit()">
<INPUT class="btn" type="button" name="Cancel" value="Cancel"
onclick="window.close()">
[$ endif $]
</FORM>

When I click on the Process button I expect the form in the main window
to be submitted. But what I see is that the pop-up's form is
submitted.

Can anyone help me?
Thank you

Aug 10 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a


<FORM method="POST" ENCTYPE="multipart/form-data" target="_parent">
no need for the onclick.

Danny
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Aug 11 '05 #2

P: n/a
Danny wrote :


<FORM method="POST" ENCTYPE="multipart/form-data" target="_parent">
no need for the onclick.

Danny

opener and the reserved target keyword _parent are 2 different birds.
opener will refer to the window object (which could be a frame, a
frameset or another window) from which the open() call was made. The
_parent reserved keyword will refer to the closest frameset parent
within the frames containment hierarchy.

Gérard
--
remove blah to email me
Aug 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.