PDA

View Full Version : HOW TO RELOAD A PAGE IN I -FREAME



sachin sachdeva
29 Dec 2010, 12:46 AM
hello
i am using a iframe inside this i frame i am calling a jsp. i have a grid in this jsp .in this grid we have a button reload the grid now my code reloads the grid in whole window but i want to reload in that paricular i frame..code for reload is shown in dotted lines



{
text : 'OK',
id : 'message_box',
cls : 'x-icon-btn',
iconCls : 'x-icon-btn-ok',
handler : function() {
grid.getStore().reload();
self.parent.location.reload(true);***********************************
Ext.getCmp("undochkoutwin").close();
}
}]

pmatsumura
29 Dec 2010, 1:13 AM
Instead of

self.parent.location.reload(true);
use

self.location.reload(true);

Condor
29 Dec 2010, 4:28 AM
'self' is deprecated. Use 'window' instead.