Re: Rik--perhaps you know
- From: David <dgold1958@xxxxxxxx>
- Date: Sun, 16 Jul 2006 19:37:22 +0200
On Sun, 16 Jul 2006 10:37:22 +0200, "Rik" <luiheidsgoeroe@xxxxxxxxxxx>
wrote:
David wrote:
Scenario: I enter information in a form. I want a table on another
screen (terminal server?) to be updated with that information. Is it
possible to direct output directly to another screen?
What I have thought of so far is this:
I can run a broswer at another terminal (computer), log in to the
screen that needs to be updated and use the refresh meta command to
have the page update itself (I believe). Can a page refresh itself?
If yes, will the database queries be executed?
If you allow the browser to refresh pages it can, either by meta-tags, or
javascript. As long as the page isn't cached by the browser, and you run
queries on the remote PHP-script, they will offcourse run every time the
page is requested.
At the main program, the data would be entered using forms and stored
in a database for the "terminal" program to retrieve.
What I would really like to happen is that the main program "pushes"
the data to the terminal, though.
That's not possible in browsers.
The only solution is to keep refreshing the page or a (hidden?) (i)frame, or
keep polling a custom php-page with the additional info using XMLHTTPRequest
and the like in javascript. Maybe there is something to be found in Java
applets, but those are outside my area of expertise :-).
Depending on what your actual goal is here (limited amount of known & logged
in users that monitor something?), there could be much better options then
browsers. Preferaply applications that can listen and respond to incoming
traffic on a certain port. Those really aren't my cup of tea, but I'd
imagine someone knowing C++ can whip one up. It would likely be much faster
and accurate then anything you can achieve in a browser.
Grtz,
Rik,
Thanks for your input. I've been thinking about this problem a lot.
It may be possible to do something with bash scripts. I have to get
Linux installed on this computer first. I did a little javascript
programming a few years back. Not enough to help me with this problem
and I am do not have enough time to learn all of the javacsript that i
would need.
For testing purposes, I will simply set it up with the meta-tags. It
is definitely not the best solution, but I need to do it as a demo.
Thx again,
David
.
- References:
- Rik--perhaps you know
- From: David
- Re: Rik--perhaps you know
- From: Rik
- Rik--perhaps you know
- Prev by Date: Re: Only showing 20 lines per page...
- Next by Date: Re: Only showing 20 lines per page...
- Previous by thread: Re: Rik--perhaps you know
- Next by thread: include in php
- Index(es):
Relevant Pages
|