title: jQuery getJSON not working on Internet Explorer 11
body: <p>I have a site that uses jQuery within the Codeigniter framework. It works perfectly in both Firefox and Chrome. However in IE the getJSON does not work, jQuery load() works but not getJSON. Ive tried the $.ajaxSetup{{cache:false}} among others but no joy.</p>
  
  
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var url="../../index.php/cslcontrol/";
  
  $(document).ready(function(){
  
    //hide divs with the class '.views' except the one with id of 'home'
    $(".views:not('#home')").hide();
    //function that ensures only the div related to the selected menubar icon is dislayed
    $("li a[href]").click(function(){
      //storing the value of the clicked list a href
      var tabVal=$(this).attr('value');
      //showing a div whose div name is the same as the value of the selected list ahref
      $("#"+tabVal).show();
      //keeping the other divs hidden
      $(".views[id!="+tabVal+"]").hide();
    });
  
    $("#home_text").load("css/history.html #home_txt");
  
    $("#eighties_text").load("images/Eighties_seasons.html h1, p");
    
    $("#nineties_text").load("images/Nineties_seasons.html h1, p");
  
  //making a ajax call to fill the champions table
    $.getJSON(url+"titleWin", function(data){
     $.each(data, function(){
      $("#senior_champions").append("&lt;tr&gt;&lt;td&gt;"+ this["Season"] + "&lt;/td&gt;&lt;td&gt;"+ this["Winner"] + "&lt;/td&gt;&lt;td&gt;" + this["Runner up"] + "&lt;/td&gt;&lt;td&gt;"+ this["Play off"] + "&lt;/td&gt;&lt;/tr&gt;");
      });
    });
    //making a ajax call to fill the senior cup table
    $.getJSON(url+"senCup", function(data){
     $.each(data, function(){
      $("#senior_cup_finals").append("&lt;tr&gt;&lt;td&gt;"+ this["Season"] + "&lt;/td&gt;&lt;td&gt;"+ this["Winner"] + "&lt;/td&gt;&lt;td&gt;" + this["Score"] + "&lt;/td&gt;&lt;td&gt;"+ this["Runner-up"] + "&lt;/td&gt;&lt;/tr&gt;");
      });
    });
    $.getJSON(url+"getClub", function(data){
     $.each(data, function(){
      $("#club_info").append("&lt;a class=\"name\" role=\"button\" data-toggle=\"modal\" data-target=\"#modalCSL\"&gt;"+this["Club"]+"&lt;/a&gt;");
      });
     var crests = [];
     $.each(data, function(){
      if(this["Image"]!=""){
        crests.push("&lt;img src=\"images/"+this["Image"]+"\" alt=\""+this["Image"]+"\" title=\""+this["Club"]+"\"/&gt;");
      }
     });
     $("#pix1").html(crests.slice(0, 5));
     $("#pix2").html(crests.slice(5, 10));
     $("#pix3").html(crests.slice(10, 15));
    });
  });
  
  $(document).ajaxSuccess(function(event,xhr,settings){
    //if(settings.url=="history.txt"){
      // $("#home_text").append("&lt;div class=\"home-images\"&gt;do&lt;/div&gt;");
    //}
  
    if(settings.url==url+"senCup"){
      $("#senior_cup_finals td:eq(26), #senior_cup_finals td:eq(30)").append("&lt;a href=\"#calry_merv\"&gt;&lt;sup&gt; R&lt;/sup&gt;&lt;/a&gt;");
      $("#senior_cup_finals td:eq(34)").append("&lt;a href=\"#salt_calry\"&gt;&lt;sup&gt; R-p&lt;/sup&gt;&lt;/a&gt;");
    }
    if(settings.url==url+"titleWin"){
      $("#champions td:eq(11)").append("&lt;a href=\"#merv_salt\"&gt;&lt;sup&gt; R&lt;/sup&gt;&lt;/a&gt;");
      $("#champions td:eq(52)").append("&lt;a href=\"#straide\"&gt;&lt;sup&gt; Gr&lt;/sup&gt;&lt;/a&gt;");
      $("#champions td:eq(56)").append("&lt;a href=\"#prem\"&gt;&lt;sup&gt; Pr&lt;/sup&gt;&lt;/a&gt;");
    }
    if(settings.url==url+"getClub"){
        $(".name").click(function(){
          var aref= $(this).text();
          $(".modal-body").load("css/history.html h1:contains('"+aref+"'), h1:contains('"+aref+"')+p");
          $(".modal-footer").html("&lt;button id=\"butt\" name=\""+aref+"\" value=\""+aref+"\"&gt;"+aref+" honours&lt;/button&gt;&lt;div id=\"dead\"&gt;&lt;/div&gt;");
        });
        $("#club_info .name:last-of-type").css({"margin-right":"50%"});
    }
    
    if(settings.url=="css/history.html"){
       $("#butt").click(function(){
        var testing=$(this).attr('value');
        var testclean=encodeURIComponent(testing);
   
        $.getJSON(url+"getHonours?name="+testclean, function(data){
          var honours=[];
        
          $.each(data, function(){ 
              
            honours.push("&lt;table class=\"table\" id=\"honstab\"&gt;&lt;tr&gt;&lt;th&gt;"+data[0]["Source"]+"&lt;/th&gt;&lt;th&gt;"+data[1]["Source"]+"&lt;/th&gt;&lt;th&gt;"+data[2]["Source"]+"&lt;/th&gt;&lt;th&gt;"+data[3]["Source"]+"&lt;/th&gt;&lt;th&gt;"+data[4]["Source"]+"&lt;/th&gt;&lt;th&gt;"+data[5]["Source"]+"&lt;/th&gt;&lt;th&gt;"+data[6]["Source"]+"&lt;/th&gt;&lt;th&gt;"+data[7]["Source"]+"&lt;/th&gt;&lt;th&gt;"+data[8]["Source"]+"&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;"+data[0]["COUNT(*)"]+"&lt;/td&gt;&lt;td&gt;"+data[1]["COUNT(*)"]+"&lt;/td&gt;&lt;td&gt;"+data[2]["COUNT(*)"]+"&lt;/td&gt;&lt;td&gt;"+data[3]["COUNT(*)"]+"&lt;/td&gt;&lt;td&gt;"+data[4]["COUNT(*)"]+"&lt;/td&gt;&lt;td&gt;"+data[5]["COUNT(*)"]+"&lt;/td&gt;&lt;td&gt;"+data[6]["COUNT(*)"]+"&lt;/td&gt;&lt;td&gt;"+data[7]["COUNT(*)"]+"&lt;/td&gt;&lt;td&gt;"+data[8]["COUNT(*)"]+"&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;");
          
            $("#dead").html(honours.slice(0,1));
            $("#honstab td").each(function(){
              if ($(this).html()=="0"){
                trial=$(this).index();
                $("#honstab th:eq("+trial+"), #honstab td:eq("+trial+")").remove();
                if($("#honstab tr").html()==0){
                  $("#honstab").html("&lt;tr&gt;&lt;th&gt;No Honours&lt;/th&gt;&lt;/tr&gt;&lt;/table&gt;");
                }
              }
            });
          });
        });
       });
    }
  
  });
  
  &lt;!--Heres the view file--&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
          &lt;link rel="shortcut icon" href="../../docs-assets/ico/favicon.png"&gt;
          &lt;link href='http://fonts.googleapis.com/css?family=Anton' rel='stylesheet' type='text/css'&gt;
          &lt;title&gt;Connacht Senior League&lt;/title&gt;
  
          &lt;!-- Bootstrap core CSS --&gt;
          &lt;link href="css/bootstrap.min.css" rel="stylesheet" type='text/css'&gt;
          &lt;link href="css/main-style.css" rel="stylesheet" type='text/css'&gt;
        
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="container"&gt;
            &lt;div class="row"&gt;
                &lt;div class="col-md-12"&gt;
                    &lt;div class="heading"&gt;
                      &lt;h1&gt;Connacht Senior League&lt;/h1&gt;
                      
                    &lt;/div&gt;
                  
                    &lt;nav class="navbar navbar-default" id="csl-navbar" role="navigation"&gt;
                        &lt;div class="navbar-header"&gt;
                          &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"&gt;
                              &lt;!--creates the toggle button that displays the menu in small screen formats--&gt;
                            &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                              &lt;span class="icon-bar"&gt;&lt;/span&gt;
                              &lt;span class="icon-bar"&gt;&lt;/span&gt;
                              &lt;span class="icon-bar"&gt;&lt;/span&gt; 
                          &lt;/button&gt;
                              &lt;a class="navbar-brand" href="#"&gt;&lt;/a&gt;
                        &lt;/div&gt;
                        &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
                           &lt;ul class="nav navbar-nav" id="accordion" role="tablist" aria-multiselectable="false"&gt;
                              &lt;li&gt;&lt;a href="#home" value="home"&gt;Home&lt;/a&gt;&lt;/li&gt;
                              &lt;li class="dropdown"&gt;
                                &lt;a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"&gt;History&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
            &lt;ul class="dropdown-menu" role="menu"&gt;
              &lt;li&gt;&lt;a href="#eighties" value="eighties"&gt;Eighties Seasons&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#nineties" value="nineties"&gt;Nineties Seasons&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
                              &lt;li&gt;&lt;a href="#clubs" value="clubs"&gt;Clubs&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="#champions" value="champions"&gt;Champions&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="#senior_cup" value="senior_cup"&gt;Senior-Cup&lt;/a&gt;&lt;/li&gt;
                           &lt;/ul&gt;
      &lt;!-- for the search and go form on the right of navbar--&gt;
                              &lt;form class="navbar-form navbar-right" role="search"&gt;
                                &lt;div class="form-group"&gt;
                                  &lt;input type="text" class="form-control" placeholder="Search"&gt;
                                &lt;/div&gt;
                                &lt;button type="submit" class="btn btn-default"&gt;Go&lt;/button&gt;
                              &lt;/form&gt;
                       &lt;/div&gt;
                    &lt;/nav&gt;
             
                    &lt;div id="home" class="views"&gt;
                      &lt;div class="row"&gt;
                       &lt;div class="col-xs-12" id="home_text"&gt;
                       &lt;/div&gt;
                       &lt;div class="col-xs-12" id="home_image"&gt;
                        &lt;img src="images/home_page.png"/&gt;
                       &lt;/div&gt;
                       &lt;div class="col-xs-12" id="ina_logo"&gt;
                        &lt;img src="images/ina.PNG" width="30%"/&gt;
                       &lt;/div&gt;
                       &lt;/div&gt;   
                    &lt;/div&gt;
                    
                    &lt;div id="eighties" class="views"&gt;
                       &lt;div class="row"&gt;
                       &lt;div class="col-xs-12" id="eighties_text"&gt;
                       &lt;/div&gt;
                       &lt;/div&gt;   
                    &lt;/div&gt;
                    &lt;div id="nineties" class="views"&gt;
                       &lt;div class="row"&gt;
                       &lt;div class="col-xs-12" id="nineties_text"&gt;
                       &lt;/div&gt;
                       &lt;/div&gt;   
                    &lt;/div&gt;
  
                    &lt;div id="clubs" class="views"&gt;
                       &lt;div class="row"&gt;
                       &lt;div class="col-xs-12"&gt;
                        &lt;div id="club_info"&gt;
  
                        &lt;div class="modal fade bs-example-modal-lg" id="modalCSL" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"&gt;
                          &lt;div class="modal-dialog modal-lg"&gt;
                            &lt;div class="modal-content"&gt;
                              &lt;div class="modal-body"&gt;
                              ...
  
                            &lt;/div&gt;
                           &lt;div class="modal-footer"&gt;
  
                            &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;/div&gt;
  
                    &lt;div id="champions" class="views"&gt;
                      &lt;div class="row"&gt;
                        &lt;div class="col-xs-12"&gt;
                          &lt;h1&gt;Champions&lt;/h1&gt;
                          &lt;p&gt;The following table lists the League Champions and sides who finished Second. Goal differnece did not count so occassionally Play-offs were needed. An exception is the case of the 94-95 season where the League was split into two groups so a Play-off was mandatory. In 96-97 the season had Two divisions, the table only shows details of the Premier Division with First Division details in the footnotes&lt;/p&gt;   
                        &lt;table class="table table-striped" id="senior_champions"&gt;
                          &lt;tr&gt;
                           &lt;th&gt;Season&lt;/th&gt;
                           &lt;th&gt;Winner&lt;/th&gt;
                           &lt;th&gt;Runner-up&lt;/th&gt;
                           &lt;th&gt;Play off&lt;/th&gt;
                         &lt;/tr&gt;
                        &lt;/table&gt;
                        &lt;div class="notes"&gt;&lt;p&gt;&lt;a name="merv_salt" id="merv_salt"&gt;&lt;/a&gt;R: 2nd Replay after two 2-2 draws&lt;/p&gt;
                          &lt;p&gt;&lt;a name="straide" id="straide"&gt;&lt;/a&gt;Gr: League split into 2 groups with group winners meeting in a play-off final. Top 3 teams in each group would go into a Premiership and the rest into a first division&lt;/p&gt;
                          &lt;p&gt;&lt;a name="prem" id="prem"&gt;&lt;/a&gt;Pr: This season had a Premiership and a First Division. Ballinasloe Town were First Division Champs.&lt;/p&gt;
                       &lt;/div&gt;
                     &lt;/div&gt;
                     &lt;/div&gt;
                    &lt;/div&gt;
                    
                    &lt;div id="senior_cup" class="views"&gt;
                      &lt;div class="row"&gt;
                        &lt;div class="col-xs-12"&gt;
                           &lt;h1&gt;Senior Cup&lt;/h1&gt;
                          &lt;p&gt;The following table lists details of the Senior Cup Finals. This was the main knockout competition involving the Connacht Senior clubs. However champions from the four junior leagues were also included and they are highlighted with a (J)&lt;/p&gt;
                      &lt;table class="table table-striped" id="senior_cup_finals"&gt;
                        &lt;tr&gt;
                         &lt;th&gt;Season&lt;/th&gt;
                         &lt;th&gt;Winner&lt;/th&gt;
                         &lt;th&gt;Score&lt;/th&gt;
                         &lt;th&gt;Runner-up&lt;/th&gt;
                       &lt;/tr&gt;
                      &lt;/table&gt;
                      &lt;div class="notes"&gt;&lt;p&gt;&lt;a name="calry_merv" id="calry_merv"&gt;&lt;/a&gt;R: Replay after 1-1 draw&lt;/p&gt;
                                            &lt;p&gt;&lt;a name="salt_calry" id="salt_calry"&gt;&lt;/a&gt;R-p: Replay won on penalties after 1-1 draw&lt;/p&gt;
                                          &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                 &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
         &lt;div id="carousel-example-generic" class="carousel slide" data-ride="carousel" pause="onload"&gt;
           &lt;!--  Wrapper for slides--&gt; 
            &lt;div class="carousel-inner" role="listbox"&gt;
              &lt;div class="item active" id="pix1"&gt;
          
              &lt;/div&gt;
              &lt;div class="item" id="pix2"&gt;
  
              &lt;/div&gt;
              &lt;div class="item" id="pix3"&gt;
  
              &lt;/div&gt;
              
            &lt;/div&gt;
  
          &lt;/div&gt;
  &lt;/div&gt;
  
         
  &lt;!--[if lt IE 9]&gt;
      &lt;script src="http://code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  &lt;!--[if gte IE 9]&gt;&lt;!--&gt;
      &lt;script src="http://code.jquery.com/jquery-2.0.3.js"&gt;&lt;/script&gt;
  &lt;!--&lt;![endif]--&gt;
          &lt;script src="js/bootstrap.js"&gt;&lt;/script&gt;
  &lt;script src="js/csl.js" type="text/javascript"&gt;
   &lt;/script&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>