On 24 mar, 03:15, denis56 <[email protected]> wrote:
> His,
>
> does anyone know if there are performance implications with having 2
> timers running on a single page?
>
> I am designing an application where one timer does background fetching
> of updates (2s) while the other (0.5s) updates gui elements to achieve
> blinking behavior. It is especially noticeable in IE, that the
> background updates take longer than 2s and that the browser is
> jittering and fails to respond immediately. Has anyone encountered
> something like that. Maybe having 2 timers is too much, have no idea.

Timers in javascript just queue events that are processed by a single
event loop in a single thread, so they're not accurate (depends on
what you do when the timer fires and on other events you're handling
at the same time). John Resig made a pretty complete description:
http://ejohn.org/blog/how-javascript-timers-work/ (GWT's schedule() is
javascript's setTimeout and GWT's scheduleRepeating() is javascript's
setInterval).

> Also, do GWT UI components understand ISO-8859-1 encoding? I cannot
> display non-ASCII letters in a label, however, the data coming from a
> RPC invocation displays properly. strange.

Where is your latin-1 text coming from? GWT is JavaScript, where
strings are made up of characters, not bytes (i.e. encoding from/to
utf-8 or latin-1 or some other encoding is done elsewhere (in the
browser)).

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to