Closed Thread Icon

Preserved Topic: Getting a Value from JavaScript/Form to Server-Side Scripting Pages that link to <a href="https://ozoneasylum.com/backlink?for=18118" title="Pages that link to Preserved Topic: Getting a Value from JavaScript/Form to Server-Side Scripting" rel="nofollow" >Preserved Topic: Getting a Value from JavaScript/Form to Server-Side Scripting\

 
Author Thread
sdna2k
Bipolar (III) Inmate

From: Plano, TX
Insane since: Jun 2001

posted posted 12-06-2001 18:44

If I have a value in a form that doesn't get submitted (in this case, a clock that is inside a form text field), is there a way I can get that value from the form (since it is generated from client-side JavaScripting) into my ASP server-side scripting on the following page where I need to use it? I have two forms on the submitting page, one with user info that gets submitted, and this other clock form that doesn't. And what are the best ways to get a variable/value from JavaScript to ASP?

Any advice or answers are appreciated.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 12-06-2001 18:52

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

jiblet
Paranoid (IV) Inmate

From: Minneapolis, MN, USA
Insane since: May 2000

posted posted 12-06-2001 21:42

I dunno about ASP, but I'm assuming that you can pass variables in the URL the same way you can with PHP like href="ur.asp?variable1=value1&variable2=value2". Of course, to use that you would need a javascript function that defines the link dynamically... I wouldn't wnat to type something off the cuff because it would probably be full of errors.

-jiblet

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 12-06-2001 22:19

Can't remember the format and InI's method is probably easier. But you can create form elements dynamically as well



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

« BackwardsOnwards »

Show Forum Drop Down Menu