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.onclick = function(event){
> alert(Event.pointerX (event || window.event));
> }
> }
> };
>
>
> On 1/16/06, Alex Duffield
<alex-GLL9njBnHiGqPKKiFzS5XxZCeNDtXRbv@public.gmane.org> 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.onclick = function(){
> alert(Event.pointerX(e));
> }
> }
> };
>
>
> thanks
> ______________________________________________________________________
> Alex Duffield . Principal . InControl Solutions . http://
> www.incontrolsolutions.com
>
>
>
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs