please critique!
please critique!
Hello all and thank you for any help.
I have just finished building the following, which does work, however I am not sure if it is running as good as it can. May I please get some instructional criticism and possibly some ideas on ways to make the performance better?
Thank you in advance
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
<title>Stream Status</title>
</head>
<body>
<table></table>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="new_process.js"></script>
</body>
</html>
$(document).ready( function() {
over();
});
function over(){
setTimeout( function() {
poll_db();
over();
}, 200);
}
function poll_db(){
$.getJSON("process.php", function(obj) {
$("body").empty();
$.each(obj.result, function() {
$("body").append("<tr>"+"</tr>");
$("body").append("<td>"+this['Machine']+"</td>");
$("body").append("<img src=" +this['Status'] + ".png></img>");
$("body").append("<img src=" +this['Push'] + ".png></img>");
$("body").append("<img src=" +this['Back'] + ".png></img>");
});
});
};