Link to home
Start Free TrialLog in
Avatar of sandshakimi
sandshakimiFlag for United States of America

asked on

Can I use two jQuery files on same page?

Without getting into too much detail, I'm having to deal with a page that uses two different jQuery files (1.7 and 1.8).

The 1.8 .js file was put in last. (it drives a simple fade-in animation). It was soon learned that the a previous function (slideshow) using 1.7 js stopped working.

So, question is how can I get the page to honor both files without stepping on each other?
SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sandshakimi

ASKER

line of code makes sense, but clarify "load the later version as normal and use $ (default) for it."

thanks
Check this post on jquery forum

Jquery Forum
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm with Julian on this - rather than load 2 libraries, fix whatever was broken - it will save you headaches later on. There's not that much difference between 1.7 and 1.8 so it's probably something simple - fade-ins and slideshows are fairly straight forward, so you should be able to track down the problem.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial