Vision - Web Browser Scripting Functions
This page details the various component and extension functions available for Vision's Web Browser component.
Component Functions​
.getBrowser()​
- Description - This function will return the underlying browser object. See JxBrowser Guidelines for more information.
 
- Parameters - None
 
- Return - Object - The Browser Object.
 
.executeJavaScript()​
- Description - This function allows users to execute arbitrary JavaScript on the loaded page.
 
- Parameters - String javaScript - The code to execute on the page.
 
- Return - None
 
.getImage()​
- Description - This function will return a byte array screenshot of the current browser window, in JPEG format.
 
- Parameters - None
 
- Return - ByteArray - The current browser window, rendered as a JPEG, in binary format.
 
.back()​
- Description - This function navigates one page back in the browser history.
 
- Parameters - None
 
- Return - None
 
.forward()​
- Description - This function navigates one page forward in the browser history.
 
- Parameters - None
 
- Return - None
 
.refresh()​
- Description - This function refreshes the current page.
 
- Parameters - None
 
- Return - None
 
Extension Functions​
initialize()​
- Description - Called when the Web Browser component is initialized. Provides a chance to initialize the browser further. Enabling or disabling this function will cause the Web Browser component to re-initialize.
 
- Parameters - Component self: A reference to the component that is invoking this function. 
- JxBrowser browser: The underlying JxBrowser instance of the Browser class. 
- BrowserView browserView: The underlying rendering class that contains the Browser instance. 
 
- Return - Nothing