HighDots Forums  

Realtime data in a web page

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Realtime data in a web page in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Borked Pseudo Mailed
 
Posts: n/a

Default Realtime data in a web page - 03-10-2008 , 01:32 PM






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
recently?

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


Reply With Quote
  #2  
Old   
David E. Ross
 
Posts: n/a

Default Re: Realtime data in a web page - 03-10-2008 , 01:42 PM






On 3/10/2008 10:32 AM, Borked Pseudo Mailed wrote:
Quote:
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
recently?

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

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

--
David Ross
<http://www.rossde.com/>

Have you been using Netscape and now feel abandoned by AOL?
Then use SeaMonkey. Go to <http://www.seamonkey-project.org/>.


Reply With Quote
  #3  
Old   
Ed Jay
 
Posts: n/a

Default Re: Realtime data in a web page - 03-10-2008 , 01:46 PM



Borked Pseudo Mailed scribed:

Quote:
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
recently?

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)


Reply With Quote
  #4  
Old   
Petr Vileta
 
Posts: n/a

Default Re: Realtime data in a web page - 03-11-2008 , 12:07 AM



Borked Pseudo Mailed wrote:
Quote:
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
recently?

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
http://www.download.com/Petr-Vileta-...4-6288188.html

--
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>



Reply With Quote
  #5  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Realtime data in a web page - 03-11-2008 , 09:37 AM



On 10 Mar, 18:32, Borked Pseudo Mailed <nob... (AT) pseudo (DOT) borked.net>
wrote:

Quote:
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.
AJAX

+ 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.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.