Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

registry


XHR

This plugin requires jQuery +1.3. that includes 1.3 beta releases (already out)

This tiny plugin provides a registry for different xhr implementations to co-exist.

If you want to provide a new implementation, you need to do this:

jQuery.xhr.register( 'my_xhr', function( settings ){
    return new MyXhrImplementation( settings );
});

The argument settings is the settings object used by jQuery.ajax.

To use it, you do:

jQuery.ajax({
    url:'...',
    transport:'my_xhr',
    // ...
});

The built-in implementation is used by default (unless it's overriden with jQuery.ajaxSetup) and it's called 'xhr'.