Displaying 1 result from an estimated 1 matches for "pbcheck".
Did you mean:
dbcheck
2006 May 02
6
Stopping the Ajax.PeriodicalUpdater -- My Kludge?
...cUpdater calls a server script which returns the
percent finished of a process as a JSON encoded string in a x-json
header. When the percent is > 10, I''d like to STOP the periodicupdater
from making any further AJAX calls.
The problem: If I issue pb.stop() in the onSuccess function [pbCheck()],
nothing happens. The script continues!
The workaround: Set percent value using pbCheck, Use setTimeout to
continually poll pbKill() which checks the percent value & if it''s
greater than 10, issues STOP to updater before destroying it (when a
STOP is recieved, the onComplete f...