title: Ajax fail in all versions of IE
body: <p>I have this Ajax post request.  Works great in Crome.  Just opened it in IE and it fails completely.  It is a div with images loaded into a carousel.  The carousel used is <a href="http://caroufredsel.dev7studios.com/" rel="nofollow">http://caroufredsel.dev7studios.com/</a> (Which I would highly recommend for its easy implementation if anyone is after an image carousel)  </p>
  
  <p>When you click a folder</p>
  
  <pre><code>     &lt;a href="javascript:void(0);" onclick="getImages(1)"&gt;Folder 1&lt;/a&gt;
  </code></pre>
  
  <p>basically queries a php file and refreshes the div with a new set of images</p>
  
  <pre><code>  $.ajaxSetup ({  
      cache: false,
      async: false  
  });  
   function getImages(id)
   {
   $.ajax({
  
  
   type: "POST",
   url: 'getImage.php',
   dataType: "json",
   data: "id=" + id, 
   success: function(data) {
  
        $('#scrolimg').html(data);
        $("#car1").carouFredSel({
  auto : false,
  items   : 4,
  scroll  : 4,
  circular : false,
  infinite : false,
  prev : "#foo1_prev",
  next : "#foo1_next",
  swipe       : {
      onTouch     : true,
      onMouse     : false
  }
   });
  
   }
  
   });
  </code></pre>
  
  <p>When I have been reading similar problems on Stack most people say turn cache to false and async but that has not helped.  Another solution was to make POST requests instead of GET but thats does not work for me either.</p>
  
  <p><strong>The code above works perfectly.</strong>   The problem is in the getImage.php file.  I have a loop thats running to find the image width and height with php function call getimagesize()</p>
  
  <p>That function is not running in IE but working perfectly in all other browsers.  Is my Ajax blocking this function from running? </p>
  
  <pre><code>   &lt;?php do {
    $image = $_SERVER['DOCUMENT_ROOT']."/images/uploads/".$row_rs_image['thumbfile'];
     list($width, $height)= getimagesize($image); 
   ?&gt;
       &lt;img  src="/images/uploads/&lt;?php echo $row_rs_image['thumbfile']; ?&gt;"  width="&lt;?php echo $width;?&gt;" height="&lt;?php echo $height;?&gt;" /&gt;
      &lt;?php } while ($row_rs_image = mysql_fetch_assoc($rs_image)); ?&gt;
  </code></pre>
  
  <p>When I output the source I see the following</p>
  
  <pre><code>       &lt;img name="creed" src="/images/uploads/320623-1358872780_thumb.png"  width="" height="" /&gt;
  </code></pre>