Dear all, I am using prototype js in my rails application and making many ajax calls using that. everything works fine in IE and FF but new Ajax.request() is not working in chrome and safari. any solution will be greatfull. Thanks karthik -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 25 March 2010 04:58, Karthikragunath Bhavani <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Dear all, > > I am using prototype js in my rails application and making many ajax > calls using that. everything works fine in IE and FF but new > Ajax.request() is not working in chrome and safari. any solution will be > greatfull.I don''t know about Ajax.request but have often found that when something works in one browser and not another it is due to invalid html which is interpreted differently by the different browsers. Have you tried pasting the generated html into the w3c html validator to check? Or install html validator add-on to firefox which is great as it checks the html as you develop. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I see, thanks colin i will try as you said. Colin Law wrote:> On 25 March 2010 04:58, Karthikragunath Bhavani <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: > > I don''t know about Ajax.request but have often found that when > something works in one browser and not another it is due to invalid > html which is interpreted differently by the different browsers. Have > you tried pasting the generated html into the w3c html validator to > check? Or install html validator add-on to firefox which is great as > it checks the html as you develop. > > Colin-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Wed, Mar 24, 2010 at 9:58 PM, Karthikragunath Bhavani < lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Dear all, > > I am using prototype js in my rails application and making many ajax > calls using that. everything works fine in IE and FF but new > Ajax.request() is not working in chrome and safari. any solution will be > greatfull. > > Thanks > karthik >Karthik, have you checked the error console for both Chrome and Safari? If not, then I would highly recommend doing this when working with Ajax. Good luck, -Conrad> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Conrad, Thanks, as you seggested i used error console and found "this.transport.send(this.body);" is where the issue occurs though the input paramaters are right. this line was not able to send request to my server. im blank still. Conrad Taylor wrote:> > Karthik, have you checked the error console for both Chrome and Safari? > If > not, then I would > highly recommend doing this when working with Ajax. > > Good luck, > > -Conrad-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.