Image Uploader Scripting API
Public Member Functions | List of all members
CWebBrowser Class Reference

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 ()
 

Detailed Description

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();

Since
1.3.1.4270.

Member Function Documentation

◆ close()

void close ( )

Close the window. After call to this function, showModal() or exec() stops execution and returns true.

◆ exec()

bool exec ( )

Mostly the same as showModal but the window may be hidden and does not block parent window.

◆ getDocumentContents()

string getDocumentContents ( )

Returns current page contents.

◆ setOnLoadFinishedCallback()

void setOnLoadFinishedCallback ( function  callBack,
object  context 
)

Arguments passed to callback: data - a table containing:

{
browser = WebBrowser,
url = string
}

◆ setOnNavigateErrorCallback()

void setOnNavigateErrorCallback ( function  callBack,
object  context 
)

Arguments passed to callback: data - a table containing:

{
browser = WebBrowser,
url = string,
statusCode = int
}

◆ setOnUrlChangedCallback()

void setOnUrlChangedCallback ( function  callBack,
object  context 
)

Arguments passed to callback: data - a table containing:

{
browser = WebBrowser,
url = string
}

◆ showModal()

bool showModal ( )

Show the web browser window and wait until it is closed.

Returns
true (if the window was closed programatically), false - if the window was closed by user.

◆ title()

string title ( )

Returns current page title or url if title is empty.

◆ url()

string url ( )

Returns current url.