I have an ASP page that runs a bit slow so I need to display a 'processing you request' type message when the code begins to execute and then clear that and replace it with the desired information after the script is finished. I don't know how to do this properly.
I tried something like this but the 'processing' page did not display until all the code had finished running and then I ended up with it and the 'finished' page stacked on top of each other.
Can anyone tell me how to display an interim message before the code finishes and then replace it at the end?
I tried something like this but the 'processing' page did not display until all the code had finished running and then I ended up with it and the 'finished' page stacked on top of each other.
Code:
<% @LANGUAGE = VBScript %>
<%
'a little code is here
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<p>Processing your request</p>
</body>
</html>
<%
'here is the bulk of the code
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<p>Finished!</p>
</body>
</html>
Can anyone tell me how to display an interim message before the code finishes and then replace it at the end?