title: jQuery AJAX problem in IE7 (possibly other versions as well)
body: <p>Can anyone enlighten me as to why the following code won't work in IE7 but it works just fine in Chrome/Firefox?</p>
  
  <pre><code>$(document).ready(function(){
    $.ajax({
      type: "POST",
      dataType: "text",
      cache: false,
      url: "/ajax/ajax.asp",
      data: "cmd=check_forfeits",
      success: function(msg) {
        return false;
      }
    });
  });
  </code></pre>
  
  <p>The javascript error IE throws out is 'Permission Denied'</p>
  
  <p>If I remove that bit of code from the JS file for the page in question the page works just fine, no errors, so the error lies in that bit of code I believe.</p>
  
  <p><strong>:::UPDATE:::</strong></p>
  
  <p>Something else that is a little strange is that when I refresh the page (in IE7) I get no javascript errors and this code seems to work correctly. So it's as if the first time the page loads this code snippet errors but after that it runs just fine.</p>
  
  <p><strong>:::UPDATE:::</strong></p>
  
  <p>Here are the fiddler posts for this page from IE7:</p>
  
  <pre><code>#   Result   Protocol   Host                 URL
  1   200      HTTP       192.168.47.13:8000   /
  2   304      HTTP       192.168.47.13:8000   /js/jquery-1.4.1.js
  3   200      HTTP       192.168.47.13:8000   /js/index.js
  4   304      HTTP       192.168.47.13:8000   /js/jquery-1.4.1.js
  5   200      HTTP       192.168.47.13:8000   /js/index.js
  6   304      HTTP       192.168.47.13:8000   /css/main.css
  7   304      HTTP       192.168.47.13:8000   /css/grid.css
  8   304      HTTP       192.168.47.13:8000   /images/banner.jpg
  </code></pre>
  
  <p>Here are the fiddler posts for this page from Firefox:</p>
  
  <pre><code>#   Result   Protocol   Host                 URL
  1   200      HTTP       192.168.47.13:8000   /
  2   304      HTTP       192.168.47.13:8000   /js/jquery-1.4.1.js
  3   304      HTTP       192.168.47.13:8000   /js/index.js
  4   304      HTTP       192.168.47.13:8000   /css/grid.css
  5   304      HTTP       192.168.47.13:8000   /css/main.css
  6   304      HTTP       192.168.47.13:8000   /images/banner.jpg
  7   200      HTTP       192.168.47.13:8000   /ajax/ajax.asp
  </code></pre>