if ( $(".embed-ta").length ) {
alert("element exists");
}
function playta() {
$('iframe .embed-ta')[0].contentWindow.playerInstance.play(true);
}
The top one is on document.ready, and it does the alert, the second is just a function. I try to call the function from the console – playta() – and it says ReferenceError: playta is not defined. How is this possible?
You should be able to set document.domain on each page to the same domain.
For example, with the subdomain page, set its domain to be the same as the other page that you’re wanting to access.