Solved

"Please Wait" graphic and text

Posted on 2007-03-21
4
1,153 Views
Last Modified: 2010-07-27
I have an ASP that roughly works like this:

if the URL request string ends in "/"
...
else if it does not end in "/" then:
  clear page by response flush and show wait graphic and text by response write
  download file via ftp component server-to-server
  reponse redirect to second asp, passing variables in request string
end if

Everything works as expected, except the please wait graphic/text is not shown until after the ftp component finishes downloading the file.  If I remove the ftp session code below the response.flush/response.write, the graphic and text is shown without delay.

I appreciate your assistance.
0
Comment
Question by:ddrudik
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
WMIF earned 500 total points
ID: 18768592
the problem is that response.redirect is supposed to be used only when nothing else has been written to the page.  it may work sometimes, but it is not designed to work that way.  the better way to do this would be to write your graphics and text and flush.  then do your download, and then response.write a small javascript function that loads the next page.  you may possibly need to flush again after writing this, im not sure on that.  give it a shot.

<script language="javacsript">
window.location = "nextpage.asp"
</script>
0
 
LVL 27

Author Comment

by:ddrudik
ID: 18768740
Although that suggestion didn't work, I suspect you are partially correct in that the redirect also is failing after a perform response.write before the redirect.  I have read the many posts regarding buffering etc. but nothing seemed to be the solution in my case.
0
 
LVL 22

Expert Comment

by:WMIF
ID: 18781093
so what is happening?
0
 
LVL 27

Author Comment

by:ddrudik
ID: 18782123
I went the Javascript route using code from another source.  I will accept your answer to close out the question.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now