All functions   Mac OS X   Windows   Crossplatform   Components   New in version: 1.0   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   2.0  

WebView.InstallCallback

Component: WebView
Mac OS X: Works
Windows: Works

MBS( "WebView.InstallCallback" )

Parameters

none

Description

This function needs to be called one time to enable JavaScript to reach out out from the web viewer to run a FileMaker Script. One strategy is to call this function on start-up before any WebViewers have been displayed.

To call back from Javascript to filemaker, you assign a string to the window.status property:

window.status="Filename:Scriptname"
or
window.status="Filename:Scriptname:Parameter"

The Parameter part can contain ":". Filename must include file extensions so Filemaker finds the database file.

Examples

Install Callbacks

MBS("WebView.InstallCallback")

Feedback: Report problem or ask question.