Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xmlHTTP.responseText performance

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 9/1/2004 1:09:00 PM

WF wrote:


> In the ASP.Net application I develop, I use a javascript code to extract
> datas to an excel file.
> The code is like that :
> xmlhttp = createobject(MSXML2.XMLHTTP)
> xmlhttp.open("get","myurl.aspx?test=data.....",false)
> xmlhttp.send()
> var result = xmlhttp.responseText
> ....
> So, it works perfectly till few days ago. Now, the process for retrieving
> response is long, about one minute.
> Has anybody some ideas about my problem ?
> I believe that it is due to an update on my PC

If you are using Msxml2.XMLHTTP on the client you should better use an 
asynchronous request e.g.
   var httpRequest = new ActiveXObject('Msxml2.XMLHTTP');
   httpRequest.open('GET', 'myurl.aspx?test=data', true);
   httpRequest.onreadystatechange = function (evt) {
     if (httpRequest.readyState == 4) {
        // use httpRequest.responseText or responseXML here
     }
   }
   httpRequest.send(null);

If you are using MSXML on the server in classic ASP you should better 
use Msxml2.ServerXMLHTTP where you can then set timeouts as needed.

If you are really using ASP.NET and program on the server you should use 
classes from the .NET framework and not MSXML.




-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent