Class: AjaxModule

AjaxModule

An object that fetches data via ajax post or get at a set interval

Constructor

new AjaxModule(options)

Constructor
Parameters:
Name Type Description
options object
Properties
Name Type Attributes Default Description
interval number <optional>
10000 the interval in which to make each request
request jQuery <optional>
null if passed, this request object will be used for AjaxModule's request, ignoring other options
async boolean <optional>
true whether the request is async
url string <optional>
the request url
type string <optional>
'GET' the request type
dataType string <optional>
'json' the expected data type
data object | string <optional>
data to send with the req header
username string <optional>
username to use with request
password string <optional>
password to use with request
Source:

Methods

start() → {jQuery}

Start the interval
Source:
Returns:
Type
jQuery

stop() → {AjaxModule}

Stops the interval
Source:
Returns:
Type
AjaxModule