Urgent Pleeeeeeeeeeeeeese

Results 1 to 2 of 2

Thread: Urgent Pleeeeeeeeeeeeeese

  1. #1
    harish Guest

    Default Urgent Pleeeeeeeeeeeeeese

    I want to trap(get)the time on the client&#039s machine through ASP.<BR>How do I do it.

  2. #2
    Join Date
    Dec 1969

    Default RE: Urgent Pleeeeeeeeeeeeeese

    create a hidden feild in the form<BR>&#060;INPUT TYPE="HIDDEN" NAME="CDate"&#062;<BR>write a function on click event of a submit button<BR>function getDateFormClient()<BR>{<BR>var myDate = new Date()<BR><BR>document.formname.CDate.value = myDate.getTime()<BR>//or u can use myDate.getHour() + ":" + myDate.getMinutes()<BR>}<BR><BR>in your server side script refer the time as <BR> request.form("CDate")<BR><BR>what u get is the time of submission of the form<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts