Log in

View Full Version : compatible issues between jquery 1.3.2 and jquery 1.2.6



fizzy_iza
12-18-2009, 05:47 PM
hai all
im fizzy, newbie here.

i had a problem regarding jquery. currently, i use jquery 1.2.6 for my website. i would like to add on featuredcontentglider to my website.

reference:
http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm

the problem arise, when i put the <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

some features inside my website, not functioning after i used it.

so my concern here, could be, jquery 1.2.6 run the featured content glider..
and i also would like to have some opinion/comment regarding this issues?

thank you

jscheuer1
12-18-2009, 06:28 PM
Most likely not. This is a pitfall of using a library that updates. Unless you keep your version current and update your code that relies upon it to use the newest version, newer code for the most recent update of the library may at times present such a challenge.

Fortunately, jQuery can be run in noConflict mode, even in extreme noConflict mode. This may or may not help in this case. If it does, one would convert the glider to extreme noConflict mode and place its version of jQuery and its main script before the other version of jQuery and its scripts that use it in the head of the page. Then it might work out.

But a better solution would be to update your other code to work with the latest jQuery. The latest version is more efficient, and you would need only the one library. Usually this is only a matter of the syntax used for a few (often only one) of the selectors. Many scripts may use either version. It can include other things though.

See:

http://docs.jquery.com/Release:jQuery_1.3#Upgrading

for the rundown on changes to jQuery in versions 1.3x.

There may be updates for some of the jQuery 1.2x version scripts you are using, check their home/demo pages.