开发者

Upgrading from Jquery 1.4.2 to 1.5.2 breaks my site

开发者 https://www.devze.com 2023-02-22 05:36 出处:网络
I have a wordpress site that was built for me by a developer some time ago, which I am slowly working on finishing on my local machine. I am a 开发者_运维百科designer but I can work my way around CSS/

I have a wordpress site that was built for me by a developer some time ago, which I am slowly working on finishing on my local machine. I am a 开发者_运维百科designer but I can work my way around CSS/JS/PHP somewhat blindly. Copy and paste sort of stuff...

I am trying to upgrade the jquery file it uses from 1.4.2 to 1.5.2, for a range of reasons, but I am finding that if I try to the jquery stops working all together. I am not sure where to even start troubleshooting this. I would be greatful for any assistance that anyone can offer in helping me troubleshoot this.

The site uses a mix os scripts, including jquery ui, masonry, and lazy loading. All quite standard stuff. It does also have a custom written script for some of the interface face effects.

I can provide samples of code, but not really sure where to start.


Have you tried adding double quotes around the attribute value ("/category/projects")?

$('a[href*="/category/projects"]').bind('click', function(e) { 


If you have no coding knowledge of any real essence I would call your developer again.

It would seem your js relies on deprecated material and upgrading causes them to not work anymore.

You could create more damage than good.


Because we can't see the source code, enable the developer tools in Safari - Preferences>>>Advanced>>Show Develop Menu in menu Bar - or use Firebug with Firefox or as standalone and use the error console to find what JS is loading, what's conflicting and the errors.

0

精彩评论

暂无评论...
验证码 换一张
取 消