Results 1 to 3 of 3

Thread: Server-side updates

  1. #1
    Sencha User
    Join Date
    Dec 2007
    Posts
    2
    Vote Rating
    0
      0  

    Default Server-side updates

    I'm starting with ExtJS so my question may very well already been answered somewhere in these forums, but I couldn't find it. I want to start a web app to show some stock prices on some grid. The catch is, the stock prices will change (in the end, in realtime) and when the server knows that a price has changed, it needs to send that change to the client (no polling every X seconds from the client side). So, the server needs to invalidate the store the client is using, somehow. And the client needs to know exactly what price has changed, so that it can change the background color of that cell for a brief period of time. How do you start this? I'm quite certain this can easily be done in ExtJS, but I'm not really sure how.

    Thanks

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

    Default

    You need to use a technology that can push updates to the browser, JavaScript does not have this ability natively cross browser. I personally use Socket.IO as it supports web sockets for new browsers but also has Flash that can be used.
    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
    Dec 2007
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    You need to use a technology that can push updates to the browser, JavaScript does not have this ability natively cross browser. I personally use Socket.IO as it supports web sockets for new browsers but also has Flash that can be used.
    Yeah, I was thinking on using WebSockets to get the updates pushed to the client side. But what combination of store/model/controller should I use?

Posting Permissions

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