Home

Awesome

Djax - a lightweight jQuery.ajax subset

version: 2.1.0

Description

Djax is a subset of jQuery.ajax, with the most used features supported. It has initially been developed as domino-ajax, for dealing with REST APIs in domino.js, a JavaScript cascading controller for rich internet applications.

You can install djax from NPM: npm install --save djax.

If you are using jQuery, it is recommanded to use jQuery.ajax instead, which supports more features, and is probably better tested.

Here are the supported options:

The ajax function returns an object with the following attributes, to deal with promises:

I invite you to read djax's code or jQuery.ajax documentation to know more about how this function works. To see examples, you can check the unit tests in test/unit.js.

Finally, if you see common features that are missing or that are not implemented exactly as in jQuery 3.x, please report them on the related Github issues page.