473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to update a portion of a page in near-realtime?

OK, let me explain what I am trying to do.

I have an embedded PC that runs a httpd+php server and controls a machine.

I have a browser front end that provides the HMI (human machine
interface) to the machine.

The machine has about a dozen status indicators; things like over-temp,
powerfail, and so on.

I've been asked to provide a status page that shows the status of these
indicators in near-realtime, say current to within a second or so.

In order to update these indicators, the embedded PC must query another
controller. So the sequence is this:

Browser says, time for new update; queries backend.
Backend launches the query program, which requests status from other
controller.
Other controller responds with current status (about 16 bits of data).
Query program provides this information back to the originating program.

I cannot update the entire page, as part of it is a flash movie that
takes something like 30 seconds to generate on my embedded platform. I
need to update only < 16 icons on one small portion of the page.

What is the best way (or simplest, or lightest in resources) to do this?
I need something portable that can work with different browsers.

Thanks,

--Yan
Sep 7 '06 #1
1 1430
CptDondo wrote:
OK, let me explain what I am trying to do.

I have an embedded PC that runs a httpd+php server and controls a
machine.
I have a browser front end that provides the HMI (human machine
interface) to the machine.

The machine has about a dozen status indicators; things like
over-temp, powerfail, and so on.

I've been asked to provide a status page that shows the status of
these indicators in near-realtime, say current to within a second or
so.
In order to update these indicators, the embedded PC must query
another controller. So the sequence is this:

Browser says, time for new update; queries backend.
Backend launches the query program, which requests status from other
controller.
Other controller responds with current status (about 16 bits of data).
Query program provides this information back to the originating
program.
I cannot update the entire page, as part of it is a flash movie that
takes something like 30 seconds to generate on my embedded platform. I
need to update only < 16 icons on one small portion of the page.

What is the best way (or simplest, or lightest in resources) to do
this? I need something portable that can work with different
browsers.
Near realtime? Well...

Look to AJAX and its related teqniques... (as long as the client
browsers have JS enabled) to get the status from the server.

Then use the response from the AJAX call together with the DOM,
or .innerHTML to update parts of the page.

--
Dag.

Sep 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: shank | last post by:
Visually, the page will look somewhat like a spreadsheet. It could have hundreds of records (rows) displayed. I want to enable the user to edit any one or any number of records and any fields, then...
5
by: Jay Villa | last post by:
Is it possible to update only few columns in datagrid during OnUpdateCommand event ? If so, could you help me .... -thanks Jay
8
by: m1post | last post by:
Hi, I'm very much a novice, and wondered if someone could help. I'll try to be as specific as possible, but don't waant you to have to read too much. I have 2 pages in the sequence. 1st allows...
2
by: Looch | last post by:
Hi, I'm filling a GridView with a simple sproc select statement. I'm trying to use the Update tab to create an update statement and using the following: Update Shipping_Requests Set Shipped...
1
by: sibusiso | last post by:
HI Can Any one help I have extra field on a table like FDate, FYear, FMonth, FDay, FDatename I have a triger that I will update this field every time transaction hapened, this field must...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.