title: JQuery ajax cross domain call and permission issue
body: <p>I have this polling script to check if a text file is created on the server. Works great locally, but fails when the file is on a different domain. How would i rewrite this for cross domain support?</p>
  
  <pre><code>$.ajax({ 
      url: 'http://blah.mydomain.com/test.txt', 
      type: "GET", 
      success: function(result) { 
          //Success!
          window.location.replace(Successful.aspx');
      }, 
      error: function(request, status, error) { 
          setTimeout("VerifyStatus(" + pollingInterval + ")");
      }
      });
  </code></pre>
  
  <p><strong>EDIT:
  I ended up using YQL to solve the cross domain issue and although it works, YQL is really slow that's adding quite a bit of performance overhead. Can anyone suggest a better solution for cross domain JQuery calls?</strong></p>