View Full Version : Extjs 4 migration problem

5 Feb 2012, 5:32 AM
Hi ,
I'm migrating Extjs 2 to Extjs 4. To load mypage.html to some html id in the page. i'm using following code. In extjs 2 and 3 it works fine.But in Extjs 4 this url is executing with some GET values like mypage.html?_dc=1328433965894. So how to restrict the unnecessary passing parameters(_dc) in the urls.. Please help me..

var content_div = Ext.get(div_id);
url:'mypage.html',params:{val1:'default'},scripts:true,text: 'Loading...'});

Thanks in advance

5 Feb 2012, 9:50 AM
In the load config object, try setting disableCaching to false.

5 Feb 2012, 9:55 PM
Thanks mitchellsimoes for quick reply.
For load config object Get parameters issues solved. But when i'm trying to load Grid store and Combobox store the url also add Get parameters. I'm defining grid store as follows

var resource_store = Ext.create('Ext.data.Store', {
pageSize: 10,
autoLoad: true,
fields: ['id','r_number','c_number','resource_name','resource_desc','resource_url','resource_file'],
proxy: {
type: 'ajax',
url: 'my_url.html',
actionMethods: {
read: 'POST'
disableCaching: false,
reader: {
type: 'json',
root: 'results',
totalProperty: 'total'
storeId: 'id'