Realtime progress indicator? |
[eluser]Unknown[/eluser]
I need to have a web page that sends a list of file names back to the browser as each is processed by the server. So, it would be a growing list of files with a vertical scrollbar. There could be up to 1000 files. This would be a realtime progress indicator. Is there a way to do this with CI? thanks, William
[eluser]Colin Williams[/eluser]
If you can do it with PHP, you can do it with CI.
[eluser]renownedmedia[/eluser]
You could do something like visit http://domain.com/perform_action which would start modifying your files. That controller could write the updates to a file named updates.txt and your AJAX (which is initialized in the perform_action page) could repeatedly download the updates.txt file.
[eluser]BrianDHall[/eluser]
+1 for AJAX note, its the only way to do this and make it work like you want it to. Otherwise the browser may very well only get progress when everything is done. I well you could use Flash of course, but it is a lot easier to put together a simple but of javascript than it is to learn flash ![]() |
Welcome Guest, Not a member yet? Register Sign In |