xhttp.open("GET", soubor, true);
xhttp.send();})(soubor);
}
}, 10000);
Pokud jsem to neposmolil tak furt to same.
Nudím se v prací tak hledam a zkoušim to co je na w3schools.com
Toto mi take funguje.
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").load("shm/teplota_pokoj");
});
});
</script>
</head>
<body><div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>
</body>
</html>
Není pak lepší přejmenovat ty div - "div1", "div2"