Hello! Suppose there is a php code that, after execution, produces a specific value on the page. When the page is updated, the value changes. How to make this value change without refreshing the page? I think to organize it with js. He carried the code into a separate document, and then loaded it onto the necessary page. But, in return, either emptiness came, or the original meaning remained after some dances. The link to the uploaded file is correct. For if you write something else there, the value is loaded. And if the php - code was immediately on the right page, then everything is fine. But a page refresh is required. I loaded it like this:
setInterval(function() { $("#azaza").load('azaza.php'); }, 1000);
Also, there is a link with id = "azaza"
. However, what is between <a>
and its closing should change. The tag itself is already set to href
, which has a link. If it matters.