Code Organization

In Profound UI development, JavaScript code is initiated through events.  There are 3 types of events:

  • Global Events - events that occur on every single screen displayed

  • Screen Events - events that are defined on certain screens only

  • Widget Events - events that are defined on specific widgets of certain screens

The JavaScript code can be written inline right in the screen definition or it can be stored in external JavaScript files on the IFS.  When stored externally, it can be loaded only by certain screens, or globally so that it is available to all screens.