Help! Ajax not getting an external page content?
<p>I want to extract the source code of a webpage which is hosted by other website, but the problem is that O get an empty response, I tried to pull the source of multiple websites but the problem is from my code:</p>

<pre><code>$(document).ready(function(){
    $.get('http://www.xxxx.com', function(xdata) {
        alert("content: "+xdata);
    });
});
</code></pre>

<p>Is there any mistake?</p>

<p>Note: when I try to get the source of a local page, it works, but I don't know why it doesn't for an external one</p>

<p>Thanks</p>
