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

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

P: n/a
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,h eight=500,top=0,left=0,resizable=yes,scrollbars=ye s")

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

Jun 7 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

<gi****@gmail.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
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,h eight=500,top=0,left=0,resizable=yes,scrollbars=ye s")

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

Jun 7 '06 #2

P: n/a
Ray is correct,

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

Jun 8 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.