I have an ASP page split up with three different frames. One of the frames
takes long time to load (due to long running function) and the first two are
loaded before the most important one - loaded about 5 seconds later.
Is there a way to synchronize the output so that the other frames wait for
the last one to load?

Re: Synchronize framed page output to browser? by Ray

Ray
Wed Aug 11 18:25:42 CDT 2004

You could use client side code as such:

Main frame page:
<frameset rows="100,*">
<frame name="topFrame" src="/pleaseWaitWhileLoading.htm">
<frameset cols="100,*">
<frame name="leftFrame" src="/pleaseWaitWhileLoading.htm">
<frame name="mainFrame" src="/yourPageThatIsSlow.asp">
</frameset>
</frameset>

And then in yourPageThatIsSlow.asp do:

<html>
...
<%
'''your code
%>
<script type="text/javascript">
parent.topFrame.location.replace('/whatPageShouldReallyBeInTheTopFrame.asp')
;
parent.leftFrame.location.replace('/whatPageShouldReallyBeInTheLeftFrame.asp
');
</script>

Ray at home



"Art" <Art@discussions.microsoft.com> wrote in message
news:FC3D33DE-FD21-427A-8F9A-2FC56014339C@microsoft.com...
> I have an ASP page split up with three different frames. One of the frames
> takes long time to load (due to long running function) and the first two
are
> loaded before the most important one - loaded about 5 seconds later.
> Is there a way to synchronize the output so that the other frames wait for
> the last one to load?