On Fri, Feb 24, 2006 at 02:02:51AM +0100, Tony Stevens wrote:
} Gregory S. wrote:
} > Er, what’s wrong with response.responseXML? A parsed XML tree is
} > already available from the XMLHttpRequest object.
} > } Hope this helps!
} > } Daniel
} > --Greg
} When I tried this (on FireFox IIRC) the responseXML property was null.
} I read somewhere that this can happen if the mime type isn’t set to
} “text/xml”, and I’ve concluded that prototype doesn’t have a way of
} setting this.
} I’d love to be able to rely on .responseXML - do you know how to
} it will be set?
Well, the MIME type needs to be set properly. I haven’t touched the
prototype library, but my understanding is that it is solely on the
the MIME type.
If I am wrong and prototype is on the Rails side as well., modify it.
have the source, after all. Make sure it is setting the MIME type.
} Tony S.