matdumsa@gmail.com wrote:
Type attribute is required, though by default browsers will typically
fallback to javascript.
<script type = "text/javascript">
Quote:
document.all("loading").style.display = '';
[some processing that takes CPU]
document.all("loading").style.display = 'none';
</script>
I would say try to avoid the use of document.all. Introduced in IE4,
you could say it's a propietary property though some browsers do
support it. Using document.getElementById method is more widely
supported.
The main problem with your code statement is that you're trying to
show/hide your "loading" message all in one execution. Break them out
into separate functions and you should be fine. For example:
....
toggleLoading();
[your CPU intensive process]
toggleLoading();
....
Quote:
When I run this code, it seems to "freeze" the browser thought not
showing the little loading square as it should while processing... If
there anything like document.all("loading").render ???
There is no render property.