The OnLoad Function

When an IlvContainer object is created, it looks for a Script function OnLoad and invokes it, passing the container as its argument. If there are several OnLoad functions, the container will look in the following modules in order and call the first OnLoad function encountered:

The inline script module

The default Script module

Other Script modules

The Script function OnLoad should have the following signature:

function OnLoad(theContainer)

{

// Initialization code

}

The OnLoad function is generally used to perform initialization once the panels in the application have been created.