Skip to content

meandmax/http-jquery

Repository files navigation

http-jquery

license npm

build coverage code climate dependencies devDependencies

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

About

Well tested http utility functions for jQuery.

Resources

License

Stars

Watchers

Forks

Packages

No packages published