# Jquery, ajax, and Internet Explorer

**URL:** <https://www.ruby-forum.com/t/jquery-ajax-and-internet-explorer/161134>\
**Category:** Rails\
**Created:** [February 23, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/jquery-ajax-and-internet-explorer/161134 "2009-02-23T18:40:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [February 23, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/jquery-ajax-and-internet-explorer/161134/1 "2009-02-23T18:40:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [February 24, 2009, 2:01am UTC](https://www.ruby-forum.com/t/jquery-ajax-and-internet-explorer/161134/2 "2009-02-24T02:01:50Z")

</div>

John M. 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.

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [February 24, 2009, 2:41am UTC](https://www.ruby-forum.com/t/jquery-ajax-and-internet-explorer/161134/3 "2009-02-24T02:41:55Z")

</div>

What about using $.getScript(this.href, function(data) { … } );

Just a thought.

Groove

On Feb 23, 12:40 pm, John M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [February 24, 2009, 8:09am UTC](https://www.ruby-forum.com/t/jquery-ajax-and-internet-explorer/161134/4 "2009-02-24T08:09:19Z")

</div>

I fixed the problem by capitalizing the word “get”
