$("#example1").smartupdater({
url : 'foo.php',
dataType : 'json',
minTimeout: 5000 // 5 seconds
}, function (data) {
$("#example1").html(data.servertime);
}
);
The simpliest JSON data can look like this one:
{
"servertime":"03:19:11",
"smartupdater":"15000"
}
Everybody who has deal with polling systems knows, that server can be easily overloaded with
client-side requests, so we try to set polling period as low as possible. But if number users
grows, we have to either increase polling period and make our application less dynamic or spend
money on either upgrading hardware or buying additional resurces from service provider.
Another problem -
simultanious access of large number of users which is very common for educational applications.
Smartupdater resolves these problems! "Remote programming" feature allows server to programm polling interval on client side dynamically. How it works.
Server:You even don't need to configure Smartupdater to activate this feature :) It's done automatically.