Many of the customers interested in our new AJAX viewer are looking to embed a viewer in an existing web page. In this case, the traditional mechanism of specifying the document within the page URL may not be sufficient. In this case, we have provided an alternative mechanism for specifying the document via JavaScript.
myFlexSnap.setDocumentId("insertDocumentIdHere");
myFlexSnap.init();
In this example, you simply replace insertDocumentIdHere
with the documentId
you want to load. The call to the init()
method will re-initialize the viewer and ensure that the image and thumbnails are reloaded.