Hello,
Yes that does work but, what I want to do is that functionality for
display that warning for asyncronic content not only in the onload
event, for example an
<a href="javascript
:;" onclick="putnewcontent();"go </a>
<script>
funtion putnewcontent ()
{
showloading();
xmlhttprequest();
hideloading();
}
</script>
something like that, as gmail might do.
but that code does not execute in order like I thought, I think it
might have something to do with the xmlhttprequest priority execution
or something like that.
If you are able to, test it. It might not happen to you,if you do so
please let me know.
Thanks
On 4 dic, 12:52, mingchin...@gmail.com wrote:
uoL <wmar...@gmail.comwrote:
The code it's something like
show div
httpxmlrequest
hide div
but the result is:
first, the browser freezes for a second
second the content is displayed
third the div is displayed
fourth the div dissapear
when the logical thing to happen should be:
div is displayed
the browser freezes for a second
the content is displayed
the div dissapear.I don't know how you initialize the page. Usually, I add a function for
for body on load and control everything in this on load function. For
example, put your httpxmlrequest in on load function, once finish this
request, go to a callback function for display content and then control
the div to be hidden.
Use this way should be ok.
--
Ming-Chin Chen