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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •