Here is the script for updating the page <meta http-equiv = "refresh" content = "60">

But I need to update not the whole page but only the content of the page where I need to insert this code $ .load () I want to make a text translation of football matches on the ucoz website, but I don’t know how to do this, I probably need another script template, tell me if I can . Thank.

    3 answers 3

    setTimeout(function(){ // $.load() }, 20000); // раз в 20 секунд 

      It is better to use long polling

      • And more precisely how to use it? - shumnyjj

      If you talk about long poling and comet-server, then you can look in the direction of WebSocket , find out how to use WebSocket in PHP , only from this example you need one half (server is a client), a kind of semi-chat :-)