From: "Eric Lehti"
Any of you pushing data from server to client web browser?


No. Double no. And the question assumes the browser is listening all the time, which it isn't. If it were, then it would be the server. And the computer pushing the data would be the client. But that's not how browsers work. They only listen after first sending a request to a server.

In the case of your Executive Dashboard the browser may need to periodically send new refresh requests to the server at regular intervals. You can do that by setting up a timer with the window.setInterval() method. Chat applications use this method. Of course, if the user closes the window, you're out of luck. No updates. Until the next time the user opens up the Dashboard and request a refresh.

It seems that whenever people promote push technology, they misinform their audience.

Nathan.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.