This is a discussion on How do I pass the client's local time to a server side process? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; <form name="myForm"> <input type="hidden" name="myTime" value=""&...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| <form name="myForm"> <input type="hidden" name="myTime" value=""> </form> <script language="JavaScript"><!-- function padout(number) { return (number < 10) ? '0' + number : number; } var today = new Date(); document.myForm.myTime = escape(padout(today.getHours()) + ':' + padout(today.getMinutes()) + ':' + padout(today.getSeconds())); //--></script>
__________________ Shaalini.S ![]() Be the Best of Whatever you are... |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pass Complex Data from flash to .Net or any other server side script | aramesh | Flash Actionscript Programming | 3 | 03-05-2008 10:04 PM |
| Pass the client's local time to a server side process | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 02-20-2008 09:51 PM |
| Client side JavaScript and and Server side Java Script | sathian | HTML, CSS and Javascript Coding Techniques | 2 | 11-09-2007 10:30 PM |
| difference between Client side JavaScript and and Server side Java Script? | Sundaram | HTML, CSS and Javascript Coding Techniques | 1 | 09-05-2007 11:46 AM |
| Relation between process system time, process waiting time | vigneshgets | Operating Systems | 0 | 08-01-2007 12:57 AM |