$("#example1").smartupdater({
url : 'gettime_json.php',
dataType:'json',
minTimeout: 5000 // 5 seconds
}, function (data) {
$("#example1").html(data.servertime);
}
);
"url".
minTimeout
". By default
it set to 60000 miliseconds which is 1 minute. This parameter must be set in miliseconds.
dataType
is 'text'
; in this example it I set it 'json'
.