upgrading jQuery to 1.8.x

Permalink
HI i'm having a bunch of issues related to jQuery 1.7.2, and want to upgrade to 1.8.x, however when i do this although it resolves my issues, the dashboard no longer works as intended, i.e. overlays etc…

I am just overiding the jquery library here:
/concrete/js/jquery.js
with:
/js/jquery.js

Is there anything else I need to do?

Thanks in advance.

BHWW
 
sk01 replied on at Permalink Reply
sk01
Try to use also the latest jquery.ui.js, jquery.ui.css and jquery.rating.js.
This works for me with jQuery 1.11.0-pre, jQuery.UI 1.10.3 and jQuery.Rating 4.11
BHWW replied on at Permalink Reply
BHWW
HI Thanks for that sk01.

But i can't get that to work would you please send me the files you are using and indicate the paths you've put them at.

Thanks
JohntheFish replied on at Permalink Reply
JohntheFish
There are dashboard and addon scripts that still use deprecated methods (eg event binding). You may may be able to get round some of these by also using the jquery migration plugin.

The current c5.7 build is using jQuery v1.9.1 and I expect this could step up again before 5.7 is released.
JohntheFish replied on at Permalink Reply
JohntheFish
This pull (closed/rejected) is code I used to experiment with asset mapping a while back.

https://github.com/concrete5/concrete5/pull/771...
BHWW replied on at Permalink Reply
BHWW
Thanks Mr Fish

How would one go about using the jquery migrate function to get to 1.9?

I've tried adding:

<script src="http://code.jquery.com/jquery-1.9.0.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>

To the footer, with no joy.

*In a bit over my head and sinking*
*Life rafts appreciated!*

Thanks
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
You probably want them in the header, before any other script references, so jQuery is available for all other scripts loaded. You will also need to remove all core loading of jQuery, or the 2 loads will collide and cause a script error.

If you think you are already in over your head, please don't waste any more of your time on this. Changing the version of jQuery that is running may seem simple, but there are so many side-issues you could run into and then need to clear up that it will only result in frustration and failure.
BHWW replied on at Permalink Reply
BHWW
Thanks, thats probably wise.