Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

WebView.LoadURL

Loads the given URL into the webviewer.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 2.1 Yes Yes No No Yes

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

Example Databases


WebView.LoadJavascriptURL   -   WebView.MakeTextLarger

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins