![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
backbone.nativeajax
Advanced tools
A drop-in replacement for Backbone.Ajax that uses only native XMLHttpRequest methods for sync. It has no dependency on jQuery.
You might consider using the window.fetch pollyfill coupled with a simple plugin for Backbone instead of this project if you need better Promise or header support.
Load Backbone.NativeAjax with your favorite module loader or add as a script tag after you have loaded Backbone in the page.
If loading with AMD or CommonJS you should set Backbone.ajax
yourself:
// AMD
define(['backbone', 'nativeajax'], function(Backbone, ajax) {
Backbone.ajax = ajax;
});
// CommonJS
var Backbone = require('backbone');
Backbone.ajax = require('backbone.nativeajax');
success
and error
callbacksheaders
objectbeforeSend
NativeAjax uses XMLHttpRequest which is supported in modern browsers. See the compatibility chart.
It also makes use of Function.prototype.bind
which can be easily pollyfilled
in older environments.
Set a Promise
object on the global or on Backbone.ajax
to return a promise.
success
and error
callbacks. To return
a promise object, set a global Promise
or Backbone.ajax.Promise
.X-Requested-With
header, so
things like Rails' request.xhr?
will break. If you need it, you can pass it
in yourself.Uses code from Exoskeleton. See that project for more information and other features.
FAQs
A Backbone.Ajax function powered by native XHR methods
The npm package backbone.nativeajax receives a total of 0 weekly downloads. As such, backbone.nativeajax popularity was classified as not popular.
We found that backbone.nativeajax demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.