It might be easiest for your mymethod action mymethod display the view instead of returning JSON. Then you can simply set innerHTML for the div in the ajax response.
Otherwise, your approach will work, but you should obviously delete existing table rows first:
$('#table').tableRemoveRows({from:0, length:???});
Edit
re-reading your question, it looks like you are asking more about setInterval than about creating a table. You need to re-register the callback, so something like this:
function getdata() { $.getJSON("/mycontroller/mymethod"), function(data) { $.each(data, function(i, item) { var row = { item.ID, item.Date, item.Title }; $(
source share