ASP Progress Indicator

Posted on 2006-04-19
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
    LVL 14

    Expert Comment

    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

    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

    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

    Thanks You! It works great!

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    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: and…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 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

    24 Experts available now in Live!

    Get 1:1 Help Now