I haven't looked. My bet is a pull as push technology is pretty resource-expensive.
Jane Somerfield
Ranch Hand
Joined: Jul 20, 2002
Posts: 192
posted
0
I did a simple experiment:
While CNN Money showing the changing market data, I disconnected the network connection from my computer.
The last data remains on the page (values, timestamp, ...) without any changes during the period of disconnection.
The disconnection time is about a hour. Then I connected the computer to the internet, and saw the updates resumed in about 5 minutes after the connection.
I do not think CNN Money server keeps the connection information (or client session) after the connection are gone for over a hour. So server pushing in this
situation is impossible.
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
posted
0
The code is in the numbered JavaScript file. It is an interval polling the server, it is basic Ajax, looks to have an iframe fallback if I am reading the code correctly. I just glanced at it.
Basic idea is make a call to the server after a set period of time looking for new data. If he call errors out, probably disconnected and change the polling time to a larger time difference. When you get new data, you just update the page.
Eric
Bear Bibeault
Author and opinionated walrus
Marshal