It sounds a little complicated - especially since Ajax.Updater is a specialization of Ajax.Request that does not have an onsuccess / oncomplete callback, which means that you may have to periodically cache in periodic mode. This sounds more than creating jQuery 'updater'.
If you want to replace the update with jQuery rewrite, this problem will completely disappear and certainly easier than working around it. A simple "updater" in jQuery follows.
function update() {
$.ajax({
type: 'get',
url: 'theContent.html',
success: function(text) {
$('#updateMe').html(text);
}
});
}
var i = setInterval(update, 5000);
source
share