title: IE 7 "stop running this script" error using jQuery
body: <p>I can't seem to find what is causing this error in IE 7 works in Chrome.  When loading my page in internet explorer it pops up the error "stop running this script message".  Any ideas?</p>
  
  <pre><code> $(document).ready(function() {
      var icons = {
      header: "ui-icon-circle-plus",
      headerSelected: "ui-icon-circle-minus"
      };  
  
     $('.ui-accordion').accordion({
     active: false,
     collapsible: true,
     autoHeight: false,
     icons: icons
     });
  
     $("a").click(function (event) {
      event.stopPropagation();
     });
  
     $('.requirementCheckBox').click(function() {
       getReq();
     });
   });
  
  
  function getReq() {
  
    var componentList;
    var selected = $(":checkbox:checked");
  
    if(selected.length ==0){
      $('#requirements_table_wrapper').remove();
    }
  
    else {
      $.each(selected , function(i, n){
  
      if(i == 0){
        componentList = n.value;
      }
      else{
        componentList += ',' + n.value;
      }
   });
  
  
  $.getJSON("addRequirements/GetRequirements/?componentList=" + componentList, function    (data) {
  
    $('#requirements_table_wrapper').remove();
  
      var reqString = '&lt;table id="requirements_table"&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Requirement ID&lt;/th&gt;&lt;th&gt;Requirements&lt;/th&gt;&lt;th&gt;Reference&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;';
  
      for (var i = 0; i &lt; data.length; i++) {
        reqString += '&lt;tr&gt;&lt;td&gt;'+ data[i].reqID  + '&lt;/td&gt;&lt;td&gt;' + data[i].reqText + '&lt;/td&gt;' + '&lt;td&gt;' + data[i].reqReference + '&lt;/td&gt;&lt;/tr&gt;';
      }
  
      reqString += '&lt;/tbody&gt;&lt;/table&gt;';
  
      $("#requirementsDiv").append(reqString);
  
      $("#requirements_table").dataTable({
          "bJQueryUI": true,
          "bPaginate": false,
          "bRetrieve": true,
      "oLanguage": {"sSearch" : "Filter Requirements:"}
      });
  
    });
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I don't immediately spot any infinite loops but maybe I have been staring at it too long.</p>
  
  <p>**UPDATE
    The problems seems to be with the accordion, once it is removed IE loads the page normally.  </p>