ASP Loading Page

Is there a way to display a loading page in ASP? Many travel websites have this sort of a page while the website is checking the availability of flights. Our websites have many cases where such a page would be valuable:

A) While uploading a picture
B) While re-directing to one of our partner shops
C) For heavy search queries

I am looking at two possible scenarios:

A) A fake one where you just display a loading page for 3 seconds before redirecting to the actual page. This would just be a simple page asking our visitors for their patience. How can I do this while maintaining the submitted form data?

B) A real one where the ASP script is executing on the background and will display the results page once the script is finished?

Of course B) has the preference but perhaps it is not possible in ASP. Thanks!

Philip

pgkooijmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pgkooijmanAuthor Commented:
Read through the first bunch of solutions... not what i am looking for. Do not want any popups and my scenario is not about returning records and changing a table using javascript. Recap:

A) Simply delaying a redirect for 3 seconds and showing an in between page.
B) Displaying an in between page until an ASP script finishes executing, regardless whether it is a file upload, heavy query or whatever. Basically: Start Script & Dispay processing page, execute scripts, redirect to results page when done.

Let me know if these are possible and how. Thanks!

Phil
0
pashikCommented:
make it as function and output in page before ur code.

Response.Write("<DIV STYLE=\"position:absolute;");
Response.Write("z-index:5;top:40%;left:35%;\" align=\"center\">");
Response.Write("<img src=\"someimage.gif\" width=\"250\" height=\"20\">")
Response.Write("<div id='mydiv' >")
Response.Write("Loading...")
Response.Write("</div>")
Response.Write(new string(' ', 260))
Response.Write("</DIV>")
Response.Flush()
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kevp75Commented:
i use a similar situation when uploading pics to a site.  I guess it could also be used for loading a page, etc...
anyways, here it is:
<div exp='yes' style="display:none;">
  <center><br /><br /><br /><br /><br /><br />Please wait while we upload your picture.<br /><br />
    <strong>NOTE:</strong>This window will close when the upload is completed. <br /><br /><br /><br /><br />
  </center>
</div>
<!--The above is what will be displayed while the image is being uploaded-->

<div exp='yes' style="display; ">
rest of page here, put the form, db content, etc...
<input type="submit" name="Submit" value="UPLOAD THIS PIC" onclick="exp('div','exp');"><!--The submit button, which fires the displaying of the Please wait......-->
</div>
<!--The above is what will be displayed before hitting submit on the form-->
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.