does have example of how fire forge.ajax periodically in trigger.io app? seems fire once, die silently. trigger.io removing settimeout or stopping it? i'm using technique adapted paul irish.
// wrap function in closure don't pollute namespace (function worker() { forge.request.ajax({ url: 'ajax/test.html', complete: function() { // schedule next request when current one's complete settimeout(worker, 5000); } }); })();
could scope issue perhaps?
thanks advice.
while forge.request.ajax
similiar jquery.ajax
not same, , has no complete callback.
you want put settimeout
in both success
, error
callbacks.
Comments
Post a Comment