Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Navigates to a resource identified by a URL or to a file identified by a full path.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 10.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | ||
URL | The URL, full path, or Universal Naming Convention (UNC) location and name of the resource to display. | "http://monkeybreadsoftware.com/filemaker/echo.cgi" | |
PostData | The data to post. The post data that is sent to the server as part of a HTTP POST transaction. A POST transaction is typically used to send data gathered by an HTML form. If this parameter does not specify any post data, this method issues an HTTP GET transaction. This parameter is ignored if the URL is not an HTTP URL. |
"<test>Hello World</test>" | Optional |
Headers | The text list that contains additional HTTP headers to send to the server. These headers are added to the default headers. For example, headers can specify the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if the URL is not an HTTP URL. | "Test: MyHeader 123 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15" |
Optional |
Returns OK or error.
Note for Windows: For Windows this function is only supported in FileMaker Pro when using Internet Explorer as engine behind the Web Viewer, but not when Microsoft Edge/Chrome engine is used. But the functions should still work if with Web Viewers created via plugin using WebView.Create and WebView.CreateWithControl as those still use Internet Explorer.
Load URL in webviewer by doing a POST with custom header to overwrite user agent:
MBS( "WebView.PostURL"; "web";
// URL
"https://www.monkeybreadsoftware.com/filemaker/echo.cgi";
// some POST data
"Hello World";
// and our custom headers
"Test: MyHeader 123¶User-Agent: Mozilla/5.0 (FileMaker; Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15 )")
Created 29th January 2020, last changed 29th January 2020
WebView.Paste - WebView.PressKey
Feedback: Report problem or ask question.