The display won't refresh until you release the JS thread. You need to delay your loading operation using DeferredCommand so that the message can be displayed while the loading occurs.
On Tue, Nov 11, 2008 at 2:07 PM, ben <[EMAIL PROTECTED]> wrote: > > Hello all, > > I have a loading dialog that uses a div tag that shows while my app > loads. I call a javascript function that updates the innerHTML of the > div as I go along in the html page doing various stuff. It works > great. I decided that I wanted to get fancier and have my GWT > Application update the text while it's doing it's various loading of > the application portions. I created a native call to my javascript > function, but the text does not update. > > The problem is, I believe, it's not forcing a redraw. If I put a > window.alert in, then the text redraws correctly. This means the > function calls all work as they should, it's just the text needs some > action to occur so it can redraw itself. Is there anything I can do > to for the loading dialog to redraw from with in GWT? > > FYI the loading dialog is modeled after the GWT-Ext showcase load. > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
