Sunday, March 11, 2012

Application Load Event

Hi,

it can be done programmatically by declaring a function with the following signature:

function pageLoad() {

}


What I'd really like to be able to do is something like:

Sys.Application.load = myLoadHandler;

to add one or more functions to be called once Atlas has initialised.

P.S. Is declaring a "pageLoad" function going to continue to work in future releases?


Knox:

What I'd really like to be able to do is something like:

Sys.Application.load = myLoadHandler;

to add one or more functions to be called once Atlas has initialised.

P.S. Is declaring a "pageLoad" function going to continue to work in future releases?

I missed itin the docsfirst time around, but the correct syntax is:

Sys.Application.load.add(eventHandler);

No comments:

Post a Comment