As shown at diagram, how can I execute sample function in the x application?
Asked
Active
Viewed 73 times
1 Answers
0
Homework? See invoking-javascript-code-in-an-iframe-from-the-parent-page.
In your case:
document.getElementById('test-iframe').contentWindow.sample(args);
-
not homework. yes window.parent work butI am getting browser error. "SecurityError: Blocked a frame with origin "http://10.0.0.97:8082" from accessing a cross-origin frame." – leprax May 28 '14 at 13:06
-
if you can, serve both from the same domain. see http://stackoverflow.com/questions/19837354/chrome-blocks-different-origin-requests – mb21 May 28 '14 at 13:21