I have a iframe and want to either get some of the HTML from the page in the iframe or the opportunity to change the HTML on the page in the iframe with jQuery.
I use this code to get content from the iframe:
$('iframe#iframeBB').contents().find('table').each(function() {
var at = $(this).attr('summary');
if (at == "Latest Data") {
$('table#main').html($(this).html());
}
});
This works fine as long as the source for the iframe is at the same domain. My problem is that the source is on another subdomain. I know this is against the Same-Origin Policy, but is there a way to do this?