IE9 Drag-Drop

1,103 views
Skip to first unread message

tazz_ben

unread,
Sep 24, 2010, 3:58:48 PM9/24/10
to Prototype & script.aculo.us
Are other people seeing issues with script.aculo.us' drag and drop in
the latest beta of IE 9? I know what to do about this is a bit
complicated because it might be their bug. But we also don't want a
core feature like that not working when it gets released.

Marcus Schwarz

unread,
Sep 24, 2010, 4:15:12 PM9/24/10
to prototype-s...@googlegroups.com
Hi,

we've encountered that issue in each of our products using scripty, drag & drop is broken in IE9. Our Quick Fix: Setting the X-UA-Header for Internet Explorer so it uses IE8-mode to render the pages.

Regards
Marcus

Steffen Christgau

unread,
Sep 27, 2010, 7:37:48 AM9/27/10
to Prototype & script.aculo.us
On 24 Sep., 21:58, tazz_ben <b...@wbpsystems.com> wrote:
> Are other people seeing issues with script.aculo.us' drag and drop in
> the latest beta of IE 9?  

Yes. After updating the Platform Preview to "version" 5
(1.9.7930.16406) today, I encountered that problem too. Not sure, but
former tests with PP4 didn't reveal such a problem with drag and drop.
Can someone confirm this?

Regards


Steffen

Steffen Christgau

unread,
Sep 27, 2010, 12:58:14 PM9/27/10
to Prototype & script.aculo.us
Hi folks,

I was able to reinstall an older version of IE9 PP (1.9.7916.6000) but
it also raises the drag'n'drop problem. I start started debugging and
found the following (Prototype version 1.6.1, Scriptaculous v1.8.3):

script.aculo.us will start dragging only if you pressed the left
button (for sure ;-)). To check the the button it calls isLeftClick
from Prototype which calls an internal method named _isButton
(prototype.js, line 4290). This one checks whether the given button
number matches the pressed button number. The function is specific for
IE and WebKit-Browsers. In the IE-case it uses a LUT to verify that
both button number match, since the IE seems to have a different
button numbering (correct me if I'm wrong - I just studied the
source).

Anyway, the IE-specific solution seems not to work in IE9 PP. As a
quick'n'dirty hack I just removed the according code and... voilà..
drag and drop is working again in IE9. After reinstalling PP v5 the
hack still works.

I propose that a check for the IE version would solve the problem in a
more sophisticated fashion.

Regards


Steffen

PS: Note, that I didn't check if the problem persists in the 1.7
release candidate.

On 27 Sep., 13:37, Steffen Christgau <tech...@havel-regatta-verein.de>
wrote:

Ben

unread,
Nov 2, 2010, 6:20:16 AM11/2/10
to Prototype & script.aculo.us
I can confirm that Prototype '1.7_rc3' fixes this problem. Nice
work. :)

Ben


On Sep 27, 4:58 pm, Steffen Christgau <tech...@havel-regatta-
verein.de> wrote:
> Hi folks,
>
> I was able to reinstall an older version ofIE9PP (1.9.7916.6000) but
> it also raises the drag'n'drop problem. I start started debugging and
> found the following (Prototype version 1.6.1, Scriptaculous v1.8.3):
>
> script.aculo.us will start dragging only if you pressed the left
> button (for sure ;-)). To check the the button it calls isLeftClick
> from Prototype which calls an internal method named _isButton
> (prototype.js, line 4290). This one checks whether the given button
> number matches the pressed button number. The function is specific for
> IE and WebKit-Browsers. In the IE-case it uses a LUT to verify that
> both button number match, since the IE seems to have a different
> button numbering (correct me if I'm wrong  - I just studied the
> source).
>
> Anyway, the IE-specific solution seems not to work inIE9PP. As a
> quick'n'dirty hack I just removed the according code and... voilà..
> drag and drop is working again inIE9. After reinstalling PP v5 the
Reply all
Reply to author
Forward
0 new messages