Load Dynamic Loader in ClientSide
Hi I m trying to load my Dynamic Loader in ClientSide.. Please help me to load it in my page containing Panel.
Code:
var i = this.getSelectionModel().getSelection()[0].data.hrefTarget;
if (i == '') {
return false;
}
dynamicPanel = new Ext.Component({
loader: {
url: i,
renderer: 'html',
autoLoad: true,
scripts: true
}
});
Ext.getCmp('panel').add(dynamicPanel);
Variable i contains URL of the page to be redirected and loaded in the loader.
This results the page to load two times.. How can I Avoid Loading a page two times?? Quick help will be appreciated..