Execute javascript function in a another iframe when parent is from different domain?

Instead of parent.window. Frames'iframe1'. SomeFunction(args); use parent.

Frames'iframe1'. SomeFunction(args); You are allowed to traverse the frames collection of any window that you can reference, but in this case you are trying to traverse the recursive window property of parent (which IS the window). This is not allowed.

No, the browser doesn't allow interacts between iframes that are not on the same domain at all.

Just to make it clear. Although the 2 iframes are from the same domain there is no direct way for them to interact because the parent is from different domain? – Frushko Jun 13 '10 at 18:20 No, because the iframes can only "talk to" each other through the parent frame, and the frames can't access the parent frame from a different domain.

– Aaron Harun Jun 13 '10 at 18:24 1 Actually, this is incorrect. He only needs to change parent.window. Frames into parent.

Frames – Sean Kinsey Jun 14 '10 at 8:54 Sean, it works! – Frushko Jun 14 '10 at 11:19 Of course it works ;) – Sean Kinsey Jun 14 '10 at 11:26.

As Aaron have already told you, browsers don't allow this, but there are ways around it. You'll need to create a small hack. Eugene Gladyshev has a post on it on his blog.

As Aaron states, it is not allowed to interact between iframes, but you should take a look at easyXDM, it helps with cross domain communication in javascript: easyxdm.net/wp/ Here is the example you might be looking for: easyxdm.net/wp/2010/03/17/sending-and-receiving-messages.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions