Class Updater
This class is used for 'Live Refresh!'.
Defined in: jtemplates.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Updater(url, param, interval, args, objs, options)
Create new Updater.
|
Method Attributes | Method Name and Description |
---|---|
run()
Create new HTTP request to server, get data (as JSON) and send it to templates.
|
Class Detail
Updater(url, param, interval, args, objs, options)
Create new Updater.
- Parameters:
- {string} url
- A destination URL
- {object} param
- Parameters (for template)
- {number} interval
- Time refresh interval
- {object} args
- Additional URL parameters (in URL alter ?) as assoc array.
- {array} objs
- An array of HTMLElement which will be modified by Updater.
- {object} options
- options and callbacks
Method Detail
run()
Create new HTTP request to server, get data (as JSON) and send it to templates. Also check does HTMLElements still exists in Document.