Results 1 to 4 of 4

Thread: Implementing Polling

  1. #1
    Sencha User
    Join Date
    Apr 2010
    Location
    Goa - India
    Posts
    10

    Default Implementing Polling

    I have a back end process thread that processes tasks and makes them available to users. There after this should appear in a users inbox (inbox is implemented as a grid). What is the best way to implement polling? Code snippet would be much appreciated.

    Thanks

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Location
    Goa - India
    Posts
    10

    Default Polling working fine but grid does not refresh

    Hi Evant,

    Thanks for your reply, I did got the store to poll the server periodically and the data returned but the grid fails to refresh.

    The lines i wrote are
    var poll = {
    run: function(){
    store.removeAll();
    store.load();
    },
    interval: 15000 //15 second
    };

    Am i missing something that needs to explicitly reload the grid?

  4. #4
    Sencha User
    Join Date
    Apr 2010
    Location
    Goa - India
    Posts
    10

    Default Working Fine

    Hi Evan,

    Just for completeness of this thread.

    It works like a charm, the problem was with a char passed from the server.

    The final code snippet

    var poll = {
    run: function(){
    store.load();
    },
    interval: 15000
    };

Similar Threads

  1. Polling response handling
    By rwong2000 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 10 May 2010, 9:18 PM
  2. empty response polling provider
    By rblon in forum Ext.Direct
    Replies: 2
    Last Post: 23 Nov 2009, 2:30 PM
  3. Is there any component for polling
    By JDevloper in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 12 Oct 2008, 9:29 PM
  4. ajax polling help
    By MoShAn480 in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 27 Apr 2007, 7:49 AM

Posting Permissions

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