p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Displaying animated image while server is validating a form.


Message #1 by "Bo Johansen" <p2p.wrox.com@f...> on Thu, 22 Mar 2001 21:29:11
That could wery well be an option, as it would allow many more people to se
the animated gif.

The Iframe and Ilayer im using now is not supported by so many browsers, 
but
if i put some earli age java script togheter so many more browsers would se
it.

Thanks for that idea Mickster :-)


----- Original Message -----
From: "Mick" <mmcdonald@g...>
To: "How To" <proasp_howto@p...>
Sent: Friday, March 23, 2001 3:15 AM
Subject: RE: Displaying animated image while server is validating a form.


> Sure
>
> <PsuedoCode>
> <%
> response.buffer = true
> 'send the page header and javascript redirect code
> response.write("<html><head>")
> response.write("<script language="javascript">")
> response.write("function PageLoad(){")
> response.write("//replace URL with your redirect")
> response.write("window.location=url;")
> response.write("}")
> response.write("</script></head>")
> response.write("<body onLoad=" & chr(34) & "PageLoad()" & chr(34) & ">")
> response.write("<img src="animated.gif">")
> 'send the page so far
> response.flush
> 'process the form input here
> for each thing in request.form
> 'do something
> next
> 'send the rest of the page to close out the html
> response.write("</body></html>")
> response.end
> %>
> </PsuedoCode>
>
> While this may need some tweaking and relies on client side javascript
being
> enabled, it should work.
> Additionaly, you could add a meta refresh tag to the page in the header 
as
> well to redirect non-javascript enabled browsers, which will only 
redirect
> when the page loads as well.
>
> Mickster



  Return to Index