Check if a document is loaded in ASP

V

vanisathish

I am using an ASP to update some table contents on my HTML page by
calling the ASP page using hidden frames.

But the ASP script seem to get called even before the HTML FRAME is
loaded ie.(operlayout_preload.html). Is there a way to check in ASP
that it should start running only after the html is loaded completely
below is the html code that contains the HTML and the ASP(hidden)
<HTML>
<HEAD>
</HEAD>
<frameset rows = "80%,*">
<frame src="operlayout_preload.html" name="content">
<frame src="operlayout_xml.asp" name="Refreshpage">
</frameset>
</HTML>

Thanks
 
M

McKirahan

I am using an ASP to update some table contents on my HTML page by
calling the ASP page using hidden frames.

But the ASP script seem to get called even before the HTML FRAME is
loaded ie.(operlayout_preload.html). Is there a way to check in ASP
that it should start running only after the html is loaded completely
below is the html code that contains the HTML and the ASP(hidden)
<HTML>
<HEAD>
</HEAD>
<frameset rows = "80%,*">
<frame src="operlayout_preload.html" name="content">
<frame src="operlayout_xml.asp" name="Refreshpage">
</frameset>
</HTML>

Thanks

"... ASP ... should start running only after the html is loaded ..."

You'll have to contact Microsoft and have them change it as
ASP is server-side which executes before client-side!
 
P

Patrice

Looks like a design problem. I don't really understand what you do. You
could start with an empty "Refreshpage" src and have the html page triggers
the ASP page loading.

You may want also to explain what you are trying to do as there is perhaps a
better way (my understanding would be that the ASP page updates the HTML
page but that you have an old copy as it runs after the previous HTML page
is loaded ?????). It would be likely better to reorganize the control flow
if this is the case (using an asp page that updates the HTML page and then
renders the FRAMESET with the ASP page doing what it needs except the HTM
page refreshing)...
 
V

vanisathish

I basically want to update some html tables from an ASP page
periodically. The problem is since i have put the html page and the asp
page together in another HTML page as shown above. i am having problem.


What would be the correct way to update a elements in HTML page from
another ASP page. I want the updation to be done at the ASP itself to
minimise the processing done by the client side.
 
P

Patrice

I'm not still sure about your current architecture. Is this :
- a static htm page that is written server side by an ASP page ?
- is this ASP page the one that is in the frameset ?

Why about using an ASP page that renders the correct HTML markup instead of
using a static HTM file that needs to be updated ?
 

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

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,377
Latest member
MableYocum

Latest Threads

Top