Code:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <script src="https://code.jquery.com/jquery-3.1.1.js"></script> </head> <body> <div id="content"></div> <script> function load(x) { var absolute = setInterval(function() {$("#content").load(x+'.php')}, 1000); } </script> <button onclick=load('bla')>Load that!</button> <button onclick=load('world')>Load World!</button> </content> </body> </html>
Habe bereits eine ganze Weile probiert, das Problem mittels clearInterval zu lösen, will aber irgendwie nicht hinhauen....
Danke im Voraus
Kommentar