Hey,
ich habe folgendes Script:
Und will das ganze Ding einfach periodisch updaten. Nur leider bekomme ich das nicht ganz so hin, wie ich will. Kann mir da jemand helfen?
ich habe folgendes Script:
Code:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $.get("ajax.php", function(data){ var duce = jQuery.parseJSON(data); var x = duce[0]; var y = duce[1]; console.log(x); console.log(y); }); setInterval(function(data),1000); </script> </body> </html>
Kommentar