zackexplosion / swfobject

Automatically exported from code.google.com/p/swfobject
1 stars 0 forks source link

Unable to clone objects created by SWFObject via jQuery (IE only) #626

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there

I have here two SWF files, wrapped by SWFObject2 and am swapping between these 
with jQuery's function hide()/show().

On all browsers except IE9 this is working like a charm.

So I tried following for the IE9:
1. Deep clone first object with $.clone(true)
2. Empty first object with $.empty()
3. Replace with clone of second object with $.html(...)

But here is the problem, I'm unable to clone the object at all:
$('#firstObject').clone(true);

An exception is thrown:
"Unable to get value of the property \'nodeType\': object is null or undefined" 
   String

Not sure about the origin of this bug but I have reported it on jQuery too:
http://bugs.jquery.com/ticket/10324

Maybe you can tell me more about it?

Thanks heaps
Michael

Original issue reported on code.google.com by michael....@gmail.com on 24 Mar 2012 at 3:07