Table refresh problem

T

Tadic

Hi everyone,
I've been trying to solve this by my own, but no luck (maybe due to my
5 days exeperence in html/vbscript). I have a *.hta application
supervising some 20 computers over the network (basic ping). User has
a table showing the computers running and some processes on each comp.
This page is refreshing every 30 sec. I do some pinging and process
monitoring and it takes some time to finish. Using the results of
script the table is updated.
Table is static as I now all the computers in my network.

To give you the idea it's something like:

<META HTTP-EQUIV="refresh" CONTENT="30;file:///myApp.hta">. Scripts
are
<html>
<head>

<TITLE>Supervision</TITLE>

<hta:application
' skip code<script language ="vbscript">
Dim array1(20,5) 'store values for page update
sub onstart
call pingcomps
end sub

sub pingcomps
'pinging comps update arrays....
' skip code
Call updatePage()
end sub

sub updatePage()
'using arrays to update table with something like
Table1.rows(i).cells(j).innerHTML = "<img src=images/red.gif
alt=unavailable>"
'skip code
End sub
</SCRIPT>
</HEAD>

<body ONLOAD="onstart" ...>

<CENTER>
<TABLE BORDER=0><TR><TD>

<TABLE ID = "Table1" ...

' this is where I'm drawing my static table
' skip code

</TABLE>
</BODY>
</HTML>


This is working,althought I think the design is strange, but there is
a problem in page refreshing. Page will start to load, my 'ping'
script is started, and I have quite an ugly page (partially loaded)
for some 10 secs. Since it refreshes every 30 secs, most of the time
user has this blank page with no information on it. I was thinking of
"Loading informations..." page, but it will be displayed almost all
the time.
So is it possible to call my script and only after it returns call
refresh page? If so can you please show me how (some code). If not,
any other solutions? And if this is not the right NG please point me
to the right one.
Thx in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,949
Members
47,500
Latest member
ArianneJsb

Latest Threads

Top