1. #1
    Sencha User siva565's Avatar
    Join Date
    Nov 2010
    Location
    India,Hyderabad
    Posts
    47
    Vote Rating
    0
    Answers
    1
    siva565 is on a distinguished road

      0  

    Post Answered: Extjs 4 migration problem

    Answered: Extjs 4 migration problem


    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);
    content_div.load({
    url:'mypage.html',params:{val1:'default'},scripts:true,text: 'Loading...'});
    content_div.show();


    Thanks in advance
    Thanks
    Siva S

  2. In the load config object, try setting disableCaching to false.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    899
    Answers
    3574
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    In the load config object, try setting disableCaching to false.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User siva565's Avatar
    Join Date
    Nov 2010
    Location
    India,Hyderabad
    Posts
    47
    Vote Rating
    0
    Answers
    1
    siva565 is on a distinguished road

      0  

    Default


    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'
    });
    Thanks
    Siva S