lahaler.blogg.se

Close open window
Close open window





close open window

If the menu bar checkbox is not selected, append the string " ,menubar=no" instead to indicate that the window to open does not have a menu bar. In this case, append the string " ,menubar=yes" to the features variable to indicate that the window to open has a menu bar. This method returns true if the checkbox is selected. String features = "width=550,height=275" ĭeclare and initialize the features variable to the string specifying the window's initial width and height.ĭetermine if the user has selected the menu bar checkbox by calling menubar.getState(). The features() method returns the features variable, which specifies the type of window to open. It uses the features variable to contain the concatenation of all checkbox states. The code uses getState() to determine if each checkbox is set or cleared. The controls menubar, toolbar, resizable, status, and scrollbars are checkbox controls. The string is used by AgpScriptHelper's openWindow() method.

close open window

The following code shows the features() method, which returns a string that specifies the features of the window to open. The agScriptHelper methods perform tasks that are similar to JavaScript functions, saving you from having to write JavaScript code directly (such as when you need to manipulate browser windows). This example uses the agScriptHelper utility object's various openWindow() methods. See the chapter on advanced page topics in the Programmer's Guide NOTE First make sure that database is running on your localhost SilverStream Server Using openWindow(url, window, features, query, orderby)Īpplying request information to the page in the window Using openWindow(url, window, features, params) How to open a page in new browser window and specify the features of that window. Opening and Closing Windows Using JavaScript







Close open window