Guys,
I have a strange problem. I have an ASP page that accesses a database before populating a form with the data. What I want to be able to do is output a message to the browser telling the user that their input is being processed. Then when all the data has been retrieved the form is created and sent to the browser.
I just started simple and have the following at the top of the page:
<%
Option EXPLICIT
Response.Buffer = True
%>
<HTML>
<HEAD>
<TITLE>Client Area - Order Tracking</TITLE>
<HEAD>
<script language="JavaScript" src="trackorder.js"></script>
</HEAD>
<BODY BGCOLOR="#CCCCCC">
Page is loading.....please be patient<BR>
<%
Response.Flush
%>
My page then works on and when all the processing is complete I do a response.end. (I know this will leave the text above on the screen but I know what to do about that).
The problem is that when I click on the link to open this page, it waits until all the processing is complete before it outputs my "please wait" message and the complete form. However, if I then refresh the page it outputs my "please wait" message and then when the processing is complete it outputs the form.
So why doesn't it work on the initial load when it works on a refresh. All advice greatly appreciated. Mise Le Meas,
Mighty
I have a strange problem. I have an ASP page that accesses a database before populating a form with the data. What I want to be able to do is output a message to the browser telling the user that their input is being processed. Then when all the data has been retrieved the form is created and sent to the browser.
I just started simple and have the following at the top of the page:
<%
Option EXPLICIT
Response.Buffer = True
%>
<HTML>
<HEAD>
<TITLE>Client Area - Order Tracking</TITLE>
<HEAD>
<script language="JavaScript" src="trackorder.js"></script>
</HEAD>
<BODY BGCOLOR="#CCCCCC">
Page is loading.....please be patient<BR>
<%
Response.Flush
%>
My page then works on and when all the processing is complete I do a response.end. (I know this will leave the text above on the screen but I know what to do about that).
The problem is that when I click on the link to open this page, it waits until all the processing is complete before it outputs my "please wait" message and the complete form. However, if I then refresh the page it outputs my "please wait" message and then when the processing is complete it outputs the form.
So why doesn't it work on the initial load when it works on a refresh. All advice greatly appreciated. Mise Le Meas,
Mighty