pierpaolo1989 / Generic-Ajax-call

List of generic functions to manage ajax functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generic-Ajax-call

List of generic functions to manage ajax functionalities.

Installation

In order to use it, you should import the js file in your HTML page.

<script src=utils.js type="text/javascript"></script>

Usage

Utils.AjaxPost(url, JSON.stringify(data), 'json', successCallback);  # POST AJAX CALL
Utils.AjaxGet(url, null, 'json', successCallback);  # GET AJAX CALL

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

List of generic functions to manage ajax functionality


Languages

Language:JavaScript 100.0%