thebrandon
2008-Mar-25 23:01 UTC
Firefox 2 is not cancelling in Prototype.js Scriptaculous
I have a sortable ul via scriptaculous, which uses prototype.js 1.6.
The ul''s contain <a href to photos
In IE: if you click on a photo and drag, the drag happens and it
cancels the <a href
In Firefox: the drag happens, but the <a also happens.
It appears that IE is canceling correctly, and FF is not.
I set up an example...Yes there is a JS error on load that you just
bypass.
http://www.connexion.org/scriptaculous/dragdroptest.cfm
It seems to me that the issue lies in prototype.js -->
stop:function(event) --> Event.extend=(function() {
} else {
Event.prototype = Event.prototype ||
document.createEvent("HTMLEvents").__proto__;
Object.extend(Event.prototype, methods);
return Prototype.K;
}
It appears to me that for the ie case the methods are being set
correctly as far as cancelBubble/returnValue... FF apparenly needs
preventDefault
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---