!!! Set Timeout Value in ExtJS JsonStore

Traditionally, you have this -

%%prettify 
{{{
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 -

%%prettify 
{{{
timeout: secs * 1000,
}}}
/%


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

%%prettify 
{{{
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 | CategoryComputing.Web.JS.ExtJS]