• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2504
  • Last Modified:

jQuery 1.7.2 and jQuery 1.7.3

http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js

On closer look of the ....1.7/jquery.min.js of the above. I see it is /*! jQuery v1.7.2 jquery.com | jquery.org/license */. May I ask why it is called jQuery 1.7 rather than jQuery 1.7.2?

I've some features that are require jQuery 1.7.3.

I see on http://jsfiddle.net/ there are jQuery 1.7.2 and next version is jQuery 1.8.0.

On http://jqueryui.com/download for theme that reads:
Version
Select the release version you want to download.

1.8.23
(Stable, for jQuery 1.3.2+)

1.7.3
(Legacy release, for jQuery 1.3.2)


Darn confusing? Can anyone enlighten?

In plain english, can I mix 'n' match with jQuery 1.7.2 and jQuery 1.7.3 by declaring jQuery 1.7?
0
Redscrapbook
Asked:
Redscrapbook
  • 3
  • 2
3 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
'jquery' and 'jqueryui' are two different libraries and 'jqueryui' depends on 'jquery'.  It does not however replace it.
0
 
RedscrapbookAuthor Commented:
Ok Thank you Dave. How about In plain english, can I mix 'n' match with jQuery 1.7.2 and jQuery 1.7.3 by declaring jQuery 1.7?
0
 
Chris StanyonCommented:
When you call a jQuery library from google it will serve the latest branch in that version, so calling 1.7 will serve 1.7.0, 1.7.1, 1.7.2 as they are released. It means you don't have to keep editing your code to update minor versions.

There is no jQuery 1.7.3! The next version after 1.7.2 is 1.8.0 so you can't possible have a requirement for jQuery 1.7.3

It does get slightly confusing with the release number of jQuery and jQueryUI. As Dave has already said, they are completely different frameworks and the version numbers have no correlation to one another.

Basically, if you are using jQuery > 1.3.2, then you need to use jQueryUI version 1.8.23. If your version of jQuery is really old (why!) then you need to use the jQueryUI version 1.7.3

Hope that makes sense :)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
RedscrapbookAuthor Commented:
Calling 1.7 will serve 1.7.0, 1.7.1, 1.7.2 as they are released. It means you don't have to keep editing your code to update minor versions.

In relation to iPhone app (Phonegap / xcode) of the HTML5 that is where jQuery will end up in. I intend to have jQuery in a local folder.

How would that work  by calling 1.7 will serve 1.7.0, 1.7.1, 1.7.2 as they are released. on a local folder instead of calling this way: http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js
0
 
Chris StanyonCommented:
If you're calling it from a local folder, you download the correct version from jQuery. Once that's downloaded it doesn't matter what you call it, it will be whatever version you downloaded. If you download jQuery version 1.7.2 and save it on your computer as jQuery99, it will still be version 1.7.2 when you load it.

The way google operates is to map the latest versions to shortcuts so you don't have to keep editing your code. Using the Google CDN will always load the latest version in the specific branch, so:

jquery/1.7/jquery.min.js //load the latest 1.7 branch = 1.7.2
jquery/1/jquery.min.js //load the latest 1 branch = 1.8.0
0
 
RedscrapbookAuthor Commented:
Thank you Chris for the replies. I apprecaited it. It saved me a lot of time. Thank you Dave for key as it is imperative to know this ...'jquery' and 'jqueryui' are two different libraries and 'jqueryui' depends on 'jquery'.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now