Results 1 to 3 of 3

Thread: Periodically loading a Store with JSON data from Ajax request

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    12
    Vote Rating
    0
      0  

    Default Periodically loading a Store with JSON data from Ajax request

    Hi,

    Am new to ExtJS and have been asked to implement long polling for a project i am curretnly working on.

    I have set up a POC that re-initialises a request and on timeout error to mimic the long polling to the server.

    Am also utilising the echo feature to mock and AJAX request with JSFiddle.

    I have created my POC:

    http://jsfiddle.net/9Zx8H/2/

    I am not proving the concept and need to do so!

    Can you please help.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    Instead of doing an Ext.Ajax request why not give your store a proxy and then load the store?
    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

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    12
    Vote Rating
    0
      0  

    Default

    Thanks for the reply.

    I could not figure out how to implement long polling like in the original example with the proxy.

    So set a long timeout and then on success or timeout re-init the request.

    Agree that it would be far neater to implement a proxy but looking at the documentation i was not sure if i had access to success and failure callbacks to implement the long polling.

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
  •