Have to update the code a bit to work with Jquery 1.7
function handleData(iframe, type) {
if (type == “json”) {
return $(iframe).contents().find(‘body’).html();
} else {
var data, contents = $(iframe).contents().get(0);
if ($.isXMLDoc(contents) || contents.XMLDocument) {
return contents.XMLDocument || contents;
}
data = $(contents).find(‘body’).html();
if (type == ‘xml’) return parseXml(data);
else return data;
}
}