Event.observe(myelement, 'click', myfunc.bindAsEventListener());

That might fix your wagon.

Greg

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Sam Rowe
> Sent: Thursday, June 15, 2006 11:24 AM
> To: [email protected]
> Subject: Re: [Rails-spinoffs] Yahoo!-like Event object
> emulation/abstractionin Prototype?
> 
> On Thu, Jun 15, 2006 at 08:44:13AM -0500, Ryan Gahl wrote:
> #    Um... Event.observe() -- it's been there all along and does that
> #    abstraction.
> 
> Weird, I wonder why none of my event handlers work in IE. I'll look
> closer.
> Thanks for the info.
> 
> Just cause I'm dense... I'm talking about this:
> 
> Event.observe(myelement,'click',myfunc);
> 
> function myfunc(e){
>     // deal with e like I would in FF
> }
> 
> Are we talking about the same thing?
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to