473,554 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE7 without responseXML?

I downloaded IE7 and tried out the native XMLHttpRequest support. I
think there is an object in IE7 called "XMLHttpRequest " but I ask me
why it is called "XML"HttpReques t.
I made a request to an XML file (correctly sent with text/xml header)
but IE7 returns the same shit as IE 5.5/6 when I use responseXML, an
XML construct with a node "xml", which contains nothing.

Firefox and Opera and Netscape 7.1 (yeah,) do it correctly. What's goin
on with Microsoft. Will they continue with IE tragedy?

http://dropie.com

Sep 22 '06 #1
14 6061
If I want every browser to support "XML"HttpReques t, what do I have to
do:

I have to test if my browser has native XMLHttpRequest (not in IE5.5/6
and possibly 7 (can be switched off)) or activated ActiveX (Ie5.5/6)
and I have to be sure not to use IE because IE up to 7 isn't XML ready.
So you have to find another solution to read XML. One is to make a
request via Iframe and PHP file that reads an XML file and sends it
back as text/html. Now you have to use xmljs
(http://xmljs.sourceforge.net) to parse an XML tree from the
responseText.

We have to wait some years until 99% of the browsers will be Ajax
ready. If we don't want to wait and don't want to find a fallback
solution, we should stop talking about XML;)

greetz

Andi, Ulm, Germany

Sep 22 '06 #2
Firefox and Opera and Netscape 7.1 (yeah,) do it correctly. What's goin
on with Microsoft. Will they continue with IE tragedy?
Why don't they just buy/use/steal Firefox? The people on intranets can
just continue with IE 6.

Peter

Sep 23 '06 #3
pe**********@gm ail.com wrote:
>Firefox and Opera and Netscape 7.1 (yeah,) do it
correctly. What's goin on with Microsoft. Will
they continue with IE tragedy?

Why don't they just buy/use/steal Firefox? The people
on intranets can just continue with IE 6.
That is a long way from necessary as IE 7 does not have any problems
with responseXML. Programmer error is the most likely explanation for
comments here, and saying something doesn't work is a long way from
demonstrating that it doesn't.

Richard.
Sep 24 '06 #4

Richard Cornford wrote:
pe**********@gm ail.com wrote:
Firefox and Opera and Netscape 7.1 (yeah,) do it
correctly. What's goin on with Microsoft. Will
they continue with IE tragedy?
Why don't they just buy/use/steal Firefox? The people
on intranets can just continue with IE 6.

That is a long way from necessary as IE 7 does not have any problems
with responseXML. Programmer error is the most likely explanation for
comments here, and saying something doesn't work is a long way from
demonstrating that it doesn't.

Richard.
I think IE7 HAS some problems, I installed both the standalone and the
normal version (that replaces IE6), and they behave like IE5 and 6,
responseText is available, responseXML is not available. I don't know
why but XML is not supported. Is it possible that there have been
problems with my installation?

Sep 26 '06 #5
See a demo: http://aka-fotos.de/research/uniajax/__index.php
It doesn't work in IE 7, but in Firefox, Opera and Netscape.

Sep 26 '06 #6
webEater said the following on 9/26/2006 4:44 PM:
See a demo: http://aka-fotos.de/research/uniajax/__index.php
It doesn't work in IE 7, but in Firefox, Opera and Netscape.
I see, close, to the same thing in IE and Firefox, what is that page
supposed to do?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 26 '06 #7

Randy Webb wrote:
webEater said the following on 9/26/2006 4:44 PM:
See a demo: http://aka-fotos.de/research/uniajax/__index.php
It doesn't work in IE 7, but in Firefox, Opera and Netscape.

I see, close, to the same thing in IE and Firefox, what is that page
supposed to do?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Hi Randy,

this page is supposed to test XMLHttpRequest in all Browsers that
support it.
In IE 7 you don't see anything of the responseXML, you only see that
the firstChild.node Name is "xml", but this node contains nothing.

I am working on an Ajax framework that will really work in every
browser. That's why I am testing all that shit. It's very hard to do ,)

Sep 26 '06 #8
Hi,

webEater wrote:
Hi Randy,

this page is supposed to test XMLHttpRequest in all Browsers that
support it.
In IE 7 you don't see anything of the responseXML, you only see that
the firstChild.node Name is "xml", but this node contains nothing.

I am working on an Ajax framework that will really work in every
browser. That's why I am testing all that shit. It's very hard to do ,)
The following code works in IE7:

Client:

var oHttp = null;
if ( window.XMLHttpR equest )
{
oHttp = new window.XMLHttpR equest();
}
else
{
if ( window.ActiveXO bject )
{
oHttp = new window.ActiveXO bject( "Microsoft.XMLH TTP" );
}
else
{
throw "UNSUPPORTE D PLATFORM";
}
}

[...]

oHttp.onreadyst atechange = function()
{
var bDummy = false;
if ( oHttp.readyStat e == gslb.CAjaxPox.H TTP_READY_STATE )
{
var oResult = new gslb.CAjaxPox.C Result( oHttp );
oHttp = null;
fnCallback( oResult );
}
}
oHttp.send( null );

[with]

gslb.CAjaxPox.C Result = function( oHttp )
{
this.m_docXml = oHttp.responseX ML;
this.m_strText = oHttp.responseT ext;

this.m_iStatus = oHttp.status;
this.m_strStatu s = oHttp.statusTex t;
}

As you see, I am using responseXML, and it works in IE7. The server side
code looks like this (C#):

[Creating XML document, and then:]

context.Respons e.ContentType = "text/xml; charset=utf-8";
docResponse.Sav e( new XmlTextWriter( context.Respons e.OutputStream,
context.Request .ContentEncodin g ) );

docResponse is, of course, the XmlDocument.

Note that you *must* set the content type correctly, or else it won't work.

Show your faulty code (client and server), the best idea being putting
the code on a web server somewhere for us to inspect.

Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Sep 27 '06 #9
webEater wrote:
Richard Cornford wrote:
<snip>
>That is a long way from necessary as IE 7 does not have any
problems with responseXML.
<snip>
>
I think IE7 HAS some problems, ...
<snip>

Your thinking IE 7 has a problem is not the same as it having a
problem. At the moment I am working on a web application that uses SOAP
base web services to such an extent that not having responseXML would
be completely obvious (as it would cripple the application). To date
all IE 7 testing has not revealed any problems associated with XML HTTP
requests.

Richard.

Sep 27 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
13834
by: Chris Smith | last post by:
Been banging my head against this one for some time. I'm attempting to use XmlHTTPRequest to read an XML document from the web server and interact with it using the DOM. So far, I've had less than perfect luck with IE. What I've established: - In IE, the responseXML property sometimes returns an empty document. - It always does so when...
2
2920
by: Marco Laponder | last post by:
Hi All, I am using XmlHttpRequest object within Firefox to get a xml document from the servlet. The reponseText is set but the responseXml is null. My Code is: req = new XMLHttpRequest(); req.open('GET', './transform?resource=xul', false); req.send(null);
4
13342
by: Sanjay Dahiya | last post by:
I tried POSTing from XMLHttpRequest, i can get the XML right on server but responseXML from server is coming null. I can see the XML right in responseText. but responseXML is null. responseText to DOM conversion also fails while the XML in responseText seems valid .. -- here is the javascript code for sending --- {...
4
1935
by: Anand | last post by:
The situation is; I receive a response back from the server which i only a part of html code. e.g. a table like <table <tr><td>high</td></tr>........ </table>. In other words, I receive file as a response which has a part of html file. My aim is to replace an existing document node with the new response. If I run the following lines...
3
15282
by: joker | last post by:
Thanks in Advance. I'm trying to find out why my responseXML is empty when the Content-Type for my request is "text/xml". I'm calling into a servlet from a web page on the same domain returning a simple xml stream, but it only shows up under responseText? I'm using IE 6.0. function loadXMLDoc() { alert("running loadXMLDoc"); var url2 =
3
8568
by: Alexander Mikhailian | last post by:
I have an http = new XMLHttpRequest(); that provides me with an http.responseXML. Somewhere deep in the http.responseXML there is a fragment called e.g. mydom that I want to copy with all its children to the document. document.getElementsByTagName('body').innerHTML=mydom; does not work. What should I do? Traverse mydom manually? Look for a...
2
4144
by: ErkA | last post by:
Hello sorry of omy pure english ;) I think, that something wrong is in mozilla *FF 1,5,0,2* I'm trying to parse a xml file http://bazarek.pl/txt/note.xml by XMLHttpRequest method. In IE, Opera everything is OK, but in mozilla if I use responseXML method, the string length more then 4096 is cutted (note that xml is download whole, only...
7
5005
by: KaNos | last post by:
Hello aspx world, I consume a webservice with Javascript functions. But the response is ok and, very strange, document is null. How to resolve this problem thanks ?????? xmlHttpRequest.open("POST", myAddressLocation, false); xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8");...
0
7581
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7506
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8018
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7872
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6123
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5423
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5142
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3545
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
823
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.