Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

WebFrameLoadDelegateMBS.Close
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: The close event.
Notes: Called when the delegate is destroyed.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didCancelClientRedirectForFrame(WebView as WebViewMBS, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Invoked when a client redirect is cancelled.
Notes:
Webview: The web view containing the frame.
frame: The frame being loaded.

This might happen if a frame changes locations before a pending client redirect is fired. The client redirect occurred in frame.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didChangeLocationWithinPageForFrame(WebView as WebViewMBS, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that the scroll position in a frame has changed
Notes:
frame: The frame that scrolled

This method is called when anchors within a page have been clicked.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didCommitLoadForFrame(WebView as WebViewMBS, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that the load has changed from provisional to committed
Notes:
frame: The frame for which the load has committed

This method is called after the provisional data source has become the committed data source.

In some cases, a single load may be committed more than once. This happens
in the case of multipart/x-mixed-replace, also known as "server push". In this case, a single location change leads to multiple documents that are loaded in sequence. When this happens, a new commit will be sent for each document.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didFailLoadWithError(WebView as WebViewMBS, ErrorString as string, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that the committed load of a frame has failed
Notes:
error: The error that occurred
frame: The frame that failed to load

This method is called after a data source has committed but failed to completely load.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didFailProvisionalLoadWithError(WebView as WebViewMBS, ErrorString as string, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that the provisional load has failed
Notes:
error: The error that occurred
frame: The frame for which the error occurred
This method is called after the provisional data source has failed to load.
The frame will continue to display the contents of the committed data source if there is one.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didFinishLoadForFrame(WebView as WebViewMBS, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that the committed load of a frame has completed
Notes:
frame: The frame that finished loading

This method is called after the committed data source of a frame has successfully loaded and will only be called when all subresources such as images and stylesheets are done loading. Plug-In content and JavaScript-requested loads may occur after this method is called.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didReceiveIcon(WebView as WebViewMBS, image as NSImageMBS, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that a page icon image for a frame has been received
Notes:
image: The icon image. Also known as a "favicon".
frame: The frame for which a page icon has been received

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didReceiveServerRedirectForProvisionalLoadForFrame(WebView as WebViewMBS, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that a server redirect occurred during the provisional load.
Notes:
frame: The frame for which the redirect occurred

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didReceiveTitle(WebView as WebViewMBS, title as string, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that the page title for a frame has been received
Notes:
title: The new page title
frame: The frame for which the title has been received

The title may update during loading; clients should be prepared for this.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.didStartProvisionalLoadForFrame(WebView as WebViewMBS, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that the provisional load of a frame has started
Notes:
frame: The frame for which the provisional load has started
This method is called after the provisional data source of a frame has started to load.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.Open
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: The open event.
Notes:
Called just after the delegate has been installed in a htmlviewer control.
This allows you to initialize your stuff before the first event is called.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.willCloseFrame(WebView as WebViewMBS, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that a pending client-side redirect has been cancelled
Notes:
frame: The frame for which the pending redirect was cancelled

A client-side redirect can be cancelled if a frame changes location before the timeout.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.willPerformClientRedirectToURL(WebView as WebViewMBS, URL as String, delay as Double, fireDate as Date, frame as WebFrameMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that a frame will perform a client-side redirect
Notes:
frame: The frame for which the pending redirect was cancelled

URL: The URL to be redirected to
seconds: Seconds in which the redirect will happen
date: The fire date
rame: The frame on which the redirect will occur

This method can be used to continue progress feedback while a client-side redirect is pending.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

WebFrameLoadDelegateMBS.windowScriptObjectAvailable(WebView as WebViewMBS, windowScriptObject as WebScriptObjectMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event HTMLViewer Mac MBS MacControls Plugin 7.5 Yes No No No No
Function: Notifies the delegate that the scripting object for a page is available.
Notes:
This is called before the page is loaded. It may be useful to allow delegates to bind native objects to the window.

windowScriptObject: The WebScriptObject for the window in the scripting environment.

If you have code in this event, return true to block the event from being sent to the next delegate. Return false to allow sending to next delegate.

Feedback, Comments & Corrections

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





Links
MBS Xojo blog