I have a code like this that works in all browsers and not IE. That is they send the expected GET request while IE is sending a POST request. I have tested this using IE7 $.ajax({ url: this.href, type: ''get'', dataType: ''script'', success: function(data){ while in the view I have the normal link_to link. How do I fix this issue? -- 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 -~----------~----~----~----~------~----~------~--~---
John Mark wrote:> I have a code like this that works in all browsers and not IE. That is > they send the expected GET request while IE is sending a POST request. I > have tested this using IE7 > > $.ajax({ > url: this.href, type: ''get'', dataType: ''script'', success: > function(data){ > > while in the view I have the normal link_to link. > > How do I fix this issue?You could start by getting Microsoft to write a decent web browser. Sorry, I don''t have an answer for you. I just wanted you to know I feel your pain. -- 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 -~----------~----~----~----~------~----~------~--~---
What about using $.getScript(this.href, function(data) { ... } ); Just a thought. Groove On Feb 23, 12:40 pm, John Mark <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I have a code like this that works in all browsers and not IE. That is > they send the expected GET request while IE is sending a POST request. I > have tested this using IE7 > > $.ajax({ > url: this.href, type: ''get'', dataType: ''script'', success: > function(data){ > > while in the view I have the normal link_to link. > > How do I fix this issue? > -- > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I fixed the problem by capitalizing the word "get" -- 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 -~----------~----~----~----~------~----~------~--~---