Hi,

I m using current Prototype 1.7 RC.

The following code behaves differently in Firefox compared to the
other browsers (IE, Safari, Chrome).

In firefox handler is triggered for left AND right button mouse
clicks, whereas the other browers just trigger on left button clicks.

document.observe("dom:loaded", function() {
  document.on('click', 'a[data-remote]', function(event) {
    var bool = Event.isLeftClick(event);
    if ( bool ){
      alert("Left button is pressed...." );
    } else {
      alert("Left button is NOT pressed...." );
    }
    event.stop();
  });
});

Any idea, why?

Thanks a lot in advance.

--
Volker

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to