THttpServer automatic page reload

I am using THttpServer to display some data.
I have implement few buttons to register different files but I have to press the reload button each time. Is there a way to have automatic reload of the page?

Thanks a lot
Stefano

_ROOT Version 6.20.04

Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hi Stefano,

If you implement new buttons - most probably you already implement your own html/js code for THttpServer. In this case you can use location.reload() JavaScript method and call it via timer.

If you want to reload webpage only when new files exist on the server - you can use different ways to request information from THttpServer - see correspondent docu. For instance, you can register list of the files to THttpServer and request it regulary via root.json HTTP request.

Regards,
Sergey

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.