egerardus
egerardus

Reputation: 11486

Ext.Ajax.request does not work inside Ext.onReady?

I am trying to use Ext.Ajax.request in ExtJS 4.02a but it will not run at all inside of Ext.onReady, when I take it outside of Ext.onReady it runs fine. Is there some config I am missing?

My call is set-up as follows:

Ext.Ajax.request({
    url: '../json?queryName=tapAccounts&parameters=',
    success: function(response) {
        accounts = Ext.decode(response.responseText)
    }
});

Upvotes: 0

Views: 835

Answers (1)

Egy Mohammad Erdin
Egy Mohammad Erdin

Reputation: 3413

my i know how do you put your ajax inside onready???

Ext.onReady(function(){
     //put ajax here
});

take look at my sample here

Upvotes: 1

Related Questions