Firefox iframe onload pdf




















If embed is forcefully written, it works. Instead of pdf. In this case, embed cannot be accessed. Glad I could help you find the source of the problem and resolve it. Sorry but the issue isn't resolved. I still need to verify if iFrame contains a PDF.

Hmn then I misunderstood your last message. So the problem now is that when your servlet prints the PDF you have a problem and when you write an embed tag it works? Have you tried having the servlet write out an embed instead of only the PDF? I fear you'll need to post some of the code that creates your page so we can look for the reason it's not working.

Your answer did help me. Looks like I resolved it. Will post the answer soon. But works for me. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back I am not sure what your problem is, as your site is working fine when I look at it with my Firefox Quantum under Windows 10 Pro see snapshot.

It would be helpful if you could provide some more information on your installation, please. Which OS? Is it a clean new install, or if an upgrade from earlier Firefox, do you remember which version? Thank you both for the responses The problem is solved for me. Apparently, when I upgraded to Quantum, the default to view pdf documents in FF was not enabled. Enabling this solved the issue for me. However, I wonder about the viewers to my website. Iframe has an "onLoad" event. Once PDF is loaded it triggers onloat event where i'm hiding the loader :.

The solution I have applied to this situation is to simply place an absolute loading image in the DOM, which will be covered by the iframe layer after the iframe is loaded. Hope this helps if no javaScript solution did. I do think that CSS is best practice for these situations. How do I fire an event when a iframe has finished loading in jQuery? JavaScript - jquery words.

Question I have to load a PDF within a page. Ideally I would like to have a loading animated gif which is replaced once the PDF has loaded.



0コメント

  • 1000 / 1000