IT Community - Software Programming, Web Development and Technical Support

Pass the client's local time to a server side process

This is a discussion on 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; Hi all... How can i pass the client's local time to a server side process. Thanks......


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 02-20-2008, 09:37 PM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Default Pass the client's local time to a server side process

Hi all...

How can i pass the client's local time to a server side process.

Thanks...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-20-2008, 09:51 PM
Pvinothkumar Pvinothkumar is offline
D-Web Analyst
 
Join Date: Sep 2007
Posts: 237
Pvinothkumar is on a distinguished road
Default Re: Pass the client's local time to a server side process

Hi all...

<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>

<script language="JavaScript">
function padout(number) { return (number < 10) ? '0' + number : number; }

var today = new Date();

document.write('<img src="program.cgi?' + padout(today.getHours()) + ':' + padout(today.getMinutes()) + ':' + padout(today.getSeconds()) + '" width="1" height="1">');
</script>

Thanks...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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
How do I pass the client's local time to a server side process? shaalini HTML, CSS and Javascript Coding Techniques 0 01-20-2008 09:21 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 01:15 PM.


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

SEO by vBSEO 3.0.0