I am looking to do something like the following – “Update a text area
with the content of a file on the server every 5 second once. This
activity should start once the “Run” button on my page is clicked”
What is the best approach to do this? The file is a log file so no
security concerns.
If you want to click a button to update some text, then probably the
easiest would be simply to refresh the page with a form and button
where the target is an empty string.
If you want to click a button to update some text, then probably the
easiest would be simply to refresh the page with a form and button
where the target is an empty string.
should be
able to read file on server and show the output
So every five seconds it should update the view?
This would call for a periodically call remote, or you could simply
put an HTTP refresh in the head tag of the html, depending on how big
the returned page is.
Make sure you have the javascripts included for prototype (defaults)
on the page, and then use the api as discussed here: