Hi Trent,
Can this feature work with DHTML deployment. If so can you mail me the file.
Regds
Imran Kasmani
-----Original Message-----
From: Robert Stevenson [mailto:rcrea...@SHAW.CA]
Sent: Thursday, September 05, 2002 5:30 AM
To: TOO...@listserv.arizona.edu
Subject: Re: Elapsed time in DHTML
I'd love to take a look. Thanks.
----- Original Message -----
From: "Trent Schwartz" <Tsch...@JACKSONGRAPHICS.COM>
To: <TOO...@listserv.arizona.edu>
Sent: Wednesday, September 04, 2002 7:10 AM
Subject: Re: Elapsed time in DHTML
> Hi Robert,
>
> I have an example using the action timer that places the time spent on
each
> page into a variable, then into a field on a summary page.
>
> I can zip the tbk file and send it to you if you would like.
>
> Trent
>
>
> -----Original Message-----
> From: Robert Stevenson [mailto:rcrea...@SHAW.CA]
> Sent: Saturday, August 31, 2002 12:23 PM
> To: TOO...@listserv.arizona.edu
> Subject: Elapsed time in DHTML
>
>
> In native format I track the time spent on various studyguides/quizzes,
> etc. by using a timer field with the script shown, below. Before I make
> a "trial and error" (mainly "error", actually) approach to adapting this
to
> DHTML I was wondering if someone might hazard a guess as to the
possibility
> of making this work in DHTML.
>
> to handle initialize
> system sysvTimestart
> get systime
> put sysTime into sysvTimestart
> format time sysvTimestart as "seconds"
> end
>
> to handle update
> if syslevel = reader
> system sysvTimestart
>
> local locvtime
> local locvtimeelapsed
> local locvminutes
> local locvseconds
> locvtime = systime
> format time locvtime as "seconds"
>
> get locvtime - sysvtimestart
> locvMinutes = (locvtime - sysvtimestart) div 60
> locvSeconds = (locvtime - sysvtimestart) mod 60
> format locvSeconds as "00"
> text of field "timer" of this background = locvminutes & ":" & locvseconds
> end
> end
You can download my Shared Script Collection 4. In this collection there is
a shared script called TimeDiff() which will do what you want.
Cecil
Dr. med Cecil Cheah
CBT/Web CBT Consultant
Multimedia Developer
VB and VBA Programmer
Oracle Databanker
Game Programmer
Private URL: Http://webcbt.ch
Toolbook Developers Network URL: Http://webcbt.ch
cecil...@bluewin.ch
Medical Doctor
Med. Informatikbeauftragter
Kantonsspital Luzern
Cecil...@KSL.CH