That is what I am doing now for a workaround, but I quite like the Behaviour.js method and in some cases it would be good to be able to capture the X Y of the pointer.  

I guess I would have to write my own function to get XY... 



______________________________________________________________________

Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com 




On 16-Jan-06, at 10:45 AM, Nicolas wrote:

you should try to use Event.observe(elt, "click", func)
when func is a function that take "event" as first argument

if you don't want, should can try to do something like :
var myrules = {
'body' : function(){
el.>
alert(Event.pointerX (event || window.event));
}
}
};


On 1/16/06, Alex Duffield <[EMAIL PROTECTED]> wrote:
is there a way to take advantage of prototypes Event.pointerX when using Behaviour to manage my events?


somthing like.. 


var myrules = {
'body' : function(el){
el.>
alert(Event.pointerX(e));
}
}
};


thanks
______________________________________________________________________
Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com  




_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



_______________________________________________
Rails-spinoffs mailing list

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to