Side navigation
#2845 closed bug (fixed)
Opened May 12, 2008 03:27PM UTC
Closed February 09, 2009 02:49PM UTC
Last modified March 14, 2012 06:53PM UTC
Sortable that has OBJECT tag generates error in IE
Reported by: | tokyotoejam | Owned by: | paul |
---|---|---|---|
Priority: | major | Milestone: | 1.3.2 |
Component: | core | Version: | 1.3.1 |
Keywords: | sortable | Cc: | |
Blocked by: | Blocking: |
Description
I have group of Sortables divs. One of the divs has a simple OBJECT that imbeds a youtube video. In IE when I try to drag this div around, it generates an error at line 310 saying "Object doesn't support this property or method". When I remove the OBJECT Tag, I do not get an error so I am thinking that the sortables dont like the OBJECT tag in IE. (Other browsers work fine)
Attachments (0)
Change History (4)
Changed June 19, 2008 10:59AM UTC by comment:1
status: | new → assigned |
---|
Changed August 29, 2008 09:13PM UTC by comment:2
Any updates on this? There was just another ticket opened for the same issue http://dev.jquery.com/ticket/3289.
The following is a simple example, which throws an error in IE6 & 7:
<script type='text/javascript'> $(document).ready(function () { var clone = $('#videobox').clone(true); }); </script> <div id="videobox" style='display:none;'> <object width="425" height="355"> <param name="movie" value="http://www.youtube.com/v/JikaHBDoV3k&hl=en"></param> <param name="wmode" value="transparent"></param> <embed src="http://www.youtube.com/v/JikaHBDoV3k&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed> </object> </div>
Changed January 13, 2009 10:44PM UTC by comment:3
I have a bit of a workaround for this bug, until someone can confront it head-on. This will effectively clone ANY element, including OBJECTs.
var theElement = $(YOUR-SELECTOR-HERE).wrap('<div></div>').parent().html(); $(YOUR-SELECTOR-HERE).parent().replaceWith(theElement);
"theElement", in this case, is a carbon copy of your OBJECT element's code, do with it what you will (except clone ;). The second line "unwraps" the original OBJECT.
A caveat: This will not clone event listeners (unless they are as attributes), but I doubt you have events attached to a media object, so no biggie. In any case, you can manually re-attach them if necessary.
Brian B, Head of Frontend Development, 360i LLC
Changed February 09, 2009 02:49PM UTC by comment:4
component: | ui → core |
---|---|
milestone: | 1.2.4 → 1.3.2 |
resolution: | → fixed |
status: | assigned → closed |
version: | 1.2.3 → 1.3.1 |
Fixed in SVN rev [6186].