DHTML refresh data
Hey there everybody,
I was just wondering if anyone could help me out with a DHTML problem involving
refreshing the page showing new data from a database, displaying the new
data using DHTML.
If that was a bit confusing, I apologize. To get a better understanding of
what I am talking about, please visit www.livedata.com. You'll notice the
volt reader at the bottom of the page, which is displaying live data of the
volt meter. I would like to emualte this technology for the project I am
working on and I understand that it is not an easy task.
I am not very proficient with javascript, so if the whole solution is too
time consuming for somebody to help me with, could they at least explain
what Javascript code I would have to use to make a screen refresh automatically
every second to obtain new data.
I appreciate any help anybody can provide me, thank you.
-Steven Leong
[963 byte] By [
Steven] at [2007-11-9 16:15:32]

# 1 Re: DHTML refresh data
WHOA dude.. the thing you ask for is something they put in such a time and
effort that they ask you to pay for it.. It's quite an ingenious system
(check:http://www.livedata.com/products/p_view_about.html) and in light of
this I think you're askin a bit too much..this is not something for the
weekend coder..
It's a near imposible thing to use (only)basic javascripting to display live
data from a database... what you COULD do is to have a hidden frame on your
page which refreshes every N seconds and gets the data from the database
(for this page you should use something like asp or PHP) and have a
javascript on your main page read out the content of that page.. but even
this is no simple task..
So, if you're set on having this on your page you either buy the technologie
(fro livedata for instance), pay a programmer to do it for you or try and
learn a server-side scripting language and javascript..
You know, if it were as simple as you seemingly expect it to be everybody
would have it on their pages (like javascript mouse-overs for instance)
good luck...
patch
Steven wrote in message <3d061f67$1@10.1.10.29>...
>
>Hey there everybody,
>
>I was just wondering if anyone could help me out with a DHTML problem
involving
>refreshing the page showing new data from a database, displaying the new
>data using DHTML.
>
>If that was a bit confusing, I apologize. To get a better understanding of
>what I am talking about, please visit www.livedata.com. You'll notice the
>volt reader at the bottom of the page, which is displaying live data of the
>volt meter. I would like to emualte this technology for the project I am
>working on and I understand that it is not an easy task.
>
>I am not very proficient with javascript, so if the whole solution is too
>time consuming for somebody to help me with, could they at least explain
>what Javascript code I would have to use to make a screen refresh
automatically
>every second to obtain new data.
>
>I appreciate any help anybody can provide me, thank you.
>
>-Steven Leong
patch at 2007-11-11 23:36:42 >

# 2 Re: DHTML refresh data
Oops, you stated you knew it wasn't easy, sorry, overlooked that..
to make a page refresh every N seconds you dont even have to use javascript:
<META HTTP-EQUIV="Refresh" CONTENT="N">
where N is ofcourse te amount of seconds you want the page to be refreshed..
put this somewhere in the header of your page and it will work..
patch wrote in message <3d0740bc$1@10.1.10.29>...
[..snip..]
>patch
>Steven wrote in message <3d061f67$1@10.1.10.29>...
[..snap..]
>>-Steven Leong
patch at 2007-11-11 23:37:48 >

# 3 Re: DHTML refresh data
My thoughts exactly. you can build a two frame page. But set th width of
one of the frame to say 1px, and turn off the borders and resizing. This
way it's basically invisible. You can have that call some server side script
that generates a page with some cross browser DHTML to update a div layer
in the other frame. Sorry if this is vague on details. Hope this at least
points you in the right direction.
Xin Li
Xin Li at 2007-11-11 23:38:46 >
