WindowManager

The WindowManager object allows scripts to create additional windows for interacting with the user.  To get a reference to the WindowManager object, call Application.GetObject("WindowManager").

Methods:

CreateBrowserWindow(width, height, handler)

width: Integer

height: Integer

handler: WindowHandler object

Returns: BrowserWindow object

 

Description: Create and display a mini-browser window of the specified size (in screen pixels).  The mini-browser supports most HTML 3.2 tags.

 

Properties:

None

WindowHandler class

The WindowHandler class various events from the BrowserWindow.

Methods:

OnLinkClicked(url)

url: BrowserUrl object

 

This method is called when the user clicks a link in the mini-browser.  Your callback should return True if the link was processed, otherwise the default link handler will be invoked.

 

OnFormSubmitted(object)

object: BrowserForm object

 

This method is called when a form is submitted in the mini-browser.  Your callback should return True if the form was processed, otherwise the default form handler will be invoked.

Properties:

None

BrowserUrl object

Methods:

None

Properties:

ID : String

The ID attribute of the url that was clicked.

 

Url: String

The url as specified in the anchor tag.

BrowserForm object

Methods:

None

Properties:

FormName : String

The name attribute of the form.

 

Count: Integer

The number of form elements that were submitted:

 

NameAt(index) : String

The name of the form element at the specified index.  (PSS 7.02+)

 

ValueAt(index) : String

The value of the form element at the specified index.  (PSS 7.02+)

 

Value(name) : String

The value of the form element with the specified name.