Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

WebView.LoadURL

Loads the given URL into the webviewer.

Component: WebView
Version: 2.1
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "WebView.LoadURL"; WebViewerRef; URL { ; cachePolicy; timeoutInterval } )

Parameters

Parameter Description Example value
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. "web"
URL The URL to load. "http://www.mbsplugins.eu/"
cachePolicy Optional
The cache policy. Can be 0 for default, 1 for ignoring local cache, 2 return cache data else load, 3 to return cache data and don't load. (Mac only)
1
timeoutInterval Optional
The timeout interval. (Mac only)
120.0

Result

Returns "OK" on success.

Description

Loads the given URL into the webviewer.
In FileMaker 10 (or newer) you can only use LoadURL with a webviewer where FileMaker loaded an URL before. This can be "about:blank".
On Mac you can specify optionally the timeout and cache policy.

Examples

Load website from cache only with 2 minutes timeout:

MBS("WebView.LoadURL"; "web"; "http://www.monkeybreadsoftware.de/"; 3; 120)

See also


WebView.LoadJavascriptURL   -   WebView.Passwords.Clear

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Nachhilfe in Kretz