Possible Duplicate:
jQuery cross domain iframe scripting
I got an iframe that is calling an external url. At this point I'm working localhost.
<iframe id="iframeid" src="https://www.example.com/"></iframe>
All the content is showed correct.
Now I want to make some changes via jquery or javascript, and I noticed that I haven't access to the elements inside iframe. I mean if I do
$('#iframeid').load(function(){
var iframeBody = $("#iframeid").contents().find("body").length;
console.log('iframeBody -->'+iframeBody);
});
it returns always 0 (zero).
I know that because I'm working with differents domains I got browser restrictions. But I saw this post and tried using that plugin but I still got the undefined value.
Anyone can helpe me??
Thanks all