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,men ubar=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="javascript:popUp('file2.html')">
</form> 2 1177
Øyvind Isaksen wrote on 04 apr 2004 in
microsoft.public.inetserver.asp.general: 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....
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,men ubar=0,resizable=1,wi dth=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="javascript:popUp('file2.html')"> </form>
This has nothing to do with serverside ASP.
Please ask a javascript NG.
[ btw: eval is evil ]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Try this:
<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,men ubar=0,resizable=1,width=4
00,height=600,left = 476,top = 57');");
}
// End -->
</script>
<form method ="get" action="javascript:popUp('file2.html')">
<input type="hidden" value="value1" name="hidden1">
<input type=submit value="Open the Popup Window">
</form> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dariusz |
last post by:
I have a problem with a call a Javascript "window.open()" function which is
executed as part of a PHP file when a user clicks on an thumbnail image.
The PHP is executed which passes some variables...
|
by: Charles Banas |
last post by:
weird subject - i hope more than just one curious regular will hear me out.
:)
ok, i've got a bit of a big problem, and i need answers as soon as
possible.
i know this forum is meant for web...
|
by: Cynthia |
last post by:
I'm looking for javascript code that when I mouse over a menu item will
display a picture elsewhere on the page. I know it exists, but the ones
I've found so far just swap out the menu item in...
|
by: MStepansky |
last post by:
Whats the difference between Javascript and Java3D?
I mean can Javascript do like Java3D can? Or is Java3D on top of Javascript
(the core, if thats what it is)? Then I should learn Javascript...
|
by: John Dolinka |
last post by:
I am trying to change a tooltip on an asp.net (framework 2) textbox with out
a post back to the server. I can access many of the textbox properties and
change them but not the tooltip. Below is a...
|
by: Priya |
last post by:
Hey all,
I have some values in the database which has to retrieved and then
passed on to some functions in the javascript. The javascript file is
a separate file. I have included it in the aspx...
|
by: Patient Guy |
last post by:
Which is the better approach in working with Javascript?
1. Server side processing: Web server gets form input, runs it into the
Javascript module, and PHP collects the output for document prep....
|
by: cleary1981 |
last post by:
Hi, I have a javascript function that is definately passing three values to php. For some reason my javascript is not working as planned. Here is the javascript that passes the values.
function...
|
by: nigelesquire |
last post by:
Please help!
I'm trying to clone and delete multiple rows with JavaScript.
I need two delete buttons that work...!
I only have one for now, but it's not working properly, the output count is...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |