Webview

This component has functions enable two way integration between FileMaker and web pages that are running in FileMaker WebVeiwer Controls.

There are many simple functions to directly access elements in an HTML page. You can use these to set and get values from web forms.

You can also run any JavaScript you want on any Web Viewer. Sometimes you might need to use JavaScript to access certain type of HTML elements. Or you can us JavScript to do all kinds of things from animation to encryption inside a Web Viewer. See the example files for more ideas

Also you can enable Javascript to call out to FileMaker. So you can make a web page run a FileMaker script or evaluate a FileMaker function. To enable this use "WebView.InstallCallback".

Once call backs have been installed you can use something like the following Javascript to run a FileMaker Script. You can reference the FileName, the ScriptName and the Script Parameter you would like to use.

function CallFM( fileName, scriptName, scriptParameter)
{
var agt=navigator.userAgent;

if (agt.indexOf("Macintosh")!=-1)
{
// Mac OS
FileMaker.Call(fileName, scriptName, scriptParameter);
}
else
{
// Windows we hack the document write element
document.write(fileName, scriptName, scriptParameter);
}
}




Links
MBS Filemaker Plugins - Nachhilfe in Kruft