Paste number 44924: periodicalUpdater: this.stop does nothing

Paste number 44924: periodicalUpdater: this.stop does nothing
Pasted by: kingkongrevenge
When:1 year, 11 months ago
Share:Tweet this! | http://paste.lisp.org/+YNW
Channel:None
Paste contents:
Raw Source | XML | Display As
new Ajax.PeriodicalUpdater( { success:'UploadStatus1' },
	'/uploadstatus?upid=[% SESSION %]',
	Object.extend( { method:'get',
		onFailure: function(req) {
			this.stop();
			document.UploadStatus1 = null; 
		},
		onSuccess: function(req) {
			if (req.responseText.match('100%')) { 
				this.stop();
			}
		}
		},
		{ decay: 0, frequency: 2 }
	)
);

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.