View Full Version : How to access a method from another panel

29 Jan 2008, 3:42 PM
I am new to Ext can you please tell me if I add various panels to the viewport then how do I access one panel from the other panel. eg. if I have panel1.html in west panel then from this panel how do i access a method which is defined in a html page which is loaded inside the center panel.
Are these panels internal frames?

29 Jan 2008, 4:22 PM
Assuming you're loading panels using Ajax, any functions included in those panels will be executed in the global scope. In other words, you should just be able to call the functions by name, however you might want to check the functions exists first before you call it:

if (window.function1)

29 Jan 2008, 4:27 PM
also, panels by default are just divs with fancy decorations.