Working with events

beginasync event

This event is raised just before the asynchronous request is processed by the micro-framework (regardless of the value of the async parameter). THis let you, for instance, enable a custom loading indicator. To catch this event use the WA.AddEventListener function.

WebApp.AddEventListener("beginasync", handler);

Contextual informations

To cancel this event (and the request) the handler must return "false".

The beginasync event object has the following contextual informations:

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

Changes History
20091109v0.5.0CAEvent is now cancelable
20090613N/ACAFixed context parameter description
20090307v0.5.0RC3CAAdded beginasync event and target property
Monday, 09-Nov-2009 15:27:02 CET