1 Connection Manager Release Notes
5 * The Opera/Connection Manager concurrent object condition, described in version
6 0.12.0, no longer tests applies for Opera, version 9.10.
10 * connection-debug.js corrected and synchronized with connection.js. Code
11 inconsistencies between the two files existed in 0.12.0.
13 *** version 0.12.0 ***
15 * When uploading files via setForm() and asyncRequest includes a POST data
16 argument, appendPostData() will create hidden input fields for each postData
17 label/value and append each field to the form object.
19 * setForm() returns the assembled label/value string of the parsed HTML form
22 * NOTE: Opera 9.02 does not allow for more than 12 concurrent Connection Manager
25 The following example creates 12 requests in a loop:
26 for(var n=0; n<=12; i++){
27 conn[n] = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
30 If n > 13, Opera 9.02 will crash. Connection manager objects count n must be <=
31 12 at all times. This condition was not present in Opera version 9.01.
33 This condition does not apply to other A-Grade browsers (
34 http://developer.yahoo.com/yui/articles/gbs/gbs_browser-chart.html)
36 *** version 0.11.3 ***
38 * YUI Event dependency for file uploading is now optional.
40 * uploadFile() now sets unique IDs for each file upload transaction to prevent
41 iframe collisions with parallel uploads.
43 * The callback object now has property responseXML to provide support for file
44 upload transactions that return an XML document.
46 * setForm() will verify if a select option value attribute is present and use
47 its value, including empty string, before using the text node value.
49 * Modified polling mechanism in handleReadyState() and
50 handleTransactionResponse() to prevent infinite polling if JavaScript errors
51 occur in the user-defined callback.
53 * createFrame() will now accept a boolean argument of true to set the frame
54 source to "javascript:false" to prevent IE from throwing security warnings in an
57 * setHeader() now enumerates through the _http_header object using
58 hasOwnProperty() to prevent collisions with members added to Object via
61 * If using setForm() and asyncRequest includes a POST data argument, the data
62 will be concatenated to the HTML form POST message.
64 *** version 0.11.2 ***
68 *** version 0.11.1 ***
70 * uploadFile() now verifies the existence of callback.upload before invoking
71 callback, with or without object scope.
73 *** version 0.11.0 ***
75 * Each transaction can be defined with a timeout threshold, in milliseconds,
76 through the callback object. If the threshold is reached, and the transaction
77 hasn't yet completed, the transaction will call abort().
79 * abort() will now accept a callback object as the second argument. The
80 failure callback will receive a response object to indicate the transaction was
83 * setForm() will now support file uploads by setting the second argument to
84 true (e.g., YAHOO.util.Connect.setForm(formObject, true). File upload does not
85 use the callback success or failure handler. Instead, it uses a new callback
86 object handler: upload.
88 * HTML form submit will no longer submit form fields without a defined name
91 * The default POST header of 'Content-Type','application/x-www-form-urlencoded'
92 can be overridden by calling setDefaultPostHeader(false). This
93 will remove the default header from non-HTML form, POST submissions.
95 * setHeader() now enumerates through the _http_header object with
96 propertyIsEnumerable to prevent collisions with members added to Object via
99 *** version 0.10.0 ***
101 * handleTransactionResponse() now treats the full HTTP 2xx range as a success
102 case, instead of just HTTP 200.
104 * To accommodate multiple field values in Mozilla/Firefox, multiple initHeader
105 calls with the same label will now result in the values concatenated to a
106 comma- delimited string value.
108 Setting Content-Type:'application/x-www-form-urlencoded' and Content-
109 Type:'text/xml' will result in Content-Type:'application/x-www-form-urlencoded,
112 * Default polling interval lowered to 50ms.
114 * YAHOO.util.Connect.setPollingInterval() will allow you to set a polling
115 interval -- in milliseconds -- to override the default value.
117 * YAHOO.util.Connect.getResponseHeader[headerLabel] now supported as a response
118 object property to provide symmetry with the native XHR object's property.
120 YAHOO.util.Connect.getResponseHeader['Content-Length'] will return the value
121 for the Content-Length header, if the header is available.
123 * YAHOO.util.Connect.allResponseHeaders property renamed to
124 getAllResponseHeaders to provide symmetry with the native XHR object's
127 * YAHOO.util.Connect.setForm() now supports HTTP GET as well as HTTP POST.
129 * YAHOO.util.Connect.setForm() now accepts an HTML form object as well as its
130 name attribute value.
132 * YAHOO.util.Connect.setForm() will not submit HTML form fields that are
133 disabled or do not have a name attribute value.
135 * [FIXED] Response exceptions result in infinite callback loop in
138 * [FIXED] YAHOO.util.Connect.abort() now properly clears polling interval.
140 * [FIXED] isCallInProgress() now verifies whether XHR instance still exists,
141 and returns false if the connection object is no longer available.
143 *** version 0.9.0 ***