Working with events

beginslide event

This event is raised when a layer change request is recieved by the micro-framework. To catch this event use the WA.AddEventListener function.

WebApp.AddEventListener("beginslide", handler);

Contextual informations

The beginslide event object has the following contextual informations:

evtObj.context[0]
Array. Source layer informations.
First element is the layer name, next are the additional hash informations, if available, as exposed in Asynchronous link.
evtObj.context[1]
Array. Destination layer informations.
First element is the layer name, next are the additional hash informations, if available, as exposed in Asynchronous link.
evtObj.context[2]
Integer. Slide direction. +1 for left-to-right sliding effect, -1 for right-to-left. This parameter is inverted with right-to-left language mode.
Saturday, 20-Jun-2009 14:39:50 CEST