# Backbone.NativeAjax **Repository Path**: mirrors_gaearon/Backbone.NativeAjax ## Basic Information - **Project Name**: Backbone.NativeAjax - **Description**: A Backbone.Ajax function powered by native XHR methods - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Backbone.NativeAjax =================== A drop-in replacement for Backbone.Ajax that uses only native XMLHttpRequest methods for sync. It has no dependency on jQuery. To Use: ------- Load Backbone.NativeAjax with your favorite module loader or add as a script tag after you have loaded Backbone in the page. You may set a `Backbone.Deferred` class that will be assigned to the return value if you so desire. Features: --------- * Accepts `success` and `error` callbacks * Set headers with a `headers` object * `beforeSend` Requirements: ------------- NativeAjax makes use of XMLHttpRequest which is supported in most modern browsers. See the [compatibility chart](http://caniuse.com/#search=XMLHttpRequest) Notes: ------ * The ajax function accepts a `success` and `error` callbacks. To return a deferred object, set `Backbone.Deferred`. Uses code from [Exoskeleton](https://github.com/paulmillr/exoskeleton). See that project for more information and other features.