![]() |
Image Uploader Scripting API
|
#include <WebBrowser.h>
Public Member Functions | |
addTrustedSite (string domain) | |
string | callJavaScriptFunction (string funcName, object args) |
close () | |
bool | exec () |
string | getDocumentContents () |
int | getMajorVersion () |
hide () | |
bool | navigateToUrl (string url) |
string | runJavaScript (string code) |
setFocus () | |
bool | setHtml (string html) |
setOnLoadFinishedCallback (function callBack, object context) | |
setOnNavigateErrorCallback (function callBack, object context) | |
setOnUrlChangedCallback (function callBack, object context) | |
setSilent (bool silent) | |
setTitle (string title) | |
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();
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.
setOnLoadFinishedCallback | ( | function | callBack, |
object | context | ||
) |
Arguments passed to callback: data - a table containing:
setOnNavigateErrorCallback | ( | function | callBack, |
object | context | ||
) |
Arguments passed to callback: data - a table containing:
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.