Things an AJAX pages must provide to the Framework

Visual LANSA Framework

Things an AJAX pages must provide to the Framework

When you create an HTML document that is to be used by the Framework as an AJAX page, it needs to expose three JavaScript functions to the Framework like this:

 

<HTML> 

<HEAD> 

<link rel='stylesheet' type='text/css' href='vf_vs001.css' >    

<script> 

/* ======================================================================== */ 

/* ======================== Handle Page Initialization ==================== */ 

/* ======================================================================== */ 

function VF_AJAX_Initialize() 

   return; 

}  

/* ======================================================================== */ 

/* ======================== Handle Page Execution ========================= */ 

/* ======================================================================== */ 

function VF_AJAX_Execute() 

  return; 

}  

/* ======================================================================== */ 

/* ======================= Handle Page Termination ======================== */ 

/* ======================================================================== */ 

function VF_AJAX_Terminate() 

  return; 

…etc… 

…etc… 

 

Once this has been done the AJAX page can be used by the Framework. See Exercise 1: AJAXEX1 – Hello World for an example of doing this.