Asynchronous loading
Load a server document
Request Base64 document data from this demo's controller and load it into the existing viewer instance.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Load asynchronously from JavaScript
Fetch Base64 document data from a focused controller endpoint and load it into the existing viewer instance without navigating away.
API used
TXDocumentViewer.loadDocument
How it works
The Razor helper prepares the browser viewer and its document. Demo-specific JavaScript uses the public TXDocumentViewer API and remains encapsulated with this demo.
Source files
See the implementation
The view, browser behavior, assets, and controller are encapsulated in Demos/DocumentViewer/Loading/FromJavaScript.