By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,030 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,030 IT Pros & Developers. It's quick & easy.

real time info to web browser from apache side ?

P: n/a
I know about writing CGI application using Perl and Apache to refresh a
static webpage that displays on the browser. But now i have an
application requirement that I hope someone can help me.

The server side sits in another room down the factory plant, its
monitoring some hardware environment, namely temperatures and pressures
etc inside the plant. This server of course have Apache running. I
would like to be able to have a browser in the comfortable office
somewhere point to the apache server, and after I enter the password,
it would display the temperature and pressures etc in the plant (in
real time, ie. as the temperate changes from a degree to another, the
browser will immediately display this). So I am looking more for a
push technology than a pull from teh browser (user hit Ctrl-R to
refresh is a pull).

What are the current technology that allows for this. I know its
possible because I can use my browser sometimes to chat with people
online, and I swear that I don't have to do a Control-R everytime to
see that the other person's typing is updating constantly on my
browser.

Thanks in advance,
Push technology wannabe

May 23 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Joseph" <sp****@canada.com> writes:
What are the current technology that allows for this. I know its
possible because I can use my browser sometimes to chat with people
online, and I swear that I don't have to do a Control-R everytime to
see that the other person's typing is updating constantly on my
browser.


The trendy way these days is with AJAX, which I guess is legitimate in
an environment where you control both the browser and the server.
May 23 '06 #2

P: n/a
Joseph wrote:
I know about writing CGI application using Perl and Apache to refresh a
static webpage that displays on the browser. But now i have an
application requirement that I hope someone can help me.

The server side sits in another room down the factory plant, its
monitoring some hardware environment, namely temperatures and pressures
etc inside the plant. This server of course have Apache running. I
would like to be able to have a browser in the comfortable office
somewhere point to the apache server, and after I enter the password,
it would display the temperature and pressures etc in the plant (in
real time, ie. as the temperate changes from a degree to another, the
browser will immediately display this). So I am looking more for a
push technology than a pull from teh browser (user hit Ctrl-R to
refresh is a pull).

What are the current technology that allows for this. I know its
possible because I can use my browser sometimes to chat with people
online, and I swear that I don't have to do a Control-R everytime to
see that the other person's typing is updating constantly on my
browser.

Thanks in advance,
Push technology wannabe

I would use AJAX so that I could query the server via XMLrpc
calls to update the browser. You can have much higher refresh
rates using this method. The alternative is to just have
the browser refresh every few seconds by imbedding a header at
the top. Something like:

<meta http-equiv="refresh" content="10">

Refresh every 10 seconds.

-Larry Bates

would refresh every 10 seconds.
May 23 '06 #3

P: n/a
"Joseph" <sp****@canada.com> writes:
So I am looking more for a push technology than a pull from teh
browser (user hit Ctrl-R to refresh is a pull).


Not necessarily; just write the web page so that it instructs the
browser to do the pull automatically, without refreshing the entire
page.

This has come to be known as AJAX (though, because this is the sort of
thing JavaScript was designed for, some just call it JavaScript).

--
\ "During my service in the United States Congress, I took the |
`\ initiative in creating the Internet." -- Al Gore |
_o__) |
Ben Finney

May 23 '06 #4

P: n/a
In article <ma***************************************@python. org>,
Ben Finney <bi****************@benfinney.id.au> wrote:
"Joseph" <sp****@canada.com> writes:
So I am looking more for a push technology than a pull from teh
browser (user hit Ctrl-R to refresh is a pull).


Not necessarily; just write the web page so that it instructs the
browser to do the pull automatically, without refreshing the entire
page.

This has come to be known as AJAX (though, because this is the sort of
thing JavaScript was designed for, some just call it JavaScript).

May 24 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.