To navigate to a specific image section you simply use the "Goto" command followed
by a valid image section parameter. Please refer to the chapter
→ Debug Mode for
details on how to obtain image section parameters.
Example: Button "Zoom to image section" (MSIE)
<input type="button" value="Zoom to section"
onClick="document.all.fsiviewer.SetVariable('FSICMD',
'Goto:1,3,0,0,0');">
Implementing JavaScript callbacks
Using JavaScript callbacks enables you to react to FSI Viewer, FSI Pages or FSI
Showcase events by executing JavaScript code. The JSBridge plug- in calls a
JavaScript function using the Flash FSCommand architecture providing an event
identifier and a parameter.
Please follow the steps below to implement JavaScript callbacks from FSI Viewer:
Step 1. Enable JavaScript callbacks by setting the plug-in parameter "Callback" to
"true", e.g.
Example: Enabling JavaScript Callbacks
<plugin src="jsbridge" callback="true" />
Or alternatively via HTTP query:
...fsi.swf?cfg=foo&jsbridge_callback=1
Step 2. Add a unique identifier to the <object> and the <embed> tag of FSI Viewer
/ FSI Showcase.
Example: Adding ID / NAME parameters
<object id="fsiviewer" classid= ...>
<Param name="movie" value="...>
...
<embed NAME="fsiviewer"...>
...
</object>
12 Plug-in Reference
NeptuneLabs - FSI Viewer
416