Hello, I got the latest UJS for RoR installed and running and also downloaded the latest prototype.js file. Now just by including the UJS javascript tag (:unobtrusive) I get an error in IE browser saying "''Event'' is undefined". Anyone can help? Thanks! -- View this message in context: http://www.nabble.com/UJS-and-IE-tp17567572p17567572.html Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Applejus On Fri, May 30, 2008 at 1:42 PM, Applejus <ielkhoury-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I got the latest UJS for RoR installed and running and also downloaded the > latest prototype.js file. Now just by including the UJS javascript tag > (:unobtrusive) I get an error in IE browser saying "''Event'' is undefined". >I haven''t used UJS, but the error you''re getting is because prototype isn''t included. Just include :defaults <%= javascript_include_tag :defaults, ''unobtrusive'' %> Brandon -------------------------------------------------------------------------------- Sessions by Collective Idea: Ruby on Rails training in a vacation setting http://sessions.collectiveidea.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, The error still persists, even with defaults included... Brandon Keepers wrote:> > Applejus > > On Fri, May 30, 2008 at 1:42 PM, Applejus <ielkhoury-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> I got the latest UJS for RoR installed and running and also downloaded >> the >> latest prototype.js file. Now just by including the UJS javascript tag >> (:unobtrusive) I get an error in IE browser saying "''Event'' is >> undefined". >> > > I haven''t used UJS, but the error you''re getting is because prototype > isn''t > included. Just include :defaults > > <%= javascript_include_tag :defaults, ''unobtrusive'' %> > > Brandon > > -------------------------------------------------------------------------------- > Sessions by Collective Idea: Ruby on Rails training in a vacation setting > http://sessions.collectiveidea.com > > > > >-- View this message in context: http://www.nabble.com/UJS-and-IE-tp17567572p17593929.html Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---