I am having trouble finding an exposed event in the Document Preview that would cue my code that the document has been entirely rendered - i.e., all the pages or at least the first page has rendered to the DOM so further work can be done in the DOM. The 'load' event seems to fire quite early - sometime after the viewer container is rendered but before the contained document is rendered. The 'pagefocus' event seems to work as expected, except on the first page. When a document renders, it always focuses in on whatever page was previously viewed, but 'pagefocus' doesn't catch this event. The 'pagerendered' event doesn't seem to get kicked off at all. So I actually need to write a nasty poll to wait for the document to be loaded in the previewer? Currently, if I use the 'load' event, my code doesn't find any DOM elements for the document and does nothing.
Question
Document Preview Events
Sign up
Already have an account? Login
Community access is available only with a Box Account.
Sign in with your Box AccountSign in to the Box Community
No account yet? Create an account
Community access is available only with a Box Account.
Sign in with your Box AccountEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
