[Javascript] Sumitting a selection every 4 seconds

Paul Novitski paul at novitskisoftware.com
Wed May 19 16:51:41 CDT 2004


At 02:14 PM 5/19/2004, Terry Riegel wrote:
>The select functionality is working, but what I can't figure out is how to 
>delay before updating the right frame. (So if a user is selecting multiple 
>items only one refresh on the server is needed)


Terry,

How about:
- When a list selection is changed, the current time is posted globally.
- When the timer goes off, it performs its action only if more than N 
seconds have elapsed since the last change.

Do both these functions have to happen in the left frame?  Would the 
problem be easier if the left frame posted selections (and the time of the 
last change) and the right frame ran the timer to check on things?

Very nice page, by the way!

Paul





More information about the Javascript mailing list