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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    In the load config object, try setting disableCaching to false.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  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
  •