Cross-domain limitations are only a problem if you are looking to pull in information from an external source (e.g. www.example.com trying to AJAX content from www.other.com). Even still, you should be able to get around that by writing a local PHP script which screen scrapes the data from the external source (and AJAX that script):
Very simple solution
Code:
<?php
# the URL to be scraped
$url = 'http://www.example.com/scrape.html';
# get the HTML
$source = file_get_contents($url);
?>
Using cURL - can do some fancy stuff with this if needed
Code:
<?php
# the URL to be scraped
$url = 'http://www.example.com/scrape.html';
# initialise curl variable
$ch = curl_init();
# define parameters
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
# get HTML
$source = curl_exec($ch);
# free resources
curl_close($ch);
}
?>
Social Networking Bookmarks