Skip to main content

Bug Tracker

Side navigation

#2887 closed bug (invalid)

Opened May 16, 2008 07:58PM UTC

Closed July 11, 2010 06:50PM UTC

Last modified March 14, 2012 04:16PM UTC

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

Reported by: michelled Owned by: paul
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:

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

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 (1)
  • writeln.html (2.5 KB) - added by michelled September 08, 2008 02:59PM UTC.
Change History (3)

Changed September 08, 2008 03:00PM UTC by michelled comment:1

I've attached the example because it is being removed from the fluid project svn.

Changed September 10, 2008 07:33PM UTC by Bosmon comment:2

This issue is caused by any <script> blocks present within the dragged material being re-evaluated on reattachment to the docuement - even if they had originally been evaluated. The only reasonable solution would seem to be to remove them from the node children on drag start in the drag manager.

Changed July 11, 2010 06:50PM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

This should be filed in the UI bug tracker if still relevant.