Did that solve your problem? On Wed, Mar 4, 2009 at 12:35 PM, Danny Schimke <[email protected]>wrote:
> Thanks for that detailled answer ;) > > 2009/3/4 Vitali Lovich <[email protected]> > > You're probably using scheduleRepeat. Browsers are strictly single >> threaded (some multi-threading Javascript support coming in FF3.1 that I >> know of). Anyways your problem is this: >> >> run() >> showWindow() >> browser keeps generating timer event probably because that comes from the >> OS & there's no locking in place >> user clicks on button >> next event is shown >> >> Instead do this: >> >> timer.schedule(1000); >> run() { >> showWindow() >> timer.schedule(1000); >> >> } >> >> On Wed, Mar 4, 2009 at 9:34 AM, Danny Schimke >> <[email protected]>wrote: >> >>> Hello! >>> >>> I am using a timer to ask the user after xy minutes to save his changes >>> to database. In the run() method of timer I ask the user wheather he want to >>> save the changes. If the user clicks OK I'll save othwerwise I'll do >>> nothing. I shedule the timer repeatly after xy minutes. When does the timer >>> reruns? After handling the run() method? I recognized that the timer reruns >>> while the confirm message is shown. Is this an issue or correct? Should the >>> timer rerun while its run() method is not finished? I occurs in Firefox, in >>> IE it works like I am thinking how it should work. >>> >>> Example for Error: >>> >>> - Rerunning timer every 1 minute >>> - Confirmation is shown after 1 minute, user does *not* click *OK* or * >>> Cancel* >>> - After two or more minutes I'll click OK or Cancel and the confirm >>> window closes. But the confirm window of the second timer run is shown. >>> - The window is maximal shown two times (e.g. when I am waiting three or >>> more minutes) >>> >>> It should be not very difficult to use a workaround, but I want to >>> understand the correct working of the GWT timer. >>> >>> Thank you! >>> -Danny >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
