12 Plug-in Reference
411
NeptuneLabs - FSI Viewer
12.12 JavaScript Bridge
Plug-in Extends:
• FSI Viewer
• FSI Showcase
• FSI Pages
100 %
360°
Viewer
Plug-in Location:
/plugins/jsbridge.swf
Function
:
Integrates a JavaScript interface to enable
interaction between FSI Viewer and JavaScript
contained in the hosting HTML page.
Syntax:
<Plugin src="jsbridge" />
Requirements:
Browser supporting live connect between Flash and JavaScript (Livewire)
Please note: FSI Pages does not send JavaScript Events by default.
Please set the FSI Pages parameter "events" to activate JSBridge
interactivity.
The "JavaScript Bridge" plug- in provides a scripting interface to control FSI Viewer
using JavaScript. Using the JavaScript bridge you can control viewer functions like
"ZoomIn" and "Reset", you can remotely press/release Buttons inside the FSI
Viewer and you can zoom to specified image sections directly. Additionally you can
implement a JavaScript function receiving FSI event notifications.
Though the integration of the plug-in is very easy, basic knowledge of JavaScript is
required to use JSBridge plug- in – especially regarding browser dependent
JavaScript implementations.
Implementing the JavaScript Bridge plug-in
1) Add an ID-attribute to your FSI Viewer Object and Embed tag
<object id="fsiviewer" classid= ...>
<embed NAME="fsiviewer"...>
This way you are able to access the viewer object via Javascript.