Predefined Functions

To provide the implementation of a Fabasoft Folio Control following JavaScript functions can be used.

Syntax

function jQuery<SWCREF>_<majorid>_<minorid>_<ControlName>()
{
  this.OnInit = function <ControlName>_OnInit()
  {
  };

  this.OnRender = function <ControlName>_OnRender(output)
  {
  };

  this.OnLoad = function <ControlName>_OnLoad()
  {
  };

  this.OnLayout = function <ControlName>_OnLayout(isinit)
  {
  };

  this.OnCleanup = function <ControlName>_OnCleanup()
  {
  };

  this.MyFunction = function <ControlName>_MyFunction()
  {
  };
}

 

Within the function described above you can provide implementations for OnInit, OnRender, OnLoad, OnLayout, OnCleanup and your own functions.

  • OnInit
    This function is called after the control object has been created.
  • OnRender
    This function is called when rendering the HTML page. The parameter output allows printing HTML tags.
  • OnLoad
    This function is called after the control HTML is written on the HTML page.
  • OnLayout
    This function is called after OnLoad is carried out and for each resize of the web browser window. The optional parameter isinit is true when OnLayout is called the first time. In case of a window resize the parameter is false.
  • OnCleanup
    This function is called when the dialog that contains the control is closed.
  • Your own functions
    You can specify your own helper functions.