PDA

View Full Version : help refreshing content in window



jake2891
12 Feb 2010, 5:51 AM
Hi I have a php page that has a meta refresh tag which refreshes the page every second. It does not seem to work when i put this into an extjs window with autoLoad. It does work if i dont use autoLoad and rather use an iframe. Does anyone know how to make it work with autoLoad? I tried using autorefresh but that just refreshes the window and not the php page which i need refreshing. here is my code



popupURL = 'progress.php?UPLOAD_IDENTIFIER='+UPLOAD_IDENTIFIER.getValue();
var win = new Ext.Window(
{
id : 'statistics',
modal : true,
closable:false,
shadow : true,
width:400,
height:320,
autoLoad:{url:popupURL,
callback: function() {
//win.body.getUpdater().startAutoRefresh(
// 1,
// popupURL

//);
}
},
buttons: [{
text:'Kill Upload',
handler:function(){


location.reload(true);
}
}]
THIS WORKS //html: '<iframe src="' + popupURL + '" height="'+nHeight+'" width="'+nWidth+'" frameborder="0" hspace="0" vspace="0" scrolling="no" allowTransparency="true" style="background-color:#505F72"></iframe>'
}
);

win.show();

jake2891
13 Feb 2010, 10:35 PM
anyone else done something similar to what im trying to do ??

jake2891
15 Feb 2010, 3:37 AM
one last try for help??