Inter frames communication

Usecase is, two frames loaded by two different projects. e.g.

farme 1 is loaded by test.dev.com frame 2 is laoded by load.dev.com

and this page resides in test.dev.com. Frame 2 has a save button. Frame 1 should know when close button was clicked. Or can Frame 2 provide a call back function to frame 1.

thanks in advance.

Answers


Frames are separate DOM's and can not interract, technically, with other frames. The only way to make it appear that they are is using some kind of ajax or "frame manager" loaded at the top level that all frames have access to, and pass the HTML elements that are needed back and forth. Better to let frames be standalone and not dependent on each other.


Need Your Help

Reuse a Fiber in Ruby

ruby nonblocking eventmachine fiber

I use EventMachine.open_keyboard in my irc client app that uses rbcurse (ncurses gem), as follows: