Advertisement

09.05.2003 at 06:02AM PDT, ID: 20730048
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

4.2

DHTML Page doesn't refresh (NOT Reload question!)  objects ...

Asked by deadstone_270668 in JavaScript

Tags: ,

Hi all,

I have a page that calls a script to send an XML doc (using XML HTTP Request) with a systemid to a backend service page that uses the systemid in a query on the db, then retrieves data from a log table, and sends the data back in the XML response back to the client - where it is loaded dynamically into a table.

So, all well and good, works fine.

My problem is that there is no refresh of the window after the user has clicked 'LOad Data' and before the 'SendRequest' is run

Thing is, I have a nice 'Please Wait' div all set up and looking nice, but even though I call 'divPleaseWait.style.display = "block"' before the code to run the xml send, it still only displays AFTER the xml response has come back from the server.

Here is my code:
window.divPleaseWait.style.display = "block";
      
// set up the screen, put the elements in the right places!
window.document.body.style.cursor="wait";
window.status="importing...";

window.history.forward(1);
divPleaseWait.style.left = ((document.body.offsetWidth -
divPleaseWait.offsetWidth) / 2);
                              
divPleaseWait.style.top = ((document.body.offsetHeight -
divPleaseWait.offsetHeight) / 2);

divFinished.style.left = ((document.body.offsetWidth -
divFinished.offsetWidth) / 3);
                              
divFinished.style.top = ((document.body.offsetHeight -
divFinished.offsetHeight) / 2);

var oFundsData, sFundsDataVal
        
// create a new XML Doc object  
var oXML = new ActiveXObject("Microsoft.XMLDOM");
 
// set props
oXML.async=false;
oXML.resolveExternals = false;
        
// create the root element
var oRoot=oXML.appendChild(oXML.createElement("Request"));
        
// set the attribute to determine which table to update
oRoot.setAttribute("system", sSystem);
      
Isloaded = SendRequest(oXML)
      
if (Isloaded==true)
      {
      alert("Import successful");
      }
      else
      {
      alert("Import failed")
      }
                  
      document.all("divPleaseWait").style.display = "none";
      document.all("divFinished").style.display = "none";
      window.document.body.style.cursor="default";
      window.status="Ready";
      }
      
      }

<<< END CODE <<<<

Here is the <BODY> code with the divPleaseWait in it...
>>> CODE>>>
<BODY>
      
<table border="0" cellspacing=1 width="100%">
  <tr>
      <td width="100%">
      <p style="MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px" align="left"
     ><b><font color="#00309c" face="Tahoma" size="5">Import
      </font></b><b><font color="#00309c" face="Tahoma" size="5">System Data</font></b></p></td>
  </tr>
</table>
<hr color="#00309c" size="1">

<DIV ID = LoadBtns name = "LoadBtns" style= "DISPLAY: block">

<table id = tblBtns name = "tblBtns">
      <tr>
            <td>
                  <BUTTON id=btnLoadiFASTData name=btnLoadiFASTData ACCESSKEY="i" onclick='ShowBusy("iFAST")'>Load <u>i</u>FAST Data</BUTTON>      
            </td>      
            <td>
                  <BUTTON id=btnLoadMCHData  name=btnLoadMCHData ACCESSKEY="M" onclick='ShowBusy("MCH")'>Load <u>M</u>CH Data</BUTTON>      
            </td>
            </tr>

</table>

<DIV LANGUAGE=javascript id=divPleaseWait name = "divPleaseWait"
style="BORDER-RIGHT: buttonhighlight 2px outset; BORDER-TOP: buttonhighlight 2px outset; DISPLAY:
      none; FONT-SIZE: 8pt; Z-INDEX: 4; FILTER: progid:DXImageTransform.Microsoft.dropshadow(OffX    
        =2, OffY=2, Color='gray', Positive='true'); LEFT: 342px; BORDER-LEFT: buttonhighlight 2px outset;
      WIDTH: 350px; CURSOR: default; BORDER-BOTTOM: buttonhighlight 2px outset; FONT-FAMILY: Tahoma; POSITION: absolute; TOP: 260px; BACKGROUND-COLOR: buttonface" align=center>

      <DIV LANGUAGE=javascript onselectstart= "window.event.returnValue=false;" style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 3px; CURSOR:
            default; COLOR: captiontext; PADDING-TOP: 3px; BORDER-BOTTOM: white 2px
            groove; BACKGROUND-COLOR: activecaption"  id  = divImportCaption name="divImportCaption">
            Importing Selected Data
      </DIV>

      <DIV LANGUAGE=javascript onselectstart= "window.event.returnValue=false;" style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; CURSOR: default; PADDING-TOP: 5px">
            Please wait while the data is imported.
      </DIV>
      <DIV LANGUAGE=javascript onselectstart= "window.event.returnValue=false;" style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; CURSOR: default; PADDING-TOP: 5px">
            This may take several seconds.
      </DIV>
      <DIV LANGUAGE=javascript onselectstart= "window.event.returnValue=false;" style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px;
            CURSOR: default; PADDING-TOP: 5px">
            <marquee width="50%" bgcolor=white > Please be patient... </marquee>
      </DIV>
      
</DIV>

<DIV style="DISPLAY: none" name="divResults" id="divResults">
            <TABLE id = tblImpResults name = "tbtImpResults" width="100%" border=0 style="CURSOR: default; BORDER-BOTTOM: #6699ff 1px outset">
            <font face="Tahoma" size="1">
              <tr class="TableTitle" >
                  <TH noWrap Style = "BORDER-BOTTOM: #6699ff 1px outset" width="15%">LoadTime</TD>
                  <TH noWrap Style = "BORDER-BOTTOM: #6699ff 1px outset" width="40%">SourceFile</TD>
                  <TH noWrap Style = "BORDER-BOTTOM: #6699ff 1px outset" width="20%">Comment</TD>
                  <TH noWrap Style = "BORDER-BOTTOM: #6699ff 1px outset" width="7%">Rows Read</TD>
                  <TH noWrap Style = "BORDER-BOTTOM: #6699ff 1px outset" width="8%">Rows Loaded</TD>
                  <TH noWrap Style = "BORDER-BOTTOM: #6699ff 1px outset" width="10%">Rows Archived</TD>              
              </tr></TR></TR></TR>
             
            </TABLE>
            </DIV>
      

</DIV></FONT>


</BODY>
<<< END CODE <<<

so, why does IE wait till the response comes back from the server before updating the page, even though I set the divPleaseWait style.display to "block" BEFORE any other code runs?

Even the cursor doesn't change till AFTER the function call has completed!

It's really strange, as the status bar text changes, but the divPleaseWaiy remains hidden, till after the results table has displayed.

thx for any help or tips

PhilipStart Free Trial
[+][-]09.05.2003 at 06:26AM PDT, ID: 9295645

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 06:28AM PDT, ID: 9295668

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 06:44AM PDT, ID: 9295788

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 06:58AM PDT, ID: 9295876

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 07:01AM PDT, ID: 9295898

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 07:05AM PDT, ID: 9295937

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 07:29AM PDT, ID: 9296115

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 07:35AM PDT, ID: 9296166

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 07:46AM PDT, ID: 9296255

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 07:50AM PDT, ID: 9296292

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 07:55AM PDT, ID: 9296338

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 07:58AM PDT, ID: 9296366

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 08:03AM PDT, ID: 9296419

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 08:11AM PDT, ID: 9296486

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 08:26AM PDT, ID: 9296610

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 08:47AM PDT, ID: 9296782

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 08:48AM PDT, ID: 9296791

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.05.2003 at 08:51AM PDT, ID: 9296809

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2003 at 02:11PM PDT, ID: 9298908

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.06.2003 at 01:58PM PDT, ID: 9302556

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.06.2003 at 02:06PM PDT, ID: 9302602

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: javascript, refresh
Sign Up Now!
Solution Provided By: makc
Participating Experts: 4
Solution Grade: A
 
 
[+][-]09.06.2003 at 02:07PM PDT, ID: 9302612

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2003 at 03:37AM PDT, ID: 9308462

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.08.2003 at 03:51AM PDT, ID: 9308510

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2003 at 04:32AM PDT, ID: 9308659

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2003 at 04:35AM PDT, ID: 9308682

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2003 at 05:36AM PDT, ID: 9309007

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32