I was having similar problems today and it turned out I had blank lines in my php script, before I had <?php.
http://ie2.php.net/header has an example that uses <html> on the line before <?php, mine was similar but blank instead of <html>. You can check the content type returned by hitting CTRL+I in Firefox, though it will be pretty apparant if it is the correct XML. B. On Aug 23, 3:07 pm, Arun Kumar <[EMAIL PROTECTED]> wrote: > No solutions??? > > On Aug 17, 2:42 pm, Arun Kumar <[EMAIL PROTECTED]> > wrote: > > > A small correction, > > > If I set that header, it is not working in FF. If I remove that > > header, it is not working in IE 7. > > > Than I added another parameter to my ajax request, dataType: "text/ > > xml". This time, If I set the header, it is working in FF and not > > working in IE 7 and If I remove that header, then it is not working in > > FF and working in IE 7. > > > On Aug 17, 2:21 pm,ArunKumar<[EMAIL PROTECTED]> > > wrote: > > > > If I( don't set thatheader, Ajax requests are not working in FF. If I > > > set thisheader, Ajax request is not working in IE. > > > > On Aug 15, 12:22 am, Bil Corry <[EMAIL PROTECTED]> wrote: > > > > >ArunKumarwrote on 8/14/2008 1:08 PM: > > > > > > I am using PHP as server side language and I am sending Ajax request > > > > > to that page and if I set > > > > >header("Content-Type: text/xml"); > > > > > Then, in jQuery, I am not able to parse the response object even > > > > > though I use dataType: "xml". > > > > > > If I remove theheader, then it is working in Ajax( I am able to use > > > > > the response in jQuery). But if I remove thatheaderfunction, then > > > > > browser is displaying that XML as a text file(When accessed using > > > > > normal HTTP protocol, not Ajax). > > > > > If nothing else, you can detect if the request contains the > > > > "X-Requested-With"header, if so, that's jQuery so don't use text/xml, > > > > otherwise, you can use the text/xml content type. > > > > > - Bil