|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--AjaxPeriodicalUpdater
Defined in ajax.js
| Field Summary | |
Number |
frequency
Number of seconds between each request |
Function |
onBeforeUpdate
Called before each request is performed |
AjaxRequest |
updater
AjaxUpdater instance used to perform periodical requests |
Object |
updaterArgs
Updater arguments |
String |
uri
Request URI |
| Constructor Summary | |
AjaxPeriodicalUpdater
(<String> uri, <Object> args)
This class is able to perform a periodic update, needed by any kind of polling. |
|
| Method Summary | |
<private> void
|
onTimer()
Executes an iteration by calling AjaxUpdater.send |
<private> void
|
onUpdate()
Called when updater response is returned |
void
|
start()
Starts the periodical updater |
void
|
stop()
Stops the periodical updater |
| Field Detail |
Number frequency
Function onBeforeUpdate
AjaxRequest updater
Object updaterArgs
String uri
| Constructor Detail |
AjaxPeriodicalUpdater(<String> uri, <Object> args)
uri - Request URI
args - Settings
| Method Detail |
<private> void onTimer()
<private> void onUpdate()
void start()
void stop()
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||