I have the a function which creates a table of search
results from a paramater passed from the page Request as
shown below..

<%
GetSearches(unescape(Request("serialNumber")))
%>

Is there a way to detect when this function has finished
execution as i want to page a page loader on the page
until all the HTML is build and ready for rendering?

I have the page loader in a div so when the above function
finishes i would like to disable or hide it via
Javascript. That bit is fine it's just the how to send a
call to the Javascript so the DIV can be hidden is the
problem!!

Thanks!

Re: Detecting when a called function has finsihed by TomB

TomB
Thu Nov 20 15:57:01 CST 2003

<%
Response.flush

GetSearches(unescapte(Request("serialNumber")))
%>
<script>
//Your script to hide the div, and display whatever
</script>
<%
Response.flush
%>
"Kevin" <anonymous@discussions.microsoft.com> wrote in message
news:0d1c01c3af6a$110c9fa0$a301280a@phx.gbl...
> I have the a function which creates a table of search
> results from a paramater passed from the page Request as
> shown below..
>
> <%
> GetSearches(unescape(Request("serialNumber")))
> %>
>
> Is there a way to detect when this function has finished
> execution as i want to page a page loader on the page
> until all the HTML is build and ready for rendering?
>
> I have the page loader in a div so when the above function
> finishes i would like to disable or hide it via
> Javascript. That bit is fine it's just the how to send a
> call to the Javascript so the DIV can be hidden is the
> problem!!
>
> Thanks!