Send data to page(browser) after page load (or during)
Posted: Sat Mar 08, 2008 7:15 pm
I have a difficult problem. To simplify the situation, I have a few files (written in perl) that move around a bit and do random stuff. *These files constantly run and update themselves.
I would like to code a web interface to view and manage these files.
The problem I'm having is how to get the page to constantly monitor their position and actions.
Now I could just use AJAX (which I'm not familiar) to check every minute or so for updates, but I'd rather the page update itself or something update the page whenever "something happens."
To again simplify:
automated file moves/updates -> webpage updates to show change
I'm willing to use most any (free) technology to get this done.
-- I've looked at Ruby on Rails because I'd heard Mongrel can do something like this, but I can't seem to find any documentation on it.
-- Can AJAX constantly check a page?
-- I remember a chat program written entirely in php once that worked by the page constantly loading. I'd rather not have the loading bar run like mad, but I'll take what I can get. I believe it might have had something to do with ob_start/ob_flush, but I really don't remember. Is this a possible solution?
-- Or--and I almost hate to ask--would Flash be a viable solution?
Thanks
I would like to code a web interface to view and manage these files.
The problem I'm having is how to get the page to constantly monitor their position and actions.
Now I could just use AJAX (which I'm not familiar) to check every minute or so for updates, but I'd rather the page update itself or something update the page whenever "something happens."
To again simplify:
automated file moves/updates -> webpage updates to show change
I'm willing to use most any (free) technology to get this done.
-- I've looked at Ruby on Rails because I'd heard Mongrel can do something like this, but I can't seem to find any documentation on it.
-- Can AJAX constantly check a page?
-- I remember a chat program written entirely in php once that worked by the page constantly loading. I'd rather not have the loading bar run like mad, but I'll take what I can get. I believe it might have had something to do with ob_start/ob_flush, but I really don't remember. Is this a possible solution?
-- Or--and I almost hate to ask--would Flash be a viable solution?
Thanks