[thelist] please help - Javascript variables

Brian Delaney brian.delaney at mccmh.net
Tue Dec 21 13:24:38 CST 2004


I am passing a window a javascript variable called myVar to a pop up window

if I do something like alert(myVar) when the window loads it shows 
correctly.

I need to use the variable in asp though.  I have read that you can send 
it using a hidden input type in a form.

I have tried this:

<form name="frmLogin" ID="Form1">
  <input type="hidden" name="page" id="page" value="myVar">
<etc. etc>

When I  retrieve it and try a response.write in asp I get this: myVar - 
so it's seeing the text only and not a variable.

How do I pass the javascript variable myVar into the hidden Form? I have 
tried value=<%myVar%>, value="javascript(myVar)" none work.

Any ideas or help will be appreciated.

Thanks

*
*
*
This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or priveleged information.  Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.


More information about the thelist mailing list