The day before yesterday,
John Rezig (February 24)
announced in a jQuery blog about the release of the next version of jQuery, which received the
number 1.5.1. As always, two versions of the source code are available for downloading: the
ordinary one (212 kilobytes)
and the mini version (reduced to 29 kilobytes if processed with gzip).
Rezig listed
forty-two major changes that were made to this version of jQuery. Basically, they boil down to degeneration, getting rid of bugs. But there is one visible change -
jQuery.ajax () added three new settings:
1) Configuring
isLocal controls awareness of the protocol used as a local one, that is, it allows you to supplement the auto-recognition of jQuery, which currently considers only those resources that are loaded via the “file”,
“* -extension” protocols (for example, “chrome-extension”). ,
see bug 8152 )
and “widget”.')
2) Setting
mimeType allows you to override the
MIME type used in XHR.
3) Configuring
xhrFields allows
you to transfer an array of required settings (for each specifying a fieldName and fieldValue, that is, the name and value of a field) to an XHR object. Let's say you can give
withCredentials the value
true if you need to request a server from another domain and send login, password and cookies there
( MDC has an example of
JS code without jQuery for Firefox - you can figure out what this setting is achieved).
This version
(jQuery 1.5.1) is the first to support IE9 in this way: all the problems that previously existed in working with IE9 are either fixed in jQuery or transferred to IE9 developers to fix them in IE9.