Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

"Please Wait" graphic and text

Posted on 2007-03-21
4
Medium Priority
?
1,193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
WMIF earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

618 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