gerry@outofchaos.com
Mar 13th 2008, 1:54 pm
Hi all - This is my first post here. Any help on this issue that has been puzzling me for hours would be greatly appreciated!!
Please see the very short attached HTML/Javascript code. This code just represents the concept behind what I'm doing, but it works to represent my real-life issue. In real life I'm revealing a particular div message in the browser after a Javascript event, then I'm doing a long process, then after the process I'm showing a different message. I've represented that long interim process here using a loop.
The problem is that the first message in red never shows. If I do an alert box immediately after the red box specification then it does show, indicating that the display change only flushes out to the browser if Javascript has something else to output.
Any tips on how I can circumvent this issue and get the first red box to show?
Many thanks!
Please see the very short attached HTML/Javascript code. This code just represents the concept behind what I'm doing, but it works to represent my real-life issue. In real life I'm revealing a particular div message in the browser after a Javascript event, then I'm doing a long process, then after the process I'm showing a different message. I've represented that long interim process here using a loop.
The problem is that the first message in red never shows. If I do an alert box immediately after the red box specification then it does show, indicating that the display change only flushes out to the browser if Javascript has something else to output.
Any tips on how I can circumvent this issue and get the first red box to show?
Many thanks!