Firefox, text/xml and readviewentries

I have been browsing these forums for a solution. I am using xmlhttprequest to get a view (using readviewentries) which I then display on the browser for embedded views.

This works fine in IE6 and Opera but not FF.

A brief squint at the header reveals that the Content-type returned by Domino is set as text/html and not text/xml which is preventing firefox getting the content via the xmlhttprequest responseXML property.

Does anyone know how to tweak domino so that the correct content type header is sent?

Many thanks

Adam.

Subject: firefox, text/xml and readviewentries

If you render the view through a form, you can try setting the Form properties - Content Type to Other and enter text/xml as the type.

Subject: RE: firefox, text/xml and readviewentries

Domino 7 (or at least 7.0.3 I should say) does return a content type of text/xml. Not sure if this might be available in the latest 6.5.x releases as well.

Subject: RE: firefox, text/xml and readviewentries

I’m pretty darned sure that 6.x had the right content-type as well. Firefox has always been fussy about MIME types, even going back to 0.8 (and the name Phoenix) if the requesting page was HTML 4.01 or better (even in quirks mode). Not so with HTML 3.2, though, so R5’s incorrect MIME type for ReadViewEntries would also work in Phoenix/Firebird/Firefox.

Subject: SOLVED: firefox, text/xml and readviewentries

In order to force FF to interpret the document as xml insert the line:

if(xDoc.overrideMimeType) { xDoc.overrideMimeType(‘text/xml’);}

before the

xDoc.open(“GET”,sUrl,false);

xDoc.send(null);

And it all functions beautifully!