| View previous topic :: View next topic |
| Author |
Message |
Robert T Guest
|
Posted: Wed Sep 13, 2006 1:32 am Post subject: Live Open connection from Client html to indyHttp server |
|
|
Hi
How do I create a live connection to my indyHTTP server which will update my
client side html.
THanks |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Sep 13, 2006 2:52 am Post subject: Re: Live Open connection from Client html to indyHttp server |
|
|
"Robert T" <some (AT) some (DOT) com> wrote in message
news:45071928 (AT) newsgroups (DOT) borland.com...
| Quote: | How do I create a live connection to my indyHTTP server which
will update my client side html.
|
Please elaborate. What exactly are you trying to accomplish?
Gambit |
|
| Back to top |
|
 |
Robert T Guest
|
Posted: Thu Sep 14, 2006 1:32 am Post subject: Re: Live Open connection from Client html to indyHttp server |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:45072ed4$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Robert T" <some (AT) some (DOT) com> wrote in message
news:45071928 (AT) newsgroups (DOT) borland.com...
How do I create a live connection to my indyHTTP server which
will update my client side html.
Please elaborate. What exactly are you trying to accomplish?
I created a webserver using the Indyhttppserver component. The clients use |
mostly IE and Firefox to connect and send requests to which the server
reply. What I would like to do is have a live connection to the server so
that whenever the server processes new data received from a coms port I want
to display that data on the clients webbrowser without having to refresh the
page.
I hope it makes sense now.
Thanks
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Sep 14, 2006 3:19 am Post subject: Re: Live Open connection from Client html to indyHttp server |
|
|
"Robert T" <some (AT) some (DOT) com> wrote in message
news:45086aba (AT) newsgroups (DOT) borland.com...
| Quote: | I created a webserver using the Indyhttppserver component. The
clients use mostly IE and Firefox to connect and send requests to
which the server reply. What I would like to do is have a live
connection to the server so that whenever the server processes
new data received from a coms port I want to display that data
on the clients webbrowser without having to refresh the page.
|
The HTTP protocol is not designed for that. It is a command/response
protocol, not a streaming push protocol. Refreshing the page periodically
is the only way for a browser to get the latest HTML from the server.
Otherwise, you will have to write a Java applet that runs on the web page
and maintains its own persistent connection to the server. The applet can
then alter the client-side HTML dynamically in code. Or else look at using
RSS feeds instead to present your COM port data in a dynamic manner.
Gambit |
|
| Back to top |
|
 |
|