![]() |
Uptooda Scripting API
|
#include <WebBrowser.h>
Public Member Functions | |
| void | addTrustedSite (string domain) |
| string | callJavaScriptFunction (string funcName, object args) |
| void | close () |
| bool | exec () |
| string | getDocumentContents () |
| int | getMajorVersion () |
| void | hide () |
| bool | navigateToUrl (string url) |
| string | runJavaScript (string code) |
| void | setFocus () |
| bool | setHtml (string html) |
| void | setOnLoadFinishedCallback (function callBack, object context) |
| void | setOnNavigateErrorCallback (function callBack, object context) |
| void | setOnUrlChangedCallback (function callBack, object context) |
| void | setSilent (bool silent) |
| void | setTitle (string title) |
| void | show () |
| bool | showModal () |
| string | title () |
| string | url () |
Represents a web browser window. It is using Internet Explorer components on Windows, but is not implemented on other systems. Creating an instance: local webBrowser = CWebBrowser();
| void close | ( | ) |
Close the window. After call to this function, showModal() or exec() stops execution and returns true.
| bool exec | ( | ) |
Mostly the same as showModal but the window may be hidden and does not block parent window.
| string getDocumentContents | ( | ) |
Returns current page contents.
| void setOnLoadFinishedCallback | ( | function | callBack, |
| object | context | ||
| ) |
Arguments passed to callback: data - a table containing:
| void setOnNavigateErrorCallback | ( | function | callBack, |
| object | context | ||
| ) |
Arguments passed to callback: data - a table containing:
| void setOnUrlChangedCallback | ( | function | callBack, |
| object | context | ||
| ) |
Arguments passed to callback: data - a table containing:
| bool showModal | ( | ) |
Show the web browser window and wait until it is closed.
| string title | ( | ) |
Returns current page title or url if title is empty.
| string url | ( | ) |
Returns current url.