on my page I have an iframe which is loading an html form from a different domain. Now I need to manipulate this form via jquery but as because the domains are different, it seems jquery can’t access the contents of the iframe (eror: Permission denied for <http://localhost> to get property HTMLDocument.nodeType). Any ideas?
on my page I have an iframe which is loading an html form from
Share
You can’t do this for security reasons, with modern browsers maybe you can use postMessage for this purpose.
More info:
http://softwareas.com/cross-domain-communication-with-iframes
http://benalman.com/code/test/js-jquery-postmessage/
https://developer.mozilla.org/en/DOM/window.postMessage