Results 1 to 3 of 3

Thread: page gets blank when i call store.nextPage() function

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    81
    Vote Rating
    0
      0  

    Default page gets blank when i call store.nextPage() function

    when i call store.nextPage() function, my list gets blank for a while until my request response comes back and then data is populated, how can i stop making the list blank

  2. #2
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    1
      0  

    Default

    Is there any sample code for test?

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    81
    Vote Rating
    0
      0  

    Default

    i define my store like this
    Code:
    myStore = new Ext.data.Store({
    	proxy: {
    		type: 'ajax',
    		url : '/abc'
    	}
    });
    And then before onload function i do this
    Code:
    myStore.clearOnPageLoad = false;
    myStore.load(function(){
         foodList.bindStore(myStore); // binding my list here
    });
    And then on an event i call my function
    Code:
    var next_page = function(){
    	myStore.nextPage();
    }
    before any response comes back it shows my blank page and than data is populated
    hope you know now, what i am trying to say

Similar Threads

  1. What's up with the about:blank page ?
    By djd in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 4 Jun 2011, 1:48 AM
  2. Replies: 10
    Last Post: 11 Mar 2009, 12:54 AM
  3. Create & Call JavaScript Function From Within The Ajax Page!
    By jaggybala in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 6 Dec 2008, 4:53 AM
  4. Call Ext.extend function from FeedWindow.superclass.constructor.call
    By adelphus in forum Ext 2.x: Help & Discussion
    Replies: 17
    Last Post: 3 Jun 2008, 1:42 AM
  5. [SOLVED] - how to call function from iframe page
    By olasnavigator in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 30 Jan 2008, 10:07 PM

Posting Permissions

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