troubleshooting Question

Loading image for embedded PDF

Avatar of Rowdyone52
Rowdyone52 asked on
HTMLScripting Languages
4 Comments1 Solution821 ViewsLast Modified:
I am trying to embed a PDF in an html page. The problem is it takes a few moments to load and we need a loading image to display until it is complete. I can't find a cross browser solution. Chrome handles the iframe with an onload event which hides the loading image and displays the iframe, but FF doesn't fire the onload event. IE doesn't show the PDF inline if it's in an iframe but opens it in the default application. The object tag doesn't have an onload event in Chrome or IE and if I try downloading the pdf asynchronously there is no way to pass the data to the object since it's source has to be a url. The same problem exists for the embed tag. This seems like it should be a lot easier, but any advice would be welcomed.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros