This is because of the cross-domain policy, which in a way means that using the client side of the script (aka javascript ...) you cannot request data from another domain. Fortunately for us, this limitation does not exist in most server-side scenarios.
So...
JavaScript:
$("#google-html").load("google-html.php");
PHP in "google-html.php":
echo file_get_contents("http://www.google.com/");
will work.
mattsven
source share