Skip to main content

Search and Top Navigation

#4636 closed bug (notabug)

Opened June 25, 2009 02:48PM UTC

Closed November 10, 2009 04:10AM UTC

Draggable and Resizable after AJAX update in IE

Reported by: lindner@visionet.de Owned by:
Priority: critical Milestone: 1.8
Component: ui.draggable Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

Having the following code

<div id="outer" style="border:2px solid blck; display:block;height:50px;width:50px;">

<div id="middle" style="border:2px solid red; display:block;height:100%;width:100%;">

<div id="inner" style="border:2px solid green; display:block;height:100%;width:100%;">

 

</div>

</div>

</div>

<script type="text/javascript" >

jQuery('#outer').droppable();

jQuery('#middle').resizable();

jQuery('#inner').draggable();

</script>

This works pretty well unless the #outer element is DOM replaced by an AJAX response (the response replaces the old #outer with a new one).

Then ALL draggable elements, not only the replaced, stop working. this only affects IE (6, 7, 8).

IE reports an error message inside the jquery 1.3.2 library (line 2917 in the uncompressed js file).

Attachments (0)
Change History (2)

Changed July 09, 2009 02:30PM UTC by jzaefferer comment:1

milestone: TBD1.8

Changed November 10, 2009 04:10AM UTC by scottgonzalez comment:2

resolution: → invalid
status: newclosed

Replacing DOM elements means that the existing DOM elements with the plugins initialized on them are destroyed.