Is there a JS/JQuery way to find out if embedded objects are loaded?
- by Beska
I've got a web page that I'm embedding a pdf into. Conceptually very simple:
<html>
<body>
blah1
<object type="application/pdf" data="a.pdf" width="500" height="650" ></object>
blah2
</body>
</html>
What I would like to do is fire a JavaScript event when the pdf finishes loading. Is there a way to make this happen? I know only a little about JQuery, but it looks like .ready() won't fit my needs, since it is designed to fire when the html document is ready, not when all of its components are fully loaded.
Thoughts?