Link to home
Start Free TrialLog in
Avatar of stephentrice
stephentrice

asked on

ASP Progress Indicator

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!
Avatar of CtrlAltDl
CtrlAltDl
Flag of United States of America image

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"
     </script>

Then you forward them to the new page:
     <script Language="JavaScript">
            location.replace("myNewPage.asp")
     <script>
Avatar of stephentrice
stephentrice

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of CtrlAltDl
CtrlAltDl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks You! It works great!