source: TI12-security/trunk/NDGSecurity/python/Tests/openid-provider/op/op/public/js/yui/connection/README @ 7080

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/Tests/openid-provider/op/op/public/js/yui/connection/README@7080
Revision 7080, 9.4 KB checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
RevLine 
[4105]1Connection Manager Release Notes
2
3*** version 2.4.0 ***
4
5* [FIXED] SF1804153.  Transactions initialized with setForm() now properly clear
6the POST data field after each transaction.
7
8* The callback object can accept a new member, cache, defined with a boolean
9value.  If set to false (e.g., var callback = { cache:false };), a timestamp
10will be appended to the URI to override HTTP GET caching.  This timestamp value
11will appear as rnd=timestamp in the request querystring.
12
13* Custom Events startEvent, completeEvent, and abortEvent now receive
14callback.argument, if defined, in addition to the transaction ID.  Each Custom
15Event's function handler receives two arguments -- the event type as the first
16argument, and an array as the second argument.  The first element in the array
17is the transaction ID, and the second element are any arguments defined in the
18callback object.
19
20*** version 2.3.1 ***
21
22* setDefaultPostHeader() can now be overloaded with a boolean, string, or
23number.  By default, POST transactions send the following Content-Type header:
24'application/x-www-form-urlencoded; charset=UTF-8'.
25
26A custom Content-Type header can now be set by passing its value to
27setDefaultPostHeader().
28
29* HTML form submissions now send a Content-Type header of "application/x-www-
30form-urlencoded", omitting the charset=UTF-8 value.
31
32* setDefaultXhrHeader() can now be overloaded with a boolean, string, or number.
33By default, all transactions send a custom header of "X-Requested-
34With:XMLHttpRequest".
35
36This default header value can be overridden by passing the desired value as an
37argument to setDefaultPostHeader().
38
39* The file upload iframe's event listener is now explicitly removed before the
40iframe is destroyed.
41
42*** version 2.3.0 ***
43
44* Custom Events are introduced in Connection Manager.  These events -- for a
45non-file upload transaction -- are:
46
47   * startEvent
48   * completeEvent
49   * successEvent
50   * failureEvent
51   * abortEvent
52
53For transactions involving file upload with an HTML form, the events are:
54
55   * startEvent
56   * completeEvent
57   * uploadEvent
58   * abortEvent
59
60* Event utility is a now Connection Manager dependency.
61
62* abort() and isCallInProgress() are now functional for file upload
63transactions.
64
65* NOTE: The native XHR implementation in Safari 2.0.4 has been confirmed to leak
66memory.
67
68* UPDATE: The XHR implementation in Safari 3.0 beta(and WebKit builds) now
69appear to handle HTTP 204 responses correctly.  XHR in Opera, as of 9.21, still
70does not produce a valid HTTP status code with an HTTP 204 response.
71
72*** version 2.2.2 ***
73
74* No revisions.
75
76*** version 2.2.1 ***
77
78* setForm() will include the correct name-value of the HTML Submit button
79clicked where multiple HTML Submit button options are present in an HTML form.
80To enable this feature, include the Event utility source file as a dependency
81before the Connection Manager source file.
82
83* The XHR implementation in IE6 and IE7, Opera, and Safari do not properly
84handle an HTTP 204 response.  IE6/7 will instead return a Win error 1223.
85handleTransactionResponse() will treat 1223 as an HTTP 204, and route the
86response appropriately to the success callback.  createResponseObject() will
87normalize the response object's status and statusText values to 204 and "No
88Content" respectively.  However, no headers are returned.
89
90Opera and Safari provide no discernable response with HTTP 204(e.g., response
91object's properties are undefined).  This response will trigger the failure
92callback with a status of 0 and statusText of "communication failure".
93
94*** version 2.2.0 ***
95
96* initHeader() now accepts a third argument as a boolean.  When set to true,
97this specific header will automatically be sent with each transaction.
98Otherwise, the header will be set and sent for the specific transaction only.
99Example: initHeader('X-YUI-State','Beta', true); all transactions will send this
100header.
101   * resetDefaultHeaders() will clear the default headers collection.
102
103* All Connection Mananger transactions will broadcast the header: "X-Requested-
104With: XMLHttpRequest".
105   * This can be turned off: YAHOO.util.Connect.setDefaultXhrHeader(false);
106
107* The HTTP method argument in asyncRequest is now case-insensitive.
108
109* uploadFile() will now correctly handle the absence of a callback object,
110allowing the transaction to complete silently.
111
112*** version 0.12.2 ***
113
114* The Opera/Connection Manager concurrent object condition, described in version
1150.12.0, no longer tests applies for Opera, version 9.10.
116
117*** version 0.12.1 ***
118
119* connection-debug.js corrected and synchronized with connection.js.  Code
120inconsistencies between the two files existed in 0.12.0.
121
122*** version 0.12.0 ***
123
124* When uploading files via setForm() and asyncRequest includes a POST data
125argument, appendPostData() will create hidden input fields for each postData
126label/value and append each field to the form object.
127
128* setForm() returns the assembled label/value string of the parsed HTML form
129fields.
130
131* NOTE: Opera 9.02 does not allow for more than 12 concurrent Connection Manager
132objects.
133
134The following example creates 12 requests in a loop:
135for(var n=0; n<=12; i++){
136  conn[n] = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
137}
138
139If n > 13, Opera 9.02 will crash.  Connection manager objects count n must be <=
14012 at all times.  This condition was not present in Opera version 9.01.
141
142This condition does not apply to other A-Grade browsers (
143http://developer.yahoo.com/yui/articles/gbs/gbs_browser-chart.html)
144
145*** version 0.11.3 ***
146
147* YUI Event dependency for file uploading is now optional.
148
149* uploadFile() now sets unique IDs for each file upload transaction to prevent
150iframe collisions with parallel uploads.
151
152* The callback object now has property responseXML to provide support for file
153upload transactions that return an XML document.
154
155* setForm() will verify if a select option value attribute is present and use
156its value, including empty string, before using the text node value.
157
158* Modified polling mechanism in handleReadyState() and
159handleTransactionResponse() to prevent infinite polling if JavaScript errors
160occur in the user-defined callback.
161
162* createFrame() will now accept a boolean argument of true to set the frame
163source to "javascript:false" to prevent IE from throwing security warnings in an
164HTTPS environment.
165
166* setHeader() now enumerates through the _http_header object using
167hasOwnProperty() to prevent collisions with members added to Object via
168prototype.
169
170* If using setForm() and asyncRequest includes a POST data argument, the data
171will be concatenated to the HTML form POST message.
172
173*** version 0.11.2 ***
174
175* No revisions.
176
177*** version 0.11.1 ***
178
179* uploadFile() now verifies the existence of callback.upload before invoking
180callback, with or without object scope.
181
182*** version 0.11.0 ***
183
184* Each transaction can be defined with a timeout threshold, in milliseconds,
185through the callback object.  If the threshold is reached, and the transaction
186hasn't yet completed, the transaction will call abort().
187
188* abort() will now accept a callback object as the second argument.  The
189failure callback will receive a response object to indicate the transaction was
190aborted.
191
192* setForm() will now support file uploads by setting the second argument to
193true (e.g., YAHOO.util.Connect.setForm(formObject, true).  File upload does not
194use the callback success or failure handler.  Instead, it uses a new callback
195object handler: upload.
196
197* HTML form submit will no longer submit form fields without a defined name
198attribute.
199
200* The default POST header of 'Content-Type','application/x-www-form-urlencoded'
201can be overridden by calling setDefaultPostHeader(false).  This
202will remove the default header from non-HTML form, POST submissions.
203
204* setHeader() now enumerates through the _http_header object with
205propertyIsEnumerable to prevent collisions with members added to Object via
206prototype.
207
208*** version 0.10.0 ***
209
210* handleTransactionResponse() now treats the full HTTP 2xx range as a success
211case, instead of just HTTP 200.
212
213* To accommodate multiple field values in Mozilla/Firefox, multiple initHeader
214calls with the same label will now result in the values concatenated to a
215comma- delimited string value.
216Example:
217Setting Content-Type:'application/x-www-form-urlencoded' and Content-
218Type:'text/xml' will result in Content-Type:'application/x-www-form-urlencoded,
219text/xml'.
220
221* Default polling interval lowered to 50ms.
222
223* YAHOO.util.Connect.setPollingInterval() will allow you to set a polling
224interval -- in milliseconds -- to override the default value.
225
226* YAHOO.util.Connect.getResponseHeader[headerLabel] now supported as a response
227object property to provide symmetry with the native XHR object's property.
228Example:
229YAHOO.util.Connect.getResponseHeader['Content-Length'] will return the value
230for the Content-Length header, if the header is available.
231
232* YAHOO.util.Connect.allResponseHeaders property renamed to
233getAllResponseHeaders to provide symmetry with the native XHR object's
234property.
235
236* YAHOO.util.Connect.setForm() now supports HTTP GET as well as HTTP POST.
237
238* YAHOO.util.Connect.setForm() now accepts an HTML form object as well as its
239name attribute value.
240
241* YAHOO.util.Connect.setForm() will not submit HTML form fields that are
242disabled or do not have a name attribute value.
243
244* [FIXED] Response exceptions result in infinite callback loop in
245Mozilla/Firefox.
246
247* [FIXED] YAHOO.util.Connect.abort() now properly clears polling interval.
248
249* [FIXED] isCallInProgress() now verifies whether XHR instance still exists,
250and returns false if the connection object is no longer available.
251
252*** version 0.9.0 ***
253
254* Initial release
255
Note: See TracBrowser for help on using the repository browser.