Rogue Wave Script Programming > Handling Panel Events > The OnLoad Function
 
The OnLoad Function
When an IlvContainer object is created, it looks for an Rogue Wave 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:
1. The inline script module
2. The default Rogue Wave Script module
3. Other Rogue Wave Script modules
The Rogue Wave 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.

Version 5.5.1
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.