On Thu, Oct 30, 2008 at 1:05 AM, Adam Docherty <[EMAIL PROTECTED]> wrote:
> Yeah thats exactly what i did lol
>
> store.oncomplete = function(o){
> if(o.newVersion){
> updateDb(screenId, o.newVersion);
> } }
>
> I notice that it keeps firing for a little and then stops, even though all
> files have been accessed already, could this be due to the fact that \i am
> running it with extJS (js framework) and maybe that is doing something in
> the background...
Are you saying that o.newVersion contains a value multiple times right
after one another? That does seem odd if so. Are the values for
newVersion different?
> the thing is that I need to have a timing routine which will make sure it
> checks for updates periodically, something like every minute or so, can i
> call
>
> checkForUpdate()
>
> every minute, or will this cause problems? what i would do is call it and if
> there is a manifest version change I would stop the timing routine and
> restart once the download was done... what do you think?
It won't cause problems to call checkForUpdate() periodically. It
seems perfectly reasonable to do that.
- a