Working with events

endasync event

This event is raised just after the asynchronous request has returned (regardless of the value of the async parameter). This let you, for instance, disable a previously added custom loading indicator and check errors. To catch this event use the WA.AddEventListener function.

WebApp.AddEventListener("endasync", handler);

Contextual informations

The endasync event object has the following contextual informations:

Array. Based parameters of the request.
Array. Requested URL.
String. Parameters if any (POST request only).

And have the following additional property:
Object. XMLHttpRequest object.

Changes History
20090613N/ACAFixed context parameter description
20090307v0.5.0RC3CAAdded endasync event and target property
Monday, 09-Nov-2009 09:51:02 CET