Gregory Hill
2006-Jun-15 17:28 UTC
RE: Yahoo!-like Event object emulation/abstractionin Prototype?
Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); That might fix your wagon. Greg> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org[mailto:rails-spinoffs-> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Sam Rowe > Sent: Thursday, June 15, 2006 11:24 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > 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 > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Sam Rowe
2006-Jun-15 18:17 UTC
Re: Yahoo!-like Event object emulation/abstractionin Prototype?
On Thu, Jun 15, 2006 at 11:28:03AM -0600, Gregory Hill wrote: # Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); # # That might fix your wagon. That didn''t seem to make any difference. FF still works, IE still does not. I''m not branching for window.event in my callback/listener. I''m asking about a level of abstraction/emulation like is described in the section titled "It''s Tight because..." http://www.dustindiaz.com/yahoo-event-utility/ Any chance of getting that in Prototype? # # Greg # # > -----Original Message----- # > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org # [mailto:rails-spinoffs- # > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Sam Rowe # > Sent: Thursday, June 15, 2006 11:24 AM # > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org # > 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 # > 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
Ryan Gahl
2006-Jun-15 18:23 UTC
Re: Yahoo!-like Event object emulation/abstractionin Prototype?
Sorry for ya, bindAsEventListener works fine for me. On 6/15/06, Sam Rowe <scriptaculous-NA8LtxyqzOtZdbSWXsKqFg@public.gmane.org> wrote:> > On Thu, Jun 15, 2006 at 11:28:03AM -0600, Gregory Hill wrote: > # Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); > # > # That might fix your wagon. > > That didn''t seem to make any difference. FF still works, IE still > does not. I''m not branching for window.event in my callback/listener. > > I''m asking about a level of abstraction/emulation like is described > in the section titled "It''s Tight because..." > > http://www.dustindiaz.com/yahoo-event-utility/ > > Any chance of getting that in Prototype? > > # > # Greg > # > # > -----Original Message----- > # > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > # [mailto:rails-spinoffs- > # > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Sam Rowe > # > Sent: Thursday, June 15, 2006 11:24 AM > # > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > # > 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 > # > 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 >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Jeremy Kitchen
2006-Jun-15 18:57 UTC
Re: Yahoo!-like Event object emulation/abstractionin Prototype?
On Thursday 15 June 2006 11:23, Ryan Gahl wrote:> Sorry for ya, bindAsEventListener works fine for me.same here. If you''re having issues, perhaps you could show us some code that isn''t working so we can show you how to fix it :) -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org http://www.pirate-party.us/ -- defend your rights _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs