473,386 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
2 3841
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
Ray is correct,

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

Jun 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: George | last post by:
VS.NET 2002/VB Is it possible to retrieve HTML form variables that are hidden input types using Request.QueryString() and/or Request.Form()? I have tried various ways of using those, but to no...
5
by: George | last post by:
VS.NET 2002/VB Is it possible to retrieve HTML form variables that are hidden input types using Request.QueryString() and/or Request.Form()? I have tried various ways of using those, but to no...
5
by: George | last post by:
VS.NET 2002/VB Is it possible to retrieve HTML form variables that are hidden input types using Request.QueryString() and/or Request.Form()? I have tried various ways of using those, but to no...
1
by: nupuragr82 | last post by:
I have a parent form and on button click I am calling a child page where i have a textbox and a button. On button click of child form I am passing the value of the Textbox to the Textbox in parent...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.