The loading method has disappeared from Ext.panel.Panel in ExtJs4. As a workaround, you can try loading the contents of your panel using regular Ext.Ajax.request and installing them as elements in your panel.
Example:
var itemsConfig; Ext.Ajax.request({ url : 'url_containing_scripts.htm', callback : function(options, success, response) { itemsConfig = Ext.decode(response.text); } }); Ext.getCmp('specific_panel_id').add(itemsConfig);
Where url_containing_scripts.htm should have the necessary elements in your panel in JSON format.
In the same way, you can load the entire panel with all the necessary configuration settings.
source share