View Full Version : Active Polling task.delay() does not work as in 1.x

3 Apr 2012, 2:18 PM
Hey there,

I have a simple question. I want to pull a service every X ms, since every X ms a value could change.

Therefore I used the DelayedTask recursively:

var task = Ext.create('Ext.util.DelayedTask', function() {


This does not work any more with Sencha 2.0. The alert does only alert once :X.

Any ideas how I can call an Ajax Request every X ms?

4 Apr 2012, 3:51 AM
Just a wild guess, but shouldn't you do the alert before delaying the new task? It seems like it's not doing this in an asynchronous way....

Or you might want to test with Ext.defer()