Platforms to show: All Mac Windows Linux Cross-Platform

Next items

WebViewMBS.alignCenter
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that applies center alignment to selected content or all content if there’s no selection.
Notes: Available in Mac OS X v10.3.9 and later.
WebViewMBS.alignJustified
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that applies full justification to selected content or all content if there’s no selection.
Notes: Available in Mac OS X v10.3.9 and later.
WebViewMBS.alignLeft
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that applies left justification to selected content or all content if there’s no selection.
Notes: Available in Mac OS X v10.3.9 and later.
WebViewMBS.alignRight
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that applies right justification to selected content or all content if there is no selection.
Notes: Available in Mac OS X v10.3.9 and later.
WebViewMBS.ApplicationNameForUserAgent as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The application name.
Example:
webview1.ApplicationNameForUserAgent="test"
// useragent is now "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/417.9 (KHTML, like Gecko) test"
Notes:
This name will be used in user-agent strings that are chosen for best results in rendering web pages.
(Read and Write computed property)
WebViewMBS.backForwardList as WebBackForwardListMBS
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The backforward list for this webView.
Notes: Nil on failure.
WebViewMBS.canGoBack as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the history can be used to move back one website.
WebViewMBS.canGoForward as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the history can be used to move forward one website.
WebViewMBS.canMakeTextLarger as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the text size can be increased.
WebViewMBS.canMakeTextSmaller as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the text size can be decreased.
WebViewMBS.CanShowMIMEType(mime as string) as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Checks if the WebKit can show content of a certain MIME type.
Notes: Returns false on any error and true on success.
WebViewMBS.CanShowMIMETypeAsHTML(mime as string) as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Checks if the the MIME type is a type that the WebKit will interpret as HTML.
Notes: Returns false on any error and true on success.
WebViewMBS.changeAttributes
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that changes the attributes of the current selection.
Notes: Available in Mac OS X v10.3.9 and later.
WebViewMBS.changeColor
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Sets the color of the selected content.
Notes:
This method is invoked by the NSColorPanel sender.
Available in Mac OS X v10.3.9 and later.
WebViewMBS.changeDocumentBackgroundColor
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Sets the background color of the selected content.
Notes:
This method is invoked by the NSColorPanel sender.

Available in Mac OS X v10.3.9 and later.
WebViewMBS.changeFont
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that changes the font of the selection, or all content if there is no selection.
Notes:
If the receiver doesn’t use the Fonts panel, this method does nothing.

Available in Mac OS X v10.3.9 and later.
WebViewMBS.checkSpelling
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that searches for a misspelled word in the receiver.
Notes:
This action method starts a search at the end of the selection and continues until it reaches a word suspected of being misspelled or the end of the content. If a word isn’t recognized by the spelling server, a showGuessPanel message is sent to the receiver which opens the Guess panel and allows the user to make a correction or add the word to the local dictionary.

Available in Mac OS X v10.3.9 and later.
class WebViewMBS
class, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The class to handle a webview.
Notes:
A webview is simply a content viewer for any web based content. It can render html pages, text pages and with plugins also flash or pdf files.

All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
Subclass of the NSViewMBS class.
WebViewMBS.ClearFocus
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Clears the focus.
Example:
webview.ClearFocus
Notes: If the focus is on the webpage, it will be cleared so there is no focus on the window. Useful if you want to workaround a focus bug in the htmlviewer control.
WebViewMBS.Constructor
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates a new box view with size 100/100 and position 0/0
Example:
dim x as new WebViewMBS
Notes: On success the handle property is not zero.

See also:

WebViewMBS.Constructor(left as double, top as double, width as double, height as double)
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates a new button with the given size and position.
Example:
dim w as new WebViewMBS(0,0,800,600)

w.LoadHTMLString "Hello World",""

// and later

dim n as NSImageMBS = w.RenderImage
Backdrop=n.CopyPicture
Notes: On success the handle property is not zero.

See also:

WebViewMBS.Constructor(x as double, y as double, w as double, h as double, FrameName as string, GroupName as string)
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Initializes a webview with a frame rectangle, a WebFrame name, and a group name.
Example:
dim w as WebViewMBS

w=new WebViewMBS(0,0,800,600,"test","test")

w.LoadHTMLString "Hello World",""

// and later

dim n as NSImageMBS = w.RenderImage
Backdrop=n.CopyPicture
Notes:
The frameName should not be one of the pre-defined frame names (see the WebFrame findFrameNamed for a description of their meaning), but a custom name or a name used in HTML source. The groupName argument is an arbitrary identifier used to group related frames. For example, JavaScript running in a frame can access any other frame in the same group. It's up to the application how it chooses to scope related frames. Both frameName and groupName may be "". This method is the designated initializer for the WebView class.

On success the handle property is not zero.

See also:

WebViewMBS.ContinuousSpellCheckingEnabled as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether continuous spell checking is enabled.
Example:
webview1.ContinuousSpellCheckingEnabled=True
Notes:
True if the object should have continuous spell-checking enabled; otherwise, false.
Available in Mac OS X v10.3.9 and later.
(Read and Write computed property)
WebViewMBS.copy
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Action method that copies the selected content to the general pasteboard.
Notes:
This action method copies the selected content onto the general pasteboard, in as many formats as the receiver supports. For example, a plain text object uses NSStringPboardType for plain text, and a rich text object also uses NSRTFPboardType.

Available in Mac OS X v10.3.9 and later.
WebViewMBS.copyFont
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that copies font information onto the font pasteboard.
Notes:
This action method copies the font information for the first character of the selection (or for the insertion point) onto the font pasteboard as NSFontPboardType.

Available in Mac OS X v10.3.9 and later.
WebViewMBS.CustomTextEncodingName as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The custom text encoding name.
Notes:
On getting:
The custom text encoding name or "" if no custom text encoding name has been set.

On setting:
Make the page display with a different text encoding; stops any load in progress.
The text encoding passed in overrides the normal text encoding smarts including what's specified in a web page's header or HTTP response.
The text encoding automatically goes back to the default when the top level frame changes to a new location.
Setting the text encoding name to nil makes the webView use default encoding rules.
(Read and Write computed property)
WebViewMBS.CustomUserAgent as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The custom user-agent string or nil if no custom user-agent string has been set.
Example:
webview1.CustomUserAgent="HelloWorldBrowser"
Notes: (Read and Write computed property)
WebViewMBS.cut
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that deletes selected content and puts it on the general pasteboard.
Notes:
This action method deletes the selected content and places it onto the general pasteboard, in as many formats as the receiver supports. For example, a plain text object uses NSStringPboardType for plain text, and a rich text object also uses NSRTFPboardType.

Available in Mac OS X v10.3.9 and later.
WebViewMBS.dashboardBehavior(behavior as integer) as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Get or set the htmlviewer behavior.
Notes:
This is a private API from Apple which may break in the future.
It seems to exist for the dashboard application to switch some flags for event handling.

Behavior constants:
const WebDashboardBehaviorAlwaysSendMouseEventsToAllWindows = 0
const WebDashboardBehaviorAlwaysSendActiveNullEventsToPlugIns = 1
const WebDashboardBehaviorAlwaysAcceptsFirstMouse = 2
const WebDashboardBehaviorAllowWheelScrolling = 3
const WebDashboardBehaviorUseBackwardCompatibilityMode = 4
(Read and Write computed property)
WebViewMBS.delete
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An action method that deletes the selected content.
Notes:
The pasteboard is unaffected by invoking this method.

Available in Mac OS X v10.3.9 and later.
WebViewMBS.DrawsBackground as Boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Enable or disable the background drawing.
Notes:
Works only with Webkit on Mac OS X 10.3.9 and newer.
Returns false on unsupported Webkit versions.
If you set it to false, the background is not drawn and you can have transparent websites like the Dashboard widgets.
(Read and Write computed property)
WebViewMBS.Editable as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the user is allowed to edit the document.
Notes:
You can change the receiver’s document programmatically regardless of this setting.
Available in Mac OS X v10.3.9 and later.

Normally, an HTML document is not editable unless the elements within the document are editable. This method provides a low-level way to make the contents of a WebView object editable without altering the document or DOM structure.

True if the receiver allows the user to edit the document. False if an element in the receiver’s document can be edited only if the CONTENTEDITABLE attribute has been set on the element or one of its parent elements.
(Read and Write computed property)
WebViewMBS.EstimatedProgress as double
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: An estimate of the percent complete for a document load.
Example:
// waits till rendering is done:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.html")

WebView.mainFrame.LoadURL f.URLPath

while WebView.EstimatedProgress>0
DelayMBS 0.1
wend

// this works only because EstimatedProgress is set to 0.1 by LoadURL
// and set back to zero when the load process finishes.
// If future Webkit versions change the EstimatedProgress results,
// it will break.
Notes: This value will range from 0 to 1.0 and, once a load completes, will remain at 1.0 until a new load starts, at which point it will be reset to 0. The value is an estimate based on the total number of bytes expected to be received for a document, including all it's possible subresources. For more accurate progress indication it is recommended that you implement a WebFrameLoadDelegate and a WebResourceLoadDelegate.
WebViewMBS.EvaluateJavaScript(code as string) as string
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Runs the given java script and returns the result.
Example:
// shows current user agent string which the control sends to website
MsgBox webview1.EvaluateJavaScript("navigator.userAgent;")

// using eval:
MsgBox webview1.EvaluateJavaScript("eval(""x=10;y=20;x*y"")")

// with function:
MsgBox webview1.EvaluateJavaScript(" test(); function test() { x = 10 ; y = 20; return x * y;}")

// with multiline script:
dim s as string = "test();"+EndOfLine+_
"function test()"+EndOfLine+_
"{ "+EndOfLine+_
" x = 10; "+EndOfLine+_
" y = 20; "+EndOfLine+_
" return x * y;"+EndOfLine+_
"}"

MsgBox webview1.EvaluateJavaScript(s)
Notes:
Returns "" on any error.

In Safari 2 we used "return 1+2;" while in Safari 3 we only need "1+2;". The return is no longer needed. Be aware that there is an implicit return now with Safari 3!
WebViewMBS.GoBack
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Go back to the previous URL in the backforward list.
WebViewMBS.GoForward
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Go forward to the next URL in the backforward list.
WebViewMBS.goToBackForwardItem(item as WebHistoryItemMBS) as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Moves on the history to the given item.
Notes: Returns true on success or false on failure.
WebViewMBS.GroupName as string
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The group name for this WebView.
Notes:
JavaScript may access named frames within the same group.
(Read and Write computed property)
InstallWebFrameLoadDelegate(extends w as WebViewMBS, theDelegate as WebFrameLoadDelegateMBS)
global method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerDelegate), Console safe, Plugin version: 8.5, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Installs a WebFrameLoadDelegateMBS to receive events from a webview control.
Notes: You need to keep a reference to this WebFrameLoadDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.
InstallWebPolicyDelegate(extends w as WebViewMBS, theDelegate as WebPolicyDelegateMBS)
global method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerDelegate), Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Installs a WebPolicyDelegateMBS to receive events from a webview control.
Notes: You need to keep a reference to this WebPolicyDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.
InstallWebResourceLoadDelegate(extends w as WebViewMBS, theDelegate as WebResourceLoadDelegateMBS)
global method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerDelegate), Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Installs a WebResourceLoadDelegateMBS to receive events from a webview control.
Notes: You need to keep a reference to this WebResourceLoadDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.
InstallWebUIDelegate(extends w as WebViewMBS, theDelegate as WebUIDelegateMBS)
global method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerDelegate), Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Installs a HTMLViewerUIDelegateMBS to receive events from a webview control.
Notes: You need to keep a reference to this HTMLViewerUIDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.
WebViewMBS.LoadHTMLString(data as string, mime as string, encoding as string, url as string)
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads data as a webpage.
Example:
webview.LoadHTMLString "<b>test</b>","text/plain","","" // show as plain text
webview.LoadHTMLString "<b>test</b>","text/html","","" // show as html
Notes:
data: The data to use for the main page of the document.
mime: The MIME type of the data. e.g. "text/html"
textencoding: The encoding of the data.
url: The base URL to apply to relative URLs within the document.

All parameters can be empty if needed.
Using "text/plain" mime type you can show source code of website.

Like most Webkit Methods this one can not be called from a thread.

See also:

WebViewMBS.LoadHTMLString(text as string, url as string)
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads a html page from a string.
Notes:
html: The string to use for the main page of the document.
url: The base URL to apply to relative URLs within the document. (optional)

Like most Webkit Methods this one can not be called from a thread.

See also:

WebViewMBS.LoadRequest(request as NSURLRequestMBS)
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads the given url request.
Notes: Like most Webkit Methods this one can not be called from a thread.
WebViewMBS.LoadURL(url as string)
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads the url.
Example:
webview.LoadURL "http://www.monkeybreadsoftware.de"
Notes:
Like most Webkit Methods this one can not be called from a thread.
Internally this calls LoadRequest with a NSURLRequest based on the given URL.

See also:

WebViewMBS.LoadURL(url as string, CachePolicy as integer, TimeOut as double)
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads the URL.
Example:
webview.LoadURL "http://www.monkeybreadsoftware.de", 1, 2.0
Notes:
The timeout interval is in seconds.

Constants for the CachePolicy parameter:
const UseProtocolCachePolicy= 0Specifies that the caching logic defined in the protocol implementation, if any, is used for a particular URL load request. This is the default policy for URL load requests.
const ReloadIgnoringCacheData= 1Specifies that the data for the URL load should be loaded from the originating source. No existing cache data should be used to satisfy a URL load request.
const ReturnCacheDataElseLoad= 2Specifies that the existing cached data should be used to satisfy the request, regardless of its age or expiration date. If there is no existing data in the cache corresponding the request, the data is loaded from the originating source.
const ReturnCacheDataDontLoad= 3Specifies that the existing cache data should be used to satisfy a request, regardless of its age or expiration date. If there is no existing data in the cache corresponding to a URL load request, no attempt is made to load the data from the originating source, and the load is considered to have failed. This constant specifies a behavior that is similar to an “offline” mode.

Like most Webkit Methods this one can not be called from a thread.
Internally this calls LoadRequest with a NSURLRequest based on the given URL.

See also:

WebViewMBS.mainFrame as WebFrameMBS
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebViewMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The main webframe currently displayed.
Notes: Nil if no is present.

Previous items

The items on this page are in the following plugins: MBS REALbasic Cocoa Plugin, MBS REALbasic CocoaBase Plugin.




Links
MBS REAL studio Plugins - Nachhilfe in Wassenach