Re: Need a better [elapsedtime]

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34478
interpreted = N
texte = Thanks for you input, Rob. Actually as funny as it sounds this one is time critical. The web site has to do with automotive racing, and one of the gimmicks is going to be a daily multiple choice quiz. In the spirit of racing, the fastest time through the quiz wins the loot. The db method you mentioned would work, but not too fair to the 14.4 guys out there competing against Joe Blow using the T's at his office for play time. ;-) The quiz will probably have a minimum of a thousand entries per day, so I need to track at least to the 60th of a second to avoid multiple winners with the same time. I did however find out there are some timer functions in JS (even a countdownd function) that I think I can manipulate to work. Yikes.Thanks, -RWRob Marquardt wrote:> On 7/11/00 1:16 pm, Robert Wade so noted... > > >Does anyone have any idea how I might go about capturing the time that is > >spanned > >between two user actions on a single page? For example, if I have a > >simple form with a > >start button at the top, then a few questions and an end button at the > >bottom, is > >there any way to capture the amount of time (down to at least 60ths of a > >second) > >between clicking start and end? I haven't looked at JS for this yet > >because I'm not > >real hopeful to find an answer there. Applescript, maybe?? > > Though I'm sure something could be done with JavaScript, if you're > looking to avoid it (myself, I'm always loathe to have JS handle critical > tasks), how about this? > > Start button loads new page with questions. > > Page with questions writes time to a DB, contains an End button linking > to a Finished page. > > Finish page compares current time to that in DB, displays result. > > Granted, load time for the Questions page will be included in the time > total, but as long as your application isn't millisecond-crucial (and > what web app is? ; ) I would think that this approach would work. > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.com > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-- Robert Wade ====================== CABIN6 Design================================================ |[ //\ ||} || ||\| V| ================================================www.cabin6.com =============== robert@cabin6.com------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Need a better [elapsedtime] (Robert Wade 2000)
  2. Re: Need a better [elapsedtime] (Bob Minor 2000)
  3. Re: Need a better [elapsedtime] (Robert Wade 2000)
  4. Re: Need a better [elapsedtime] (Rob Marquardt 2000)
Thanks for you input, Rob. Actually as funny as it sounds this one is time critical. The web site has to do with automotive racing, and one of the gimmicks is going to be a daily multiple choice quiz. In the spirit of racing, the fastest time through the quiz wins the loot. The db method you mentioned would work, but not too fair to the 14.4 guys out there competing against Joe Blow using the T's at his office for play time. ;-) The quiz will probably have a minimum of a thousand entries per day, so I need to track at least to the 60th of a second to avoid multiple winners with the same time. I did however find out there are some timer functions in JS (even a countdownd function) that I think I can manipulate to work. Yikes.Thanks, -RWRob Marquardt wrote:> On 7/11/00 1:16 pm, Robert Wade so noted... > > >Does anyone have any idea how I might go about capturing the time that is > >spanned > >between two user actions on a single page? For example, if I have a > >simple form with a > >start button at the top, then a few questions and an end button at the > >bottom, is > >there any way to capture the amount of time (down to at least 60ths of a > >second) > >between clicking start and end? I haven't looked at JS for this yet > >because I'm not > >real hopeful to find an answer there. Applescript, maybe?? > > Though I'm sure something could be done with JavaScript, if you're > looking to avoid it (myself, I'm always loathe to have JS handle critical > tasks), how about this? > > Start button loads new page with questions. > > Page with questions writes time to a DB, contains an End button linking > to a Finished page. > > Finish page compares current time to that in DB, displays result. > > Granted, load time for the Questions page will be included in the time > total, but as long as your application isn't millisecond-crucial (and > what web app is? ; ) I would think that this approach would work. > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.com > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-- Robert Wade ====================== CABIN6 Design================================================ |[ //\ ||} || ||\| V| ================================================www.cabin6.com =============== robert@cabin6.com------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Robert Wade

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

2.1b2 was SLOW ... but 2.1b3 is FAST! (1997) [WebDNA] copy some database fields into a new database (2016) WebCatalog can't find database (1997) [WriteFile] problems (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Shopping cart not being assigned (1999) Supressing Error Messages (1998) method of payment (1997) Execute Applescript (1997) (2000) Multiple download orders of the same product? (1997) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) Moment of Thanks (1997) [WebDNA] multiple cookies of the exact same name?! (2009) Keep away (1997) WebCat2 - [format thousands] (1997) [WriteFile] problems (1997) .. more on sliding discounts... (1997) PCS Emailer's role ? (1997) Banner Ads (2000)