getWindowObj( element id, window object )



This function returns a reference to the object with the specified id within a specified window.  5250 pop-up windows are rendered by Genie as div containers and assigned id's of "window1" for the first window on the screen, "window2" for the second window on the screen, etc.

Parameters:

  • element id - the id used to look for the object

  • window object - the container div object of the window

Example:

var win = getObj("window1"); // obtain reference to the first window if present if (win != null) { var textbox = getWindowObj('I_5_10', win); // obtain a reference to an element within the window }