Forum: Ruby on Rails jquery, ajax, and Internet Explorer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1764f72c0ee50a0d2ff9028920c19e65?d=identicon&s=25 John Mark (jmark)
on 2009-02-23 18:40
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?
280b78a61a968391b7e07e912be102a8?d=identicon&s=25 Robert Walker (robert4723)
on 2009-02-24 02:01
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.
58d6a4ff6f074c3f357ba291342e312e?d=identicon&s=25 groovetrain (Guest)
on 2009-02-24 02:41
(Received via mailing list)
What about using $.getScript(this.href, function(data) { ... } );

Just a thought.

Groove

On Feb 23, 12:40 pm, John Mark <rails-mailing-l...@andreas-s.net>
1764f72c0ee50a0d2ff9028920c19e65?d=identicon&s=25 John Mark (jmark)
on 2009-02-24 08:09
I fixed the problem by capitalizing the word "get"
This topic is locked and can not be replied to.