PDA

View Full Version : TaskMgr fails to reload store in IE



satishp
1 Dec 2009, 3:20 AM
Hi
I am using TaskMgr to get fileupload status from backend. I call getUploadStatus.php file after every five seconds. I use following code to do this. This code works perfectly in Mozilla FF but in IE it calls function checkUploadStatus every five seconds but all store reload calls are executed after file upload completes.





uploadStore =new Ext.data.GroupingStore({
reader: uploadedFileReader,
autoLoad: true,
url: "getUploadStatus.php",
listeners: {
load: function(){
}
}
}

//Task manager

Ext.TaskMgr.start({
run: checkUploadStatus,
scope: uploadStore,
interval: 5000
});

function checkUploadStatus{

if

(uploadStore.getCount() > 0){

Ext.getCmp('files').uploadStore.reload();
}
}


Thanks in advance..........
SatishP
:-?:-?:-?

Condor
4 Dec 2009, 2:37 AM
Do you have some kind of limit set on the number of simultaneous request to a single domain?

satishp
4 Dec 2009, 4:35 AM
No, I did not set any limit.
It works fine in Mozilla FF. I am confused why in IE all backend calls executed after file upload complete.

Thanks,
SatishP.

Condor
4 Dec 2009, 5:43 AM
Your code is correct. It must be a problem with IE (I never used this kind of construct, so I can't confirm).