Show/Hide Toolbars

Managing an FVTerm Child iFrame in Javascript

Event that is called each time a new screen is displayed.  Function should be declared as follows:

 

 function onNewScreen(rows, name)

 {

         

 }

 

 

Parameter

Description

rows

A string array with each element a row of the active screen.  Row 1 is element 0.  To read Row 4, column 20 and length 10 use the expression:  rows[3].substr(19,10)

name

If an application definition XML file is associated with the terminal session and this is a recognized screen, this is the name of the screen.  Otherwise "default".

 

Return Value

void - Return value ignored

 

Binding your onNewScreen function

 

Bind your onNewScreen in the FVMsgApi.ConnectMsgFVTerm or ConnectFVTerm function callback as follows:

 

 fvApi.onnewscreen = onNewScreen;