aja.js
Ajax without XML : Asynchronous Javascript and JavaScript/JSON(P)
Basic Sample
Request JSON data
;
Load html into an element
;
More options using the fluent api, terrific REST client.
method'GET' datafirstname: 'John Romuald' ; method'PUT' bodyid : 12 firstname: 'John Romuald' job : 'linguist' ;
JSONP
type'jsonp' ;
Raw script loading
type'script' ;
Development
Setup
You need grunt >= 0.4 as well as node and npm installed and running on your system.
git clone https://github.com/krampstudio/aja.js.git
cd aja.js
npm install
Tests
Run the tests:
grunt test
Development
The dev of this library is based on TDD principle. So, dev means write tests. Run the developent server :
grunt devtest
So tests run once something is modified and you can access it also at http://localhost:9901/test
Contributing
Contributions (issue reporting, bug fixes, feedback, typos, gimie a tip, etc.) are really welcomed! This library is developed using the TDD principles, so I accept pull request only if they come with the according unit/integration test.
I'd love if somebody can create a nice logo for aja.js...
History
- 0.1.0 : initial release
- 0.2.0 : added support of new HTTP methods (trace, patch and connect)
- 0.2.1 : Fix missing
main
prop in package.json
- 0.2.1 : Fix missing
- 0.3.0 : support new request type : script
- 0.3.1 : Fix issue #4 and cache management
- 0.3.2 : Fix issue #7
- 0.3.3 : Fix issue #10 and #11
- 0.3.4 : reminify
- 0.4.0 : added timeout
- 0.4.1 : Merge PR #16
License
Copyright (c) 2014 Bertrand Chevrier <"chevrier_bertrand gmail_com".replace(/\s/, '@').replace(/_/g, '.')>
Licensed under the MIT license.