Customizing Key Functions and JavaScript for WebFOCUS Maintain Applications

In this section:

You can restrict key functions and include JavaScript functions to be used by all of your WebFOCUS Maintain applications by means of the mntonload.js file. This file is located in \ibi_html\javaassist\ibi\html\maint, and is included in every deployed Maintain application. The functions in mntonload.js are run before the Maintain form is loaded and every time it is refreshed.


Top of page

x
Key Restriction

Certain keys and actions, such as the Backspace key, can disconnect a WebFOCUS Maintain application when you use them at certain times within the browser session running the application. You can restrict the Backspace key, function keys, or the right-click context menu when running a WebFOCUS Maintain application by editing the mntonload.js file, located in \ibi_html\javaassist\ibi\html\maint. The default mntonload.js file does not restrict any keys. To customize the behavior of these keyboard actions for your environment, do the following:


Top of page

x
Customized JavaScript Functions

You can include your own JavaScript functions to be used at run time by all of your WebFOCUS Maintain applications. The code can go anywhere inside the body of the mntonload procedure. For it to be performed, you must have the function call in the header.

For example:

function mntOnLoad()
{
//To restrict the BackSpace key and all Function keys except F1,
//uncomment the following line:
    BlockKeys();
    myExample();
}
...
 function myExample()
{
 ...  


WebFOCUS