Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honza/ajax.js
Super simple ajax utility
https://github.com/honza/ajax.js
Last synced: about 5 hours ago
JSON representation
Super simple ajax utility
- Host: GitHub
- URL: https://github.com/honza/ajax.js
- Owner: honza
- License: other
- Created: 2011-06-03T19:36:53.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-17T16:53:31.000Z (about 11 years ago)
- Last Synced: 2024-04-16T01:44:52.609Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 14
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ajax.js
=======ajax.js is a super-simple, 1kb, wait for it, ajax utility.
### Size
* Source: 2.3kb
* Minified: 1kb
* Gzipped: 628 bytes### Usage
The API is very similar to that of jQuery's ajax method. You should
immediately feel at home.ajax({
type: 'get',
url: 'http://example.com',
data: {name: 'John Smith'},
timeout: 5000,
onSuccess: function(data) {
console.log('Here is the data: ' + data);
},
onComplete: function() {},
onError: function() {}
});