Time on server:
$("#example1").smartupdater({
url : 'gettime_json.php',
dataType:'json',
minTimeout: 5000 // 5 seconds
}, function (data) {
$("#example1").html(data.servertime);
}
);
This is a tipical Smartupdater configuration. In this example it polls server with 5 sec
interval and shows data which is current time on the server.
The only parameter you need to configure
is "url".
The second parameter, which you want to configure in most cases is "minTimeout". By default
it set to 60000 miliseconds which is 1 minute. This parameter must be set in miliseconds.
Default dataType is 'text'; in this example it I set it 'json'.