Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


ASP Progress Indicator

Posted on 2006-04-19
Medium Priority
Last Modified: 2006-11-18
I am connection to a web service using  Server.CreateObject("MSXML2.ServerXMLHTTP"). I need a way to show a graphic or text while this process is taking place. Something like "Please wait while your request is being processed". Is this possible in ASP? Thanks!
Question by:stephentrice
  • 2
  • 2
LVL 14

Expert Comment

ID: 16490204
Ok first you display your progress indicator:
    <img name="progressMeter" src="../images/aniProgressMeter.gif" alt="Please wait."><br></p>
Then do your XML crap.

Then you replace the progress indicator with this:
     <script Language="JavaScript">
         document.progressMeter.src = "./images/blank.gif"

Then you forward them to the new page:
     <script Language="JavaScript">

Author Comment

ID: 16490312
The problem I am seeing with this solution is the server process the entire script before it returns anything to the browser. So it does not try and display the graphic untill the XML request has been sent and received.
LVL 14

Accepted Solution

CtrlAltDl earned 2000 total points
ID: 16490331
I forgot to mention you'll need to turn off the Response.Buffer at the beginning of the ASP page:
     Response.Buffer = False

Author Comment

ID: 16490572
Thanks You! It works great!

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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/…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…

580 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