Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

showing a page before the script as been ran

Status
Not open for further replies.

krappleby025

Programmer
Sep 6, 2001
347
NL
Hi all, i have a problem, i have a form that is submitted, which enteres info into a database, and sends emails out to the prospective members, However, the database only allows the email to be entered once in the entire database, well because of the length of time it takes for the emails to be sent, some people click on the submit button several times, this causes an error after the first attempt... Is their anyway to make the asp page, display before the script is finished, to say somethign like processing you request..

thanks i look forwward to yoiur responces
 
[tt]Why does the email processing page take so long? it should not and what you want to do is after they submit the form and the email page been processed have the email page re-direct to another page.


Here's what I user on my email pages

At the top of the page
<%
dim MyString
MyString = &quot;MyRedirected_Page.asp&quot;'mystring
%>



At the bottom of the page
%>
<a name=&quot;ovhref&quot; href=&quot;<%=MyString%>&quot;></a>
<script language=&quot;JavaScript&quot;>
ovhref.click()
%>
[tt]
&quot;Beware of the most dangerous person in business - the articulate incompetent.&quot;
[/tt]

banana.gif
rockband.gif
banana.gif

 
Place this in your Head section

<script language=&quot;javaScript&quot;> var processing = window.open(&quot;pageload.htm&quot;,&quot;processing&quot;,&quot;width=200,height=200&quot;) </script>

and this in your body section

<body onload=&quot;processing.close()&quot;>

Change pageload.htm to a file that displays the msg etc like a scrolling &quot;Page Loading&quot; etc
Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
im sorry but the above does not work either, the page just will not show..
 
[tt]Are talking to me or GaryC123 ??
[tt]
&quot;Beware of the most dangerous person in business - the articulate incompetent.&quot;
[/tt]

banana.gif
rockband.gif
banana.gif

 
well the above script should work fine, and in correlation with Tony the email processing shouldn't really take that long unless you're sending to dozens of people.
ASP is processed by the server and nothing will happen on the client side per se until that has finished processing. The java script i put above sends a small window to the client prior to the asp processing (assuming you put it prior to the asp script) Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top