I want repeat this code every 4 seconds, how i can do it with javascript or jquery easly ? Thanks. :)
$.get(\"request2.php\", function(vystup){
if (vystup
It's not too hard in javascript.
// declare your variable for the setInterval so that you can clear it later
var myInterval;
// set your interval
myInterval = setInterval(whichFunction,4000);
whichFunction{
// function code goes here
}
// this code clears your interval (myInterval)
window.clearInterval(myInterval);
Hope this helps!