-
22 Feb 2007 9:54 AM #1
Why modify YAHOO.util.Connect.setHeader?
Why modify YAHOO.util.Connect.setHeader?
Hi everybody!
Why the implementation of the function YAHOO.util.Connect.setHeader was modified to
because of this modification I had problems with some calls from YAHOO.util.Connect.asyncRequest.Code: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; }; }
When i cut this function from yui-ext.js my problems were gone.
Another thing:
In this new implementation why to useand not_http_header?_http_headers
thanks for answers!
-
23 Feb 2007 5:48 AM #2
BUMP
I would also like an answer to this question...
felipex i thank you for this post because i was having the same problem and I'm glad you figured out what was causing it.
-
23 Feb 2007 2:52 PM #3
Did you look at the source (before comments stripped)? It clearly states why it was added.
YAHOO.util.Connect was the only thing stopping Ext from working in Safari 1.3 so that workaround was put in. In YUI's latest release they addressed the issue, so the 1.0 release of Ext won't have that workaround in it.
-
27 Feb 2007 1:07 PM #4
OK Jack!
I understand now. But i look at the source but i did not see any comment about this.
I downloaded the YUI-Ext from http://www.jackslocum.com/build/download.php. (yui-ext 0.33)
thanks.
P.S.:
I am using this tool from only 2 months ago. I am liking it very much.
thanks again.
Similar Threads
-
YAHOO.util.Connect.asyncRequest Alternative
By manugoel2003 in forum Community DiscussionReplies: 15Last Post: 24 May 2007, 5:42 AM -
JSUnit and YAHOO.util.Connect.asyncRequest.
By rad_nq in forum Community DiscussionReplies: 0Last Post: 26 Mar 2007, 10:00 AM -
doubts using YAHOO.util.Connect?
By franklt69 in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 9 Mar 2007, 5:23 AM -
one problem on using YAHOO.util.Connect.asyncRequest()
By kd21 in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 15 Feb 2007, 4:56 AM -
YAHOO.util.Connect questions.....
By genius551v in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 21 Nov 2006, 10:49 AM


Reply With Quote

