Re: trying to loop an xml page from ajax
s_m_b wrote:
is there another way for IE to see the existance of the node list, or do
I need to approach the looping some other way?
Is responseXML in IE populated? Make sure the server sends the XML with
HTTP response header Content-Type: application/xml (or text/xml) to
ensure that IE/MSXML populate the responseXML property.
With IE you can also check responseXML.parseError.errorCode to test
whether IE had any problems parsing the XML the server sent.
--
Martin Honnen
http://JavaScript.FAQTs.com/
.
Relevant Pages
- Re: Recordset.Open Causes Lockup/Timeout
... Thanks for the tip on the responseXML property. ... // when the request comes from the same server ... This problem is only occuring on my web host's server where direct machine access is ... This works great for server side xml requests ... (microsoft.public.inetserver.asp.db) - Re: Problem with XmlHttpRequest (0x80040111 / nsIXMLHttpRequest.status) on several configurations
... overrideMimeType and call it with 'text/xml' as the argument if your server side application sends XML that you want to parsed into responseXML but for some reasons can't set the HTTP response ... Calling http_request.overrideMimeType('text/xml') then is kind of nonsense and harmful as XMLHttpRequest now expects XML and tries to parse the response body as XML to build responseXML. ... That is a wasteful attempt if you send text/html so consider removing that overrideMimeType call. ... (comp.lang.javascript) - Re: Using Response XML
... tried taking tags that are returned from the responseXML and appending ... the properties of the elements from the responsexml. ... If you are using XML, you can create an XML document object and then ... the HTML document, I don't think you can just grab XML DOM elements ... (comp.lang.javascript) - Re: How to set timeout for an XMLHTTP request?
... infinite loop could bringing the server down. ... var Params = xmls.serializeToString; ... responseXML object if the response does not specify ... Where responseXML is empty you should check the http_request.status ... (microsoft.public.scripting.jscript) - Re: XML senden/emfangen
... So du dann auch XML empfangen willst und per einer .NET XML-API (wie XmlDocument, XmlTextReader) verarbeiten willst, musst du halt nur am Ende z.b. ... XmlDocument responseXML = new XmlDocument; ... (microsoft.public.de.german.entwickler.dotnet.csharp) |
|