felipex
22 Feb 2007, 9:54 AM
Hi everybody!
Why the implementation of the function YAHOO.util.Connect.setHeader was modified to
if(YAHOO.util.Connect){
YAHOO.util.Connect.setHeader = function(o){
for(var prop in this._http_header){
if(typeof this._http_header[prop] != 'function'){
o.conn.setRequestHeader(prop, this._http_header[prop]);
}
}
delete this._http_header;
this._http_header = {};
this._has_http_headers = false;
};
}
because of this modification I had problems with some calls from YAHOO.util.Connect.asyncRequest.
When i cut this function from yui-ext.js my problems were gone.
Another thing:
In this new implementation why to use
_http_header and not
_http_headers?
thanks for answers!
Why the implementation of the function YAHOO.util.Connect.setHeader was modified to
if(YAHOO.util.Connect){
YAHOO.util.Connect.setHeader = function(o){
for(var prop in this._http_header){
if(typeof this._http_header[prop] != 'function'){
o.conn.setRequestHeader(prop, this._http_header[prop]);
}
}
delete this._http_header;
this._http_header = {};
this._has_http_headers = false;
};
}
because of this modification I had problems with some calls from YAHOO.util.Connect.asyncRequest.
When i cut this function from yui-ext.js my problems were gone.
Another thing:
In this new implementation why to use
_http_header and not
_http_headers?
thanks for answers!