JQuery Cross-domain Screen Scraping
An example using James Padolsey's JQuery cross-domain ajax lib. Extracts meta tags, links, and larger images from remote URL
JavaScript
function first() {
return $.when('First');
}
function second(data) {
message(data);
return $.when(data + ' Second');
}
function third(data) {
message(data);
return $.when(data + ' Third');
}
function message(html) {
$('<div/>').html(html).appendTo($('body'));
}
(function() {
first().then(second).then(third).then(message);
}());