View Full Version : UpdateManager autoRefresh without URL

3 Jun 2011, 6:53 AM
I've got a div that I want to display a timer while an operation is running. I have a function that calculates the elapsed time and updates the innerHTML for the div.

I'm using the UpdateManager.startAutoRefresh method to run the function and it works in Firefox, but it does not work in IE because it doesn't return a URL. I've tried having it return null or an empty string, but it still doesn't work. Is there a way to make it work or is there a better way to do what I want?

timerPane = Ext.get('timerDiv');

var timerMgr = timerPane.getUpdateManager();
timerMgr.disableCaching = true;
timerMgr.showLoadIndicator = false;
timerMgr.startAutoRefresh(1, function(){updateTimer();}, null, null, true);


3 Jun 2011, 6:18 PM
Isn't what you're trying to do almost exactly the same as in this example?


6 Jun 2011, 6:04 AM
Thank you!

That is exactly what I needed. I was sure there had to be a better way.