Open GoogleCodeExporter opened 9 years ago
swfobject.getObjectById should return null in both cases. If using
swfobject.registerObject and Flash is either not found or the minimum version
is not met, SWFObject should remove the <object> nodes, leaving the alternate
content in their place. swfobject.getObjectById should therefore fail because
the <object> will no longer exist.
Some of the inner workings of both swfobject.getObjectById and
swfobject.registerObject have been updated for the beta of SWFObject 2.3, and
should fix this issue. Please give it a try and see if it helps:
https://github.com/swfobject/swfobject/blob/master/swfobject/src/swfobject.js
Original comment by platelu...@gmail.com
on 28 Oct 2011 at 6:57
I've tested with the link you provided and there is some improvement, but not
what you suggested :
On both IE9 and FF6, I'm calling getFlashPlayerVersion in registerObject
callback, and I got 0.0.0. So, Flash is definitely not installed/loaded.
Then, I'm trying getObjectById and I got a DOM element returned in both
browsers (with the 2.2, I got null in IE9 here).
But, when inspecting the html through the IE9 dev tools or through Firebug, I
can see that the whole <object> node is still here, and has not be replaced
with the alternate content.
FWIW, I'm loading SWFObject in the head, insert the SWF in the middle of the
page using static publishing, then run swfobject.registerObject in my main js
file loaded at the bottom of the page (but not in the onload event)
Original comment by timcc.pe...@gmail.com
on 31 Oct 2011 at 9:52
thank you for the information, i will look into it.
Original comment by platelu...@gmail.com
on 31 Oct 2011 at 5:18
Original issue reported on code.google.com by
timcc.pe...@gmail.com
on 28 Oct 2011 at 9:07