Hi. Using a rjs-file my browser shows the javascript-code instead of executing. Why? Is there a wrong mime-type configuration? Where to fix it? Thanks Jens -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Apr-03 19:57 UTC
Re: rjs-file: javascript shown instead of executed - mime-type?
On 3 Apr 2008, at 20:03, Jh Hp wrote:> > Hi. > Using a rjs-file my browser shows the javascript-code instead of > executing. > Why?Did you pass :update to link_to_remote/form_remote_for/etc... ? Fred> > Is there a wrong mime-type configuration? > Where to fix it? > Thanks > Jens > -- > Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
Julian Leviston
2008-Apr-03 22:30 UTC
Re: rjs-file: javascript shown instead of executed - mime-type?
Using rjs, he shouldn''t have to. I think this happens if one uses the non-ajax counterparts to call the URL (ie link_to rather thank link_to_remote, etc.) Julian. Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) VIDEO #3 OUT APRIL 6 http://sensei.zenunit.com/ On 04/04/2008, at 6:57 AM, Frederick Cheung wrote:> > > On 3 Apr 2008, at 20:03, Jh Hp wrote: > >> >> Hi. >> Using a rjs-file my browser shows the javascript-code instead of >> executing. >> Why? > > Did you pass :update to link_to_remote/form_remote_for/etc... ? > > Fred >> >> Is there a wrong mime-type configuration? >> Where to fix it? >> Thanks >> Jens >> -- >> Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
AndyV
2008-Apr-04 18:48 UTC
Re: rjs-file: javascript shown instead of executed - mime-type?
Fred''s point is that Jens should NOT use the :update option. If it''s there... that''s the source of the error. On Apr 3, 6:30 pm, Julian Leviston <jul...-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org> wrote:> Using rjs, he shouldn''t have to. > > I think this happens if one uses the non-ajax counterparts to call the > URL (ie link_to rather thank link_to_remote, etc.) > > Julian. > > Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) VIDEO #3 > OUT APRIL 6http://sensei.zenunit.com/ > > On 04/04/2008, at 6:57 AM, Frederick Cheung wrote: > > > > > On 3 Apr 2008, at 20:03, Jh Hp wrote: > > >> Hi. > >> Using a rjs-file my browser shows the javascript-code instead of > >> executing. > >> Why? > > > Did you pass :update to link_to_remote/form_remote_for/etc... ? > > > Fred > > >> Is there a wrong mime-type configuration? > >> Where to fix it? > >> Thanks > >> Jens > >> -- > >> Posted viahttp://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---