| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Overlay.AddWebViewer
Adds a web viewer to an overlay.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Overlay | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
MBS( "Overlay.AddWebViewer"; OverlayRef ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| OverlayRef | The overlay window reference number. | $overlay |
Result
Returns webviewer reference number or error.
Description
Adds a web viewer to an overlay.The web pages loaded can define a transparent background to make the whole page transparent. Then you can have things on top, that can have round borders or other transparency effects.
e.g. the body may be set to style="background:rgba(255, 255, 255, 0); margin: 0; height: 100%; overflow: hidden;" and a div in front of it could have round rectangles and a red background with style="border-radius: 15px; background:rgba(255, 100, 100, 1); height:100px; padding:5px;".
If the loaded website has no background, mouse clicks may fall through.
Examples
Creates an overlay with a web viewer and load an URL into it:
Set Variable [ $overlay ; Value: MBS("Overlay.Create") ]
Set Variable [ $r ; Value: MBS("Overlay.SetFrame"; $overlay; 100; 100; 300; 120) ]
Set Variable [ $$web ; Value: MBS("Overlay.AddWebViewer"; $overlay) ]
Set Variable [ $r ; Value: MBS("WebView.LoadURL"; $$web; "https://monkeybreadsoftware.com/filemaker/examples/transparent.html") ]
Set Variable [ $r ; Value: MBS("Overlay.SetVisible"; $overlay; 1) ]
Set Variable [ $$overlay ; Value: $overlay ]
Set Variable [ $r ; Value: MBS("Overlay.SetFrame"; $overlay; 100; 100; 300; 120) ]
Set Variable [ $$web ; Value: MBS("Overlay.AddWebViewer"; $overlay) ]
Set Variable [ $r ; Value: MBS("WebView.LoadURL"; $$web; "https://monkeybreadsoftware.com/filemaker/examples/transparent.html") ]
Set Variable [ $r ; Value: MBS("Overlay.SetVisible"; $overlay; 1) ]
Set Variable [ $$overlay ; Value: $overlay ]
See also
Release notes
- Version 16.0
- Improved Overlay.AddWebViewer on handle fmp:// URL within the WebViewer and trigger them in FileMaker.
- Version 14.5
- Added Overlay.AddWebViewer function.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 15.6pr1
- Add a WebViewer to an Overlay window
- Neues MBS Plugin 14.5 für Claris FileMaker
- MBS FileMaker Plugin 14.5 for Claris FileMaker
- MBS FileMaker Plugin, version 14.5pr8
- MBS FileMaker Plugin, version 14.5pr4
FileMaker Magazin
This function checks for a license.
Created 17th March 2024, last changed 20th November 2025