Skip to content

Ajax breaks on IE8 if "Enable native XMLHTTP support" checkbox is uncheked #295

IngusSkaistkalns opened this Issue Dec 8, 2012 · 0 comments

2 participants


In Internet Explorer 8 you can uncheck "Enable native XMLHTTP support" under Tools > Internet Options > Advanced. More info about this "special" feature ->

This breaks down something UJS ajax, but jQuery.ajax still works as usual (so this is why i made assumption that problem is under UJS scope).

Code for scenario:


<%= link_to "With UJS", ujs_test_path, class: "ujs", data: { remote: true, type: "text"} %>
<%= link_to "Without UJS", ujs_test_path, class: "simple" %>


def ujs_test
  respond_to do |format|
    format.text { render text: "Ajax works as expected!"}


  $("a.ujs").live("ajax:success", function(e, data){

  $("a.simple").live("click", function(e){
      url: $(this).attr("href"),
      type: "GET",
      dataType: "text",
      success: function(data){

I didn't test this on IE7, but I have strong feeling there is the same issue, because i tested it on IE9 in three modes - IE7 mode (problem is present), IE8 mode (problem is present), IE9 mode (problem is not present).

I also tried to get some more information, so added this:

  $("a.ujs").live("ajax:error", function(jqXHR, status, errorThrown){
    window.myXHR = jqXHR;
    window.status = status;
    window.errorThrown = errorThrown;

On IE9 developer tools you can actually add objects to watch and you can inspect them, so under window.status property statusText value is "TypeError: Object doesn\'t support this property or method"

Thats where my investigation ends.

@ebeigarts ebeigarts referenced this issue in jquery/jquery Jan 3, 2013

Fix for #11645 #751

@jarodtaylor jarodtaylor referenced this issue in rails/jquery-rails Jan 14, 2013

UJS Update ETA? #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.