Hi, I''m totally lost here! I have added the prototype menu extension. I tried to get the coordinates of the pointer when mouse clicking but I have a few problems. The menu extension class requires a array containing links. My array looks like this, where callback function is the function to call when I''m clicking the link. var myLinks = [ {name: ''My Link'', callback: function(event) { alert(Event.pointerY(event)); }} ]; The code above returns a real value in Opera and Safari but in FireFox it''s always 0 (zero). I also have a function that always returns the position of the mouse. I works fine in FireFox (and the others) and it looks like this: Event.observe(document, ''mousemove'', function(event){ $(''mouse'').value = "X: " + Event.pointerX(event) + "px Y: " + Event.pointerY(event) + "px"; }); I wonder why the first example doesn''t work when it''s hardly any difference in the code! I guess that maybe the problem is in the prototype menu extension, but I donno. Do you guys know anything about this, give me a hint please! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---