Home > Internet, WebDev > prototype.js AJAX library mod

prototype.js AJAX library mod

August 26th, 2005 Mark Leave a comment Go to comments

[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

Categories: Internet, WebDev Tags:
  1. No comments yet.
  1. No trackbacks yet.