http-jquery
![npm](http://img.shields.io/npm/v/http-jquery.svg?style=flat)
![devDependencies](http://img.shields.io/david/dev/meandmax/http-jquery.svg?style=flat)
Nothing special ... but why writing these basic http-functions over and over again. Well tested jQuery ajax functions! There are still a lot of missing use-cases. If you have any, you are very welcome to add them!
.getJson()
Asynchronous GET request: takes a url and a data argument and returns a jQuery Deferred object. Expects that the thirdparty returns a JSON.
.getScript()
Takes a url and returns a Jqer
Expects that the thirdparty return a script
.getTemplate()
Takes a url and returns a jQuery Deferred (promise)
If a template is already loaded it will return the existing promise.
.post()
Asynchronous POST request: takes a url and a data argument and returns a jQuery Deferred object.
Copyright
Copyright © 2015 Maximilian Heinz, contributors. Released under the MIT License