469,342 Members | 5,583 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,342 developers. It's quick & easy.

window opener

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
2 1595


<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
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.

Similar topics

8 posts views Thread by Renuka | last post: by
1 post views Thread by fogwolf | last post: by
19 posts views Thread by Darren | last post: by
5 posts views Thread by Hemanth | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.