IT Community - Software Programming, Web Development and Technical Support

How do I pass the client's local time to a server side process?

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=""&...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-20-2008, 09:21 PM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default How do I pass the client's local time to a server side process?

<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...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 11:57 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0