Smartupdater

  |   Home  |   Basic  |   Stop / Restart  |   Programmable Timeout  |   Smart Updating   |   Remote Control  |   Download  |   Blog

Smartupdater-3.0.beta is released. Please visit http://www.eslinstructor.net/smartupdater3/


Programmable Timeout

Time on server:
Smartpdater Timeout:


sec.  

$("#example1").smartupdater({
   url : 'gettime.php',
   minTimeout: 5000 // 5 seconds
   }, function (data) {
     $("#example1").html(data);
   }
);

$("#example1").smartupdaterSetTimeout(timeout);

$("#example1")[0].smartupdaterStatus.timeout

Programmable Timeout

OK. At certain point of your development you realise that your application is very complex and Smartupdater is not really "smart" to implement your updating needs. Though multiplying timeout based on returned data algorithm is suitable for most applications, some advanced applications need in more complex and specific updating pattern.

Well, Smartupdater cannot be smarter then you, the developer. But it smart enough to let you to implement your own algorithm and re-progrmm it dynamically. At any time you can set any timeout which is right for this particular task your application is executing. See how it works in this demo. (Set interval in seconds, not miliseconds)



©2010 Vadim Kiryukhin