Home > Programming, Software > Migrating jQuery 1.4.x to jQuery 1.6.x

Migrating jQuery 1.4.x to jQuery 1.6.x

When migrating from jQuery 1.4.x to jQuery 1.6.x you have to consider some changes.
I guess you can find all of them anywhere on the jQuery Blog but when you don’t have the time or the patience to read all of the posts you have to try and test it by yourself.

I found out some of the changes the hard way when I migrated the Matterhorn Engage UI. Here is a list (mainly for me to remember them):

  • .attr and .prop
    • in jQuery 1.6 the handling of DOM attributes and DOM properties is split apart into separate methods
    • .attr first checks if the attribute is explicitly written in the HTML code, after that it looks at the object created by the HTML tag, and inspects its object property
    • .prop sets or gets properties on DOM elements
    • see jQuery 1.6 released
  • for ajax calls there are no options like ‘yourAjaxCall.onreadystatechange = anyFunction;’ any more, you have to use ‘success’, ‘error’, etc. inside your ajax-request
  • the function generation from jsonp ajax-requests now contains underscores (‘_’), so you have to adapt your save patterns on server side

Related sites:

To be continued…

Advertisement
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.