heres my code:
code now works
Code:
<html>
<head>
<script type="text/javascript" src="/res/js/jquery.min.js"> </script>
<script>
$.getJSON('/data.json',
function (data) {
var tr;
for (var i = 0; i < data.length; i++) {
tr = $('<tr/>');
tr.append("<td>" + data[i].name + "</td>");
tr.append("<td>" + data[i].file + "</td>");
tr.append("<td>" + data[i].description + "</td>");
$('table').append(tr);
}
});
</script>
</head>
<body>
<div class="wrapper">
<div class="profile">
<table id="user_submissions" border="2">
<thead>
<th>Name</th>
<th>URL</th>
<th>Description</th>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</body>
</html>
code now works
Last edited by MarioMasta64,