Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:40 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Update Clock
PostPosted: December 9th, 2005, 2:22 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
Okay all you really clever folk, lets see if you can help me with this one.
I need to be able to keep track of the time that a student has actually been using a production. When the user logs out to take a break I need to save this piece of data to a 8 character text field (in a remote database). On relaunching the publication I need the data to be retrieved and the 'clock' to be updated and then started again from that point.
I am already saving and retrieving the data using the Post Web Data function, and I can turn the clock output into a text string using
MyArray=CLOCK.split(":");
PASSTIME=MyArray[0]+MyArray[1]+MyArray[2]
However, when I retrieve the string and convert it into three groups of numbers (hours,minutes,seconds) I cannot work out how to update the clock function with these variables.
I even thought of using the PUBLICATION_TIME variable but cannot seem to start that from a given number.
Any Ideas? :?:
Andy Thompson.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 9th, 2005, 5:39 pm 
Offline

Joined: October 25th, 2004, 12:32 pm
Posts: 397
Location: Digital Workshop
The attached example is a very simple way to do this.

In the attached example there is a ticker on the page set to tick every second. If a varaible called PAUSE is set to 1, the timer stops incrementing.

On the page is a Pause button that set the variable PAUSE to 1 and a Re-Start button that set the Variable PAUSE to 1.

Hope this helps


You do not have the required permissions to view the files attached to this post.


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group