Ajax
Hubble's Ajax
class allows you to easily handle Ajax calls and even upload files.
To access the Ajax module, use the Ajax
key via the module loader.
The post
method posts an ajax call with an object to a url.
The get
method calls a GET
request to a given url.
You can specify a callback for success
and error
HTTP responses from the server for get
and post
.
The upload
method calls an upload to a url.
You can specify callbacks for success
, error
, start
, progress
and load
.