Hi,
I am showing a "Loading, please wait.." message along with an animated
gif.
For this I have added following in my host page.
<div id="loading"><img src="loading.gif"/> Loading Please wait..</div>
I have used http://www.ajaxload.info/ to generate a simple loading
GIF image.
And onModuleLoad() I am am removing this <div> before adding actual
components into Rool Panel. This is working fine.
The issue is that the animation of the GIF is not displayed. I found
out that when javascript code in mymodule.nocache.js starts running in
browser, the animation of GIF stops.
I even wrote following HTML page to test this. When I click on Click
me button, I just run some big for loop in javascript. When the
javascript is running, the animation of GIF is stopped.
<script>
function bigJS()
{
for (var i=1; i<=10000000; i++);
alert('done');
}
</script>
<BODY>
<div id="loading"><img src="loading.gif"/> Loading Please wait..</div>
<input id="btnClick" name="btnClick" type="button" value="Click me!"
onclick="bigJS()" />
</BODY>
Anyone know how to display the animated GIF properly?
--
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.