Set Timeout Value in ExtJS JsonStore#

Traditionally, you have this -

var myjsonstore = new Ext.data.JsonStore({
    fields: [ 'id', 'docno', 'sentence' ],
    root: "rows",
    url: 'some_local_url/',
    autoLoad: false
});

The parameter you would like to add is -

timeout: secs * 1000,

However, it doesn't work. What you need to do is

var myBigTimeout = 90 * 1000; // 90 sec
var myjsonstore = new Ext.data.JsonStore({
    fields: [ 'id', 'docno', 'sentence' ],
    root: "rows",
    proxy: new Ext.data.HttpProxy({ url: 'some_local_url/', timeout: myBigTimeout }),
    autoLoad: false
});


ExtJS