Let's say I want to run a simple Python script, which is a web server. And I want to connect a browser to it that updates every N seconds, i.e. The page is being updated. How can I do it?
I assume that the Python script server will generate HTML code containing javascript that sleeps and forces updates? Or can the browser update?
Thanks in advance.
<meta http-equiv="refresh" content="5" />
This will reload the page after 5 seconds.
, , , . , , , AJAX. . , , , AJAX -, .
AJAX . IE6, , . :
5 .
You can use META-Tag to update or use javascript. But you must make sure that the parameters in the URL are handled correctly and that you do not update the POST actions if you are not going to.
Use the meta refresh tag . Although I would be very surprised if the web page suddenly refreshed on its own. Some AJAXy materials will be much more useful.