Results 1 to 3 of 3

Thread: Extjs 4 migration problem

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Location
    India,Hyderabad
    Posts
    47
    Answers
    1
    Vote Rating
    0
      0  

    Post 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

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

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,318
    Answers
    3883
    Vote Rating
    1291
      0  

    Default

    In the load config object, try setting disableCaching to false.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    Join Date
    Nov 2010
    Location
    India,Hyderabad
    Posts
    47
    Answers
    1
    Vote Rating
    0
      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'
    });

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •