Response.AppendHeader and XMLHttpReqest

P

P4trykx

Hello
I devlop custom content menu using my own implementation of AJAX.
In a page code I use Response.AppendHeader("myMenu", "OK"); to add
information to header of the response. Then I read the response using
XMLHttpRequest.
request.prototype.http_content_response is a XMLHttpRequest.

[...]
if (request.prototype.http_content_response.readyState == 4) {
var patMenu =
request.prototype.http_content_response.getResponseHeader('myMenu');
[...]

This return "OK" in IE but I get null in Firefox and Opera. If I check
the headers using getAllResponseHeaders() there is only one element
and it's not myMenu.

Is there something different in FF and Opera and the way they handle
headers ?

Patryk
 
G

Guest

"Custom" Response headers are not fully supported. You need to find a
different way to identify that "it's a menu object".
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top