Hi,

I want to simulate setTimeout() function. it receives global function name. I must pass to setTimeout my method name of Ext object...

Example:

Code:
RefreshLayersComponent = Ext.extend(Ext.FormPanel, 
{
    id: 'RefreshLayersComponent',
    
    constructor: function(config) 
    {
        ...
        ...
    },
    
    afterRender: function()
    {
        RefreshLayersComponent.superclass.afterRender.apply(this, arguments);
        
        this.autoRefresh();
    },

    refresh: function()
    {
        ...
        ... 
    },
    
    autoRefresh: function()
    {
        this.refresh();
        setTimeout("this.autoRefresh()", 3000);
    }
});
setTimeout("this.autoRefresh()", 3000); run first time but then it generate error...

Error is: this.autoRefresh is not a function

Can you help me please?

Thanks in advance

Luca