4. Webビューア

The Web Viewer is at the core of all BlackBoxes. When deciding how to build a BlackBox component, you will need to know a few important things about how the Web Viewer works.

Web Viewer Basics

For starters, the Web Viewer uses your web browser to render the page. If you are using Windows, it will ALWAYS use your installed version of Internet Explorer to render the page. If you are using a Mac, the Web Viewer will ALWAYS use your installed version of Safari - It doesn't matter what your 'Default' web browser application is, FileMaker will always use either Internet Explorer or Safari.

When building a BlackBox, you need to remember to test on both Internet Explorer and Safari, but not only that, you need to think about testing on the different versions of these browsers, as they can all behave differently.

Internet Explorer

Internet Explorer requires special consideration, especially if you are planning on supporting the different browser versions. Each version of Internet Explorer renders some content quite differently - If the user has IE 8 installed however, be aware that the web viewer will never use IE 8 Standards mode, unless forced to - find out here.

Web Viewer Options

In the lower part of the Web Viewer Setup dialogue, you are given several checkbox options which affect how the Web Viewer displays and behaves on your layout.

Checkbox Name

Effect

Alllow interaction with web viewer content

When checked, this will allow the user to click, drag, type and otherwise effect items in the web viewer (provided you have written the appropriate code to enable these controls).

If unchecked, regardless of your code, the user will not be able to interact with the web viewer in any way, This includes scrolling, selecting text etc. Useful if you want a quick easy way to provide a Display Only control.

Display content in Find mode

When checked, the web viewer will load its content while in find mode. If unchecked, it will stay blank. Note that this is the only time that the web viewers background color (as defined by FileMaker in layout mode) is used.

Display progress bar

Shows a progress bar at the bottom of the web viewer. Useful if loading an external site, or something that may take a while to load.

Display status messages

Shows an area below the progress bar at the bottom of the web viewer. This area will display loading, and other status messages, similar to what would appear in a web browser.