So I have a javascript timer counting down on a webpage that is synced
across every client that accesses it. When the timer reaches zero I
need it to send information to MySQL. I was originially planning on
just having the clientside javascript run a php script that would
connect to MySQL but that would cause a problem because then the
script would be ran once for every page that is open.

Is there a way to do this using APE? Can I run the timer in a server
side script instead? And if so, then how do I sync it up with all of
the other pages.

The way it is currently synced up is on initial load of the page php
looks at the time difference between when the timer started and now
and computes the time remaining. This isn't a perfect sync but it is
close enough. After the page is loaded there is a button that people
can push that performs an inline push which instantly updates everyone
else's page back to the beginning of the timer and only the person who
pushed the button is half a second behind.

Any ideas on how I should be doing this instead?

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to