Displaying 1 result from an estimated 1 matches for "pbkill".
2006 May 02
6
Stopping the Ajax.PeriodicalUpdater -- My Kludge?
...ent 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 function is called[pbClean()]).
<script type="text/javascript">
// <![CDATA[
if (!pb) {
var pb =
new Ajax.PeriodicalUp...