FORM POST TO WINDOW.OPENER (FROM CHILD TO PARENT)

G

gialby

Ciao
i have this problem....
i have a main asp page with this code

PARENT PAGE
<script language="vbScript">
function ricerca()

finestra=window.open("ricerca.asp","","width=500,height=500,top=0,left=0,resizable=yes,scrollbars=yes")

finestra.focus()

end function


window.name="principale"
</script>


CHILD PAGE with form that must post data to parent page
<script language="vbScript">

sub submit_OnClick

url="result.asp"
form.method="POST"
form.action=url
form.target=window.opener.name
form.submit()
self.close()

end Sub
</script>

the child page (window.open) submit and reload tha parent page but not
post data.
in the "result.asp" when i make request.form("input") i not receive
nothing.
Why? somebody can help me?

Thanks
Gialby
 
R

Ray Costanzo [MVP]

This is all client-side script. You should try asking in a client-side
scripting group, not a server-side one like this one. Why vbscript? I
strongly suggest you do this in Javascript and then inquire in a Javascript
group. microsoft.public.scripting.jscript is a group on this NNTP server.

Ray at work
 
N

Nico VanHaaster

Ray is correct,

The best way to do that sort of scripting is done through jscripting.
Good Luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top