API.utils Class
API utilities.
Constructor
API.utils
()
Item Index
Methods
Methods
ajax
(
-
options
Ajax method to get or post data.
Parameters:
-
options
ObjectA set of options
- url: The url to call.
- data: The data to send.
- method: The method to use (GET, POST, PUT).
- success: A function to call when the operation is completed with the response in parameter.
- error: A function to call if the operation fails.