[thelist] please help - Javascript variables

Brian Delaney brian.delaney at mccmh.net
Tue Dec 21 14:09:55 CST 2004


That's what I am trying to do. How do I get the javascript variable in 
the form as a hidden input?

Pavel Dudrenov wrote:

>Why dont you just post it from the hiden input in the form and then
>jsut get it from the server?
>
>
>On Tue, 21 Dec 2004 14:24:38 -0500, Brian Delaney
><brian.delaney at mccmh.net> wrote:
>  
>
>>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.
>>--
>>
>>* * Please support the community that supports you.  * *
>>http://evolt.org/help_support_evolt/
>>
>>For unsubscribe and other options, including the Tip Harvester
>>and archives of thelist go to: http://lists.evolt.org
>>Workers of the Web, evolt !
>>
>>    
>>

*
*
*
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