Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

WKWebViewControlMBS.addScriptMessageHandler(Name as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 18.0 Yes No No No No
Function: Adds a script message handler.
Example:
// register once
browser.addScriptMessageHandler "test"
// later use in javascript:
browser.EvaluateJavaScript("window.webkit.messageHandlers.test.postMessage('Hello');")
Notes:
Name: The name of the message handler.

Adding a script message handler with name name causes the JavaScript function window.webkit.messageHandlers.name.postMessage(messageBody) to be defined in all frames in all web views that use the user content controller.

Feedback, Comments & Corrections

WKWebViewControlMBS.EvaluateJavaScript(JavaScript as String, Tag as String = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.5 Yes No No No No
Function: Evaluates JavaScript.
Notes: Calls later JavaScriptEvaluated event with result and passed tag value.

Feedback, Comments & Corrections

WKWebViewControlMBS.goBack
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Navigates to the back item in the back-forward list.

Feedback, Comments & Corrections

WKWebViewControlMBS.goForward
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Navigates to the forward item in the back-forward list.

Feedback, Comments & Corrections

WKWebViewControlMBS.LoadData(Data as MemoryBlock, MIMEType as String, textEncodingName as String, baseURL as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Sets the webpage contents and base URL.
Notes:
data: The data to use as the contents of the webpage.
MIMEType: The MIME type of the data.
characterEncodingName: The data's character encoding name.
baseURL: A URL used to resolve relative URLs within the document.

Feedback, Comments & Corrections

WKWebViewControlMBS.LoadHTML(htmlText as String, baseURL as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Sets the webpage contents and base URL.
Notes:
htmlText: The string to use as the contents of the webpage.
baseURL: A URL used to resolve relative URLs within the document.

Feedback, Comments & Corrections

WKWebViewControlMBS.LoadURL(URL as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Navigates to a requested URL.

Feedback, Comments & Corrections

WKWebViewControlMBS.LoadURLRequest(Request as NSURLRequestMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Navigates to a requested URL.

Feedback, Comments & Corrections

WKWebViewControlMBS.reload
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Reloads the current page.

Feedback, Comments & Corrections

WKWebViewControlMBS.reloadFromOrigin
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.

Feedback, Comments & Corrections

WKWebViewControlMBS.removeScriptMessageHandler(Name as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 18.0 Yes No No No No
Function: Removes a script message handler.
Notes: name: The name of the message handler to remove.

Feedback, Comments & Corrections

WKWebViewControlMBS.stopLoading
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 16.4 Yes No No No No
Function: Stops loading all resources on the current page.

Feedback, Comments & Corrections

WKWebViewControlMBS.takeSnapshot(tag as string = "")
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method HTMLViewer Mac MBS Mac64bit Plugin 17.4 Yes No No No No
Function: Requests a snapshot.
Notes:
Calls later takeSnapshotCompleted event.
Tag is passed to event to distinguish various snapshot requests.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Mac64bit Plugin.




Links
MBS FileMaker Plugins