If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Clock

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-05, 23:34
AmitGeorge AmitGeorge is offline
Registered User
 
Join Date: May 2005
Posts: 33
Clock

I have a problem for which I am looking for an answer....

I have an ASP interanet website in which there is a data collection page. A lot of people stay on this page for a long time. Alongside they open up other applicaions also...

So we are displaying a javascript clock which starts when the page loads on the clock... but if the network is slow and page takes some time to load, some time is lost and then the clock shows less time....

The client pc time is not caliberated...

Is there any way to find the time spent in network ?


I have a problem for which I am looking for an answer....

I have an ASP interanet website in which there is a data collection page. A lot of people stay on this page for a long time. Alongside they open up other applicaions also...

So we are displaying a javascript clock which starts when the page loads on the clock... but if the network is slow and page takes some time to load, some time is lost and then the clock shows less time....

The client pc time is not caliberated...

Is there any way to find the time spent in network ?
Reply With Quote
  #2 (permalink)  
Old 09-21-05, 02:46
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Why don't you start the clock ticking in the body onload event of the page?

From what I understand the body onload event will only fire when the document is completely loaded.
Reply With Quote
  #3 (permalink)  
Old 09-22-05, 00:06
AmitGeorge AmitGeorge is offline
Registered User
 
Join Date: May 2005
Posts: 33
Quote:
Originally Posted by rokslide
Why don't you start the clock ticking in the body onload event of the page?

From what I understand the body onload event will only fire when the document is completely loaded.
it is currently starting on the body onload... however some time (seconds) i spent before the page is loaded... then after you press submit... again some time is spent while the page is being submitted...
Reply With Quote
  #4 (permalink)  
Old 09-22-05, 00:20
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
okie, so your session expires before the clock finishes counting down because the total time is not the clock time.

you are always going to have a problem with something link this simply because you can never be sure how long it will take a form/page to submit, it is entirely dependant on network bandwidth available at the time.

What is it you are actually trying to do? Give people a count down clock so they know how much time they have left to fill in the form??
Reply With Quote
  #5 (permalink)  
Old 10-03-05, 04:05
AmitGeorge AmitGeorge is offline
Registered User
 
Join Date: May 2005
Posts: 33
Quote:
Originally Posted by rokslide
okie, so your session expires before the clock finishes counting down because the total time is not the clock time.

you are always going to have a problem with something link this simply because you can never be sure how long it will take a form/page to submit, it is entirely dependant on network bandwidth available at the time.

What is it you are actually trying to do? Give people a count down clock so they know how much time they have left to fill in the form??

basically.. people are rated on the basis of how much work they have done and in how much time... the js clock shows time spent on each page... however the actual time spent is always either more than or less than the time shown by the js clock....
Reply With Quote
  #6 (permalink)  
Old 10-03-05, 20:53
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
How could the actual time ever be less? Shouldn't it always be more due to the server turn around time??
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

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

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