simple-ajax
Simple ajax module.
Usage
var Ajax =ajax = 'https://api.github.com/users/octocat/orgs';ajax;ajax;
Or Provide Options Object
var ajax =url: 'https://api.github.com/users/octocat/orgs'method: 'GET'headers:myCustomHeader: 'my custom header value';
Available Options
url: 'url to request'method: 'method to request with'cors: 'is CORS request (only needed for IE)'cache: 'set to false to explicitly break cache'data: 'JSON data to be sent with request'dataType: 'type of expected response'contentType: 'if JSON will try to parse response data'requestedWith: 'defaults to XMLHttpRequest'auth: 'used to set the Authorization header'headers: 'custom headers object'
Add Event Listeners
ajax;ajax;ajax;
Send Request
ajax;