Skip to main content

Search and Top Navigation

#2887 closed bug (notabug)

Opened May 16, 2008 07:58PM UTC

Closed May 25, 2008 11:06PM UTC

Mash-up issue with drag and drop and document.writeln

Reported by: michelled Owned by: paul
Priority: major Milestone:
Component: ui.draggable Version: 1.5b4
Keywords: Cc:
Blocked by: Blocking:
Description

Dragging something with a 'document.writeln' in it causes the page to break. Here is an example:

http://build.fluidproject.org/sakai-imagegallery-tool/tests/fluid-tests/manual/jQueryDnD/writeln.html

To replicate the issue, try to drag 'Item 1'.

I encountered this problem when using jQuery drag an drop in a learning management system that already contained some javascript. We wanted to drag sections of the page around to change the layout. One of the sections of the page had an existing script that contained a call to 'document.writeln'.

Attachments (0)
Change History (3)

Changed May 24, 2008 03:39AM UTC by comment:1

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed May 24, 2008 04:13PM UTC by paul comment:2

component: ui.coreui.draggable
version: 1.2.31.5b4

Changed May 25, 2008 11:06PM UTC by paul comment:3

resolution: → invalid
status: newclosed

THis is not a issue of draggables - it's related to the cloning and appending of the element, which reexecutes the script code in global scope.