There's a browser issue here. IE supports window.event, while FF requires
event. jQuery works around this by accepting an "e" parameter to event
handlers, which will always return the event object.
begin: function(){
var selectors = $("[EMAIL PROTECTED]");
$.each(selectors, function(i) {
$(selectors[i]).bind("contextmenu", function(e) {
eip.mouse(e); // THIS IS WHERE I'M STUCK
});
return true;
});
},
mouse: function(evt){
alert(
"clientX value: " + evt.clientX + "\n" +
"clientY value: " + evt.clientY + "\n"
);
},
On 1/2/07, bmsterling <[EMAIL PROTECTED]> wrote:
I use "event" not "window.event" and works fine.
--
View this message in context:
http://www.nabble.com/find-mouse-cooridate--tf2908997.html#a8127498
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
Yehuda Katz
Web Developer | Wycats Designs
(ph) 718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/