PDA

View Full Version : Parent page executing ExtJS function on iFrame



jcorfield
2 Aug 2014, 9:17 AM
I relatively new to ExtJS so please excuse me if this is a newbie question. A project I am working on has an ExtJS application embedded into our main application (non-ExtJS) and I am looking for a way for the parent to call an ExtJS function on the child iFrame. I tried creating a singleton with an alias, then referencing the alias in my calling javascript but that didn't work.

The other alternative I think would be to use deep links, but I cannot refresh the iFrame as it would lose the work that was done. Also this is ExtJS 4.2.

Thanks in advance for any suggestions.

israelroldan
5 Aug 2014, 10:26 AM
Are your frames on the same domain? Otherwise this is not really possible (only using HTML5's message API).