Hi,
I have an asp page which basically takes some data from a previous
page form and inserts the data to my database and then does a
re-direct to:
Response.Redire ct "JS_Create. asp"
On this page is just an animated logo saying something like 'Loading
Data ....'
On this asp page JS_Create.asp I have another re-direct handled by a
timer to go to JobSheet.asp.
The idea is that the user enters data into the form, if the form is
validated correctly, they are transferred to the next page which tells
them the data is loading. They are held there for say 3 to 5 seconds
and then transferred to the final page JobSheet.asp.
The code I have on JS_Create.asp for the timed re-direct is:
_______________ ____________
<%
Sub Delay(DelaySeco nds)
SecCount = 0
Sec2 = 0
While SecCount < DelaySeconds + 1
Sec1 = Second(Time())
If Sec1 <> Sec2 Then
Sec2 = Second(Time())
SecCount = SecCount + 1
End If
Wend
End Sub
%>
later in the page I have:
<%
Delay(5)
Response.Redire ct "JobSheet.a sp"
%>
_______________ _____
The problem is that once the form is submitted, the page does not
change to JS_Create.asp, it just sits there on the form for the 3 to 5
seconds and then jumps immediately to JobSheet.asp. I want
JS_Create.asp to be displayed first.
Where should I place the asp or change it for this to occur ?
Appreciate your help.
David