Ok I have an asp (vbscript) page that it used to show server status.
it works like this:
It all works fine but because several servers are pinged it takes a while (10-20 seconds) to load the page.
Anyone know how I can add a progress/loading bar either for each <img> tag while it pings the server or just the whole page if I can do one for each ping/img? Would It be client or server side?
edit: My aim is to have the page load instantly even if the pings aren't complete. The loading/progress bar should be displayed then replaced by the green/red icons when pinging is done.
Thanks for any help
it works like this:
Code:
<img src="<%=checkip("[I]some ip[/I]")%>">
.
.
function CheckIP(sIP)
[I]some code that pings the IP[/I]
if ping is successful then
return url to green icon
if unsuccessful then
return url to red icon
end if
end function
It all works fine but because several servers are pinged it takes a while (10-20 seconds) to load the page.
Anyone know how I can add a progress/loading bar either for each <img> tag while it pings the server or just the whole page if I can do one for each ping/img? Would It be client or server side?
edit: My aim is to have the page load instantly even if the pings aren't complete. The loading/progress bar should be displayed then replaced by the green/red icons when pinging is done.
Thanks for any help
Last edited: