Forums

ASP

This topic is locked

Showing picture while a form is being validated.

Posted 22 Mar 2001 20:51:49
1
has voted
22 Mar 2001 20:51:49 Bo Johansen posted:
Hi all coders :-)

I made a server side form validator to ensure that everybody would be validate before sending them an email to verify there subscription. I know client side is much faster and all that, but what if java is turned off, but anyway when the form is being validatet i would like to show a little animated .gif picture "we are processing your info........please wait".
But i cant figure out how to get the validation page to first throw the picture up on the screen and then go on and validate the form......it wont preform any action befor the whole page has been loadet and then its to late, cause the form is then validatet.
I am currently using this : form.asp -> load.asp -> validate.asp ->load.asp or confirm.asp

form.asp

<HTML...........
<Form..........
Etc. Etc. Etc.
</..........

load.asp

<HTML>
<HEAD>
</HEAD>
<BODY ONLOAD="location.href='validate.asp?<%=request.servervariables("QUERY_STRING" %>';">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td>
<table width="r%" border="0" cellspacing="0" cellpadding="0" height="r%" align="center">
<tr>
<td><img src="checking_info.gif" width="349" height="125"></td>
</tr>
</table>
</td>
</tr>
</table>
<IFRAME SRC="validate.asp?<%=request.servervariables("QUERY_STRING" %>" WIDTH="0" HEIGHT="0"><ILAYER SRC="search.asp?<%=request.servervariables("QUERY_STRING" %>" WIDTH="0" HEIGHT="0"></ILAYER></IFRAME>
</BODY>
</HTML>

validate.asp
cheking the data and redirecting to apropiate page.....form.asp or confirm.asp

form.asp <-> Confirm.asp

Is there any way to get the validate.asp page to first load the image with pure VBScript code and then go on and check the form?


Replies

Replied 22 Mar 2001 21:03:11
22 Mar 2001 21:03:11 Bo Johansen replied:
Ps. This would also be great to use when a user search through the product DB or any other DB for that case.


Replied 23 Mar 2001 01:07:51
23 Mar 2001 01:07:51 Waldo Smeets replied:
To be honest, the solution you have chosem now seems to be the best to me. When someone thinks it can be done in an other way I would love to know it.

Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A Dreamweaver, Ultradev and Fireworks recourse site for developers
by developers.
------------------------------------------
Replied 23 Mar 2001 23:58:17
23 Mar 2001 23:58:17 Bo Johansen replied:
Year the solution is ok, but im loosing a lot of browsers with this method.

This is what supports IFrame-Ilayer

IE 4 = IFRAME -> Up
NS 4 = ILAYER
NS 6 = IFRAME

I cannot belive that there is no way to actually get .asp to first throw a bit of HTML to the client and then process the rest of the page after that, with out java getting includet in any way!.........read something about response.flush but i cant seem to find any support on response.flush.......what dos it mean and what can it doo?

Any ideas?



Replied 24 Mar 2001 00:18:29
24 Mar 2001 00:18:29 Bo Johansen replied:
Ahhhhhhh i maybe im getting there.

response.buffer = true
Script
Script
Script
Response.flush
Continue script
Continue script
Continue script
</script>

ill test it tommorw and let you know :-)


Reply to this topic