-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Box Preview Not Loading #772
Comments
Hi @rwmyers46 sorry to hear you are having problems. We will need some more information to help you out. How are you including preview in your app? I can see you said you were using 1.38.1 in your report, but in your screenshots it says 1.39.1. Regardless, I recommend you moving to 1.39.2 although that probably won't fix your problems. Try attaching to the 'load' and 'preview_error' events to help you debug. e.g. preview.addListener('load', (data) => {
console.log(data);
}); |
Hi Dan,
I appreciate your response and recommendations. I’ll have to let Yegor
(cc’d) answer your technical questions.
Thanks!
Russell
…On Mon, Apr 16, 2018 at 20:25 Daniel DeMicco ***@***.***> wrote:
Hi @rwmyers46 <https://github.com/rwmyers46> sorry to hear you are having
problems. We will need some more information to help you out.
How are you including preview in your app? I can see you said you were
using 1.38.1 in your report, but in your screenshots it says 1.39.1.
Regardless, I recommend you moving to 1.39.2 although that probably won't
fix your problems.
Try attaching to the 'load' and 'preview_error' events to help you debug.
e.g.
preview.addListener('load', (data) => {
console.log(data);
});
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#772 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ah9kUL5Tv4Qboo-lslrCgFKYR7MfdjGzks5tpUR9gaJpZM4TXCZ3>
.
|
Hi @DanDeMicco
I tried to:
Yes, when Russell report this issue we actually used all versions starting from 1.37.0 and till 1.39.2
I used your code snippet in my project and the result is next: Only text file shown Also I have couple of questions:
Thank you. |
HI @HBArck you are using requirejs, which messes with how the dependencies are loaded, so you have two options:
or
Let us know if this fixes preview for you. As for your other questions:
|
@DanDeMicco thank you for your quick reply.
Good news is it works now with workaround I built with iframe and communication messages between parent and child pages. |
Great job, Dan / thanks for the help! |
Environment:
Problem:
I can launch in iframe same Codepen example you have on your developer page, but I can't launch it on any page of my application.
Please see screenshot below of 2 approaches :
1st on the top simple <script> attachment for the document
2nd iframe code from Codepen
http://prntscr.com/j4wdw8
As for troubleshooting, I compared the files loaded by preview.js in the Codepen and in my application and they are all the same please open 2nd screenshot to see it under #1
http://prntscr.com/j4weyo
Under #2 you can see that I'm trying to launch same sample from Codepen.
Box and Preview objects are defined and available, but when I turning "Pause on exceptions" button in dev tools of my browser I see couple of exceptions related to files and previewjs:
1st exception is http://prntscr.com/j4wh07 - ActiveXObject is not defined, but file is loaded
2nd exception is http://prntscr.com/j4ww8i - undefined object somewhere
3rd and final is http://prntscr.com/j4wwqn - PDFJS is not defined, even if file is present
Thank you.
The text was updated successfully, but these errors were encountered: