The easiest way to create web page that update dynamically based on real-time data, is to just periodically regenerate the file from a C program, and include the two shown below so that your browser automatically refreshes. I have done this with
great success for tables, overlapping images that move, even just plain text.
<META HTTP-EQUIV="refresh"
CONTENT="5"> <meta http-equiv=
"pragma" content="no-cache">
Below is a snippet showing overlaping images. In this case I had yellow squares
over a background, each yellow square indicating the position of a train. With Firefox, the movement of the squares is quite smooth.
<div style
="position:absolute; top:50px; left:0px;"> <img SRC=Linea1Sur.png
> </div>
<div style="position:absolute; top:230px; left:64px; z-index:2"
> <img SRC=square.png> </div>
On the real time clock, it's purpose is to set the system clock at startup.
After that, just use the regular C system calls to read and manipulate the time.
Don.
On 8/26/06, stageelectronique <> wrote:
Hello
1.I have a web serveur on my TS 7260,and a HTML page. I would like to
send and see some information on that page: for exemple data from a
register,data from a variable in C program,rtc... it is possible?
2.I have an rtc on my TS,how to configure and use it in a C program :
for exemple: if( 12:00)
{...}
else
...
thanks
-- Dr. Don W. Carr J. G. Montenegro 2258 Guadalajara, Mexico +52-333-630-0704 +52-333-836-4500 ext 2930
__._,_.___
SPONSORED LINKS
YAHOO! GROUPS LINKS
- Visit your group "ts-7000" on the web.
- To unsubscribe from this group, send an email to:
=Unsubscribe
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
|