Forums

ASP

This topic is locked

javscript in to ASP

Posted 15 Mar 2002 15:57:39
1
has voted
15 Mar 2002 15:57:39 john horlock posted:
Hello
How is it possible to get a variable from javascript into some ASP on the same page.

Any help is greatly appreciated

Replies

Replied 15 Mar 2002 17:30:07
15 Mar 2002 17:30:07 Bec C replied:
You could save the javascript variable into a hidden form field e.g

document.formname.fieldname.value = variablename;

Then use ASP to request from that form field using request.form or request.querystring ( according to method on form - POST = form/GET = querystring)

Regards

Replied 15 Mar 2002 17:34:25
15 Mar 2002 17:34:25 john horlock replied:
thankyou.... so there si a differnce depending how the form is sent.
thank you very much <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

Reply to this topic