This is a browser bug. M$ have made it a "feature" of IE that it does the thinking for you.
They don't believe you want to update the display until after it has finished everything else. I had the same thing on a non-dynapi project that I was doing for a client a few years ago. I found that if I loaded an image into a JS Image object and tried to display it and then load another into the same object, IE would never get around to displaying it. In this case, I was trying to refresh an image to display new stats. I was using the onload event of the Image object and IE kept putting of the page update until after it had loaded the new image and because it kept putting of the update, the image just kept downloading and never appearing. I found that by using the onload event of the HTML Image object, I was able to get IE to rethink it's position. This time it downloaded the image and updated the display accordingly. I have found that timeouts are useful for getting code to wait it's turn, but does little to get it to jump the queue. >From: "ToddnMara" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: [Dynapi-Help] drawing while script is running >Date: Thu, 31 Jan 2002 22:02:26 -0500 > >I'd like to be able to draw the current state (of layers) in the middle of >script execution. >Usually things are drawn when a script ends. Scripts run further via >events, and timeOuts() (or threads) >For example using setText() on a label, is not shown till the function >returns. >However, if I put an 'alert()' call, the text is shown, then the script >continues. > >Anyone know how to do this trick? > >THanks, >TOdd. > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help