This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Sencha ajax call and store load canceled after 30 seconds

Blog August 20, 2021 Nam Le 0

The topic discussion is on stackoverflow too old but FYI who want to do the quicky trick.

The default of Ajax call in Sencha is 30000 milliseconds (30 seconds)
So, you have to set a config to the default behavior in the Ext.data.proxy.Ajax, for example, 60s, like:

Ext.define('Core.data.proxy.WrapperAjax',{
    extend: 'Ext.data.proxy.Ajax',
    alias: 'proxy.wrapperAjax',
    config: {
        timeout: 60000
    }
    ...
});

or overwrite in Ext.data.Store proxy like:

Ext.define('MyApp.store.MyStore', {
    extend: 'Ext.data.Store',
    proxy: {
        ...
        timeout: 60000, 
        ...
    },
});

Ref:

Nam Le, nready.net


Nam Le
lequocnam



0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *