Im using Spring MVC In My editStatus.jsp I have the following code to refresh a DIV every 5 seocnds
function refreshDiv(){
$.ajax({
url: \'edi
I think your refresh function is incomplete, for instance there's nothing that makes it loop. Try something like this:
$(document).ready(function () {
var seconds = 5000; // time in milliseconds
var reload = function() {
$.ajax({
url: 'editStatus.jsp',
cache: false,
success: function(data) {
$('#refreshDIV').html(data);
setTimeout(function() {
reload();
}, seconds);
}
});
};
reload();
});