Okay, I have a big problem today. I've just created a site with an iframe with src="somedomain.com/somepage.html", but I don't know the way to access the jQuery, which the somepage.html includes. I know of CORS, but I can also run functions in iframe with parent page. So is there any way to run jQuery object functions inside the iframe from parent page?
Note: I can't chnage content of somepage.html.
I tried the following:
mainIframe.contentWindow.$
but the console gave an error:
Error: Permission denied to access property "$"
It is really possible? If yes, how can I do that?
Thanks in advance.