简体   繁体   中英

Inter frames communication

Usecase is, two frames loaded by two different projects. eg

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM