Reid Oda wrote:
ah yes. that's what i want. this is my first project using AJAX, so i have a lot to learn.
the text i'll be loading into the iframe is a log file that sometimes grows as quickly as 1 line per second and other times as slowly 1 line per hour. is there a way that the rails server can tell the browser when a new line is ready to be uploaded, instead of having to check back at regular intervals?
An iframe would have allowed you to simply point the src parameter of
the iframe to the stream and let the browser render it progressively
as if it was a normal webpage. But unless there is some way to
keep the loading alive (e.g. sending null characters), I fear
that browsers will time-out at the 1 line/hour rate you want.
So you might have to go to a more complicated AJAX polling method.
Others may be able to suggest a good solution for your circumstances.