|
Posted by Rik on 07/16/06 08:37
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 Wasmus
Navigation:
[Reply to this message]
|