Blog: CEO’s Corner

agsdix-fas fa-home

Blog: Home

agsdix-fas fa-pen-fancy

Blog: CEO's Corner

agsdix-fas fa-code

Blog: Tech Talk

Blog: Product Releases

agsdix-fas fa-chalkboard-teacher

Blog: Viewing

Blog: Conversion

arrow left circle icon Blog: CEO’s Corner

Changing Documents on the Fly with VirtualViewer AJAX

by | Nov 6, 2008

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.