473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Response.AppendHeader and XMLHttpReqest

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.readyStat e == 4) {
var patMenu =
request.prototype.http_content_response.getRespons eHeader('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

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

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"P4trykx" wrote:
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.readyStat e == 4) {
var patMenu =
request.prototype.http_content_response.getRespons eHeader('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

Feb 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Claus Pedersen | last post by:
We are building a webapplication but keep hitting a wall: The user can download files but we need to check if they are authorized to do so. We do this with a download-page and use the following...
2
by: hoenes1 | last post by:
I've got an aspx-Page "SendFile.aspx" which is called by a Link on "ShowListOfFiles.aspx" and sends the file in the OnLoad Eventhandler. The filename to download is stored in a Session variable....
2
by: David Union | last post by:
Hi. I'm posting this here because I don't know exactly what the best group is. This is for an aspx page with Visual Basic as the code-behind page. I am doing very simple code... in the middle...
11
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as...
0
by: Timo | last post by:
After reading KB234067, I am trying to replace this: <META http-equiv="CACHE-CONTROL" content="NO-CACHE"> <META http-equiv="Pragma" content="no-cache"> <META http-equiv="Expires" content="0"> ...
0
by: Enzo | last post by:
Hello, I am trying to add items to the ServerVariables Collection for some custom processing. In the past this needed to be done with an ISAPI filter. I am told now that I can do this with a...
3
by: MJP | last post by:
I have a button which kicks off the generation of a report after which the file will be downloaded. The report generation can take a long time, so client side onclick event of the button also...
2
by: Michael D. Ober | last post by:
When I single step through the code below, it sends back the PDF file that is retrieved in the line fm.GetAccountPDF(...). When I run without single stepping, I get the master page for this page. ...
0
by: elliott | last post by:
Hello, I'm trying to use a C# IHttpModule to install a Response filter however IIS keeps removing the Content-Encoding header from the response; but all the other headers I set stay intact. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.