Ø
Øyvind Isaksen
Hi!
I have an ASP page and with a form, and when the a user clicks the
submit-buttom the form shall be posted using a popup-script and
method="get".
The problem is that when I use a "normal" popup javascript, the formfields
dont get posted.
In file2.asp I want the url to be file2.asp?hidden1=value1 (but I only get
file2.asp without the formfield hidden1)
I tried to find a newsgroup with html or javascript, but without success.
Hope someone can help me with a javascript that passes data....
Thanks!!!
This is my script:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "',
'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=4
00,height=600,left = 476,top = 57');");
}
// End -->
</script>
<form method ="get">
<input type="hidden" value="value1" name="hidden1">
<input type=submit value="Open the Popup Window"
onClick="javascriptopUp('file2.html')">
</form>
I have an ASP page and with a form, and when the a user clicks the
submit-buttom the form shall be posted using a popup-script and
method="get".
The problem is that when I use a "normal" popup javascript, the formfields
dont get posted.
In file2.asp I want the url to be file2.asp?hidden1=value1 (but I only get
file2.asp without the formfield hidden1)
I tried to find a newsgroup with html or javascript, but without success.
Hope someone can help me with a javascript that passes data....
Thanks!!!
This is my script:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "',
'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=4
00,height=600,left = 476,top = 57');");
}
// End -->
</script>
<form method ="get">
<input type="hidden" value="value1" name="hidden1">
<input type=submit value="Open the Popup Window"
onClick="javascriptopUp('file2.html')">
</form>