February 11th, 2008

cat with many words


Note 2: if you are sending a request to a piece of code that will return XML, rather than to a static XML file, you must set some response headers if your page is to work in Internet Explorer in addition to Mozilla. If you do not set header Content-Type: application/xml, IE will throw a JavaScript error, ‘Object Expected’, after the line where you try to access an XML element. If you do not set header Cache-Control: no-cache the browser will cache the response and never re-submit the request, making debugging “challenging.”

Непрочтение этого абзаца на developer.mozilla.org сулит вам дни счастливого дебага в осле! Приятного аппетита.