prototype.js AJAX library mod

[imported from Bloglines]

Whilst using the prototype.js AJAX library I have needed a timeout ability on the Request method.. i.e. so if the XMLHTTPRequest hasn’t returned data within X seconds, run a function and kill the request…

I have hacked a quick timeout function onto Prototype.js v1.3.1, you can download it here: prototype_1.3.1+moo_0.1.zip

Usage:
Just as you would use an onLoaded method or whatever, add an onTimeout method… if you don’t know how to do that, I would read the following documentation: Using Prototype 1.3.1

Leave a Reply