IE draggable probably severe ghosting bug

2 views
Skip to first unread message

Surendra

unread,
Nov 16, 2007, 12:40:49 PM11/16/07
to rubyonrail...@googlegroups.com
Hi,

It seems Drag and Drop in scriptaculous 1.8 with ghosting on is broken In IE.
The culprit is the line
delete this.element._originallyAbsolute;

in finishDrag function

I don't know what the workaround for deleting DOM object properties in
IE6 is, but even in a test case which I prepared this fails.

<h1 id="test"></h1>
<script> var x=document.getElementById('test'), fruit = new Object;
fruit.size = 'large';
delete fruit.size; //works fine
x.prop = 3;
delete x.prop; //throws error in IE6/7
</script>

Anybody noticed this? Maybe we need a bugfix 1.8.1 release.

Thanks!
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com

Robert

unread,
Nov 19, 2007, 4:32:38 AM11/19/07
to Ruby on Rails: Spinoffs
On 16 Nov., 18:40, Surendra <singhi.suren...@gmail.com> wrote:
> Hi,
>
> It seems Drag and Drop in scriptaculous 1.8 with ghosting on is broken In IE.
> The culprit is the line
> delete this.element._originallyAbsolute;
>
> in finishDrag function

I have exactly the same problem. In IE6 and IE7 (standalone) it throws
me an "Object does not support this action" message, in FF it runs
just fine. Changing the line to 'this.element._originallyAbsolute =
null;' helps, but like Surendra I have no clue if that is the correct
way to handle removal.

PS: The z-index problem with draggables (which you have dropped on
another droppable) is still present. :-(

Greetings,
Robert
Reply all
Reply to author
Forward
0 new messages