Realtime data in a web page

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
We have a network based data aquisition box that connects
via LAN.  The user uses a web browser to see the data.  
Currently, the data is updated when the user refreshes the
browser.  I want to display the data at about 1 update per
second, and so far I have read about three possible solutions.
One is Flash, which is over kill.  Then there is AJAX which is
designed to do this task, but it looks like there are some
differences between browsers which will complicate the code.
The other choice is a roll-my-own concept like AJAX, but not
using the XML-HTTP Request.

My question is if my understanding is correct, and is there
any guidance from those that may have done something like this

e-mail: d boland 9 (all 1 word) at fastmail period fm

Re: Realtime data in a web page

On 3/10/2008 10:32 AM, Borked Pseudo Mailed wrote:
Quoted text here. Click to load it

See if you can find out how Yahoo updates their stock quotes at
< .  I suspect this is done with JavaScript
because the updates don't happen when I disable JavaScript.

David Ross

Have you been using Netscape and now feel abandoned by AOL?
Then use SeaMonkey.  Go to < .

Re: Realtime data in a web page

Borked Pseudo Mailed scribed:

Quoted text here. Click to load it
If you want the entire page refreshed after one second, put this in the head
of your document: <meta http-equiv="refresh" content="1">
Ed Jay (remove 'M' to respond by email)

Re: Realtime data in a web page

Borked Pseudo Mailed wrote:
Quoted text here. Click to load it

Dave, if you want to show data only without accent to design then you can use
two other ways.
1) Java applet (ActiveX)
2) Perl/Tk script or compiled to Windows executable.

If you never see Perl/Tk application and you have Windows then you can
download and test some of my freeware

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>

Re: Realtime data in a web page


Quoted text here. Click to load it


+ Well-trodden path, with clear advice on how to hide the browser
dependencies behind a facade. XMLHttpRequest is your friend (and there
are alternatives for when it isn't your particular browser's friend).

+ Good appearance, with a page container that's stable and just a
content window that need change.

+ Ability to accept small-volume XML and transform it locally. This
can make integration with data sources easier.

+ Less technically ugly then frames, iframes, meta-refresh etc.

- Requires client-side JS

I'd suggest using "raw" AJAX, i.e. writing (or downloading) all the
client-side code yourself, rather than using a dynamically-generated
page with a server-side AJAX framework.

Site Timeline