Preserved Topic: Client-Side To Server-Side? |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Plano, TX |
posted 08-02-2002 00:04
I need to use info server-side, that would be taken from client-side JavaScript... is there any way I can do this? Or more than one? |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 08-02-2002 00:06
The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: Plano, TX |
posted 08-02-2002 00:16
So, if I could get the client-side variable info into a form field, hidden or otherwise... I could use the info, correct? |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-02-2002 01:04
Perhaps if you explained what you are attempting to do, we might be might be able to offer a more elegent solution... |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-02-2002 01:04
Well there's a couple of other ways |
Bipolar (III) Inmate From: London, UK |
posted 08-02-2002 16:07
Or there's this thread that works for me (no page refresh / form submit required, and no external applications) - just call up a script url that has a GET query string |
Bipolar (III) Inmate From: Plano, TX |
posted 08-02-2002 19:53
I'm taking the exact time from a JavaScript real-time/self-updating clock and putting it into a table... so the user can see the actual time (updating second-by-second/minute-by-minute) and have their system time be the actual time being input by the form submission, as opposed to the server time. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-02-2002 20:25
Oh good, that's not too hard then. Put an onsubmit event handler in the form tag that takes the current time with Javascript and makes it the value of a hidden input field. Then this time will be submitted with the rest of the form. |