![]() Preserved Topic: Client-Side To Server-Side? (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Plano, TX |
![]() 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 |
![]() The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: Plano, TX |
![]() 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 |
![]() 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 |
![]() Well there's a couple of other ways |
Bipolar (III) Inmate From: London, UK |
![]() 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 |
![]() 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 |
![]() 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. |