Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebView.CallFunction
Calls a JavaScript function.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 10.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
MBS( "WebView.CallFunction"; WebViewerRef; FunctionName { ; Parameters... } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | ||
FunctionName | The function name. | "test" | |
Parameters... | Pass as many parameters as needed. | "Hello" | Optional |
Result
Returns OK or error.
Description
Calls a JavaScript function.Returns result as text or number.
You can pass as many parameters as needed.
Added iOS and macOS support for version 11.5.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Parameters parameter as often as you need.
Examples
Call with 2 parameters:
MBS( "Webview.CallFunction"; "web"; "test"; "Hello"; "World")
See also
Release notes
- Version 11.5
- Added WebView.CallFunction for MacOS and iOS.
- Version 10.0
- Added WebView.CallFunction to call any JavaScript function on Windows.
Blog Entries
- Neues MBS FileMaker Plugin 11.5 - Über 6600 Funktionen in einem Plugin
- MBS FileMaker Plugin 11.5
- MBS FileMaker Plugin, version 11.5pr1
- New in the MBS FileMaker Plugin 10.0
- Neues MBS FileMaker Plugin 10.0
- MBS FileMaker Plugin 10.0 - More than 6000 Functions In One Plugin
- MBS FileMaker Plugin, version 10.0pr6
This function checks for a license.
Created 4th January 2020, last changed 28th September 2021
WebView.AllowsAnyHTTPSCertificateForHost - WebView.CanResetPageZoom