I would like to use some of jquery's latest features, like jquery ui on my template, but without breaking the existing javascript code. Can I safely update jquery to 1.3.2 ? Or is it better to use both versions at the same time ? (explained here: https://www.adaptavi...cript+libraries )
Hi - I'd also like to update the jquery-1.2.6.pack.js to the latest 1.3.2. Have you done it yet? Has it caused problems? Does anyone else know if it would cause a problem if I simply replaced the file with the updated version and changed header.tpl?
I think the best thing to do is test it out.
If you have a testing environment, just make the switch there, and see if the site works fine.
If you don't have one, and your site is live, than I strongly suggest you find a proper programmer / webmaster that will set one up for you.
If you have a testing environment, just make the switch there, and see if the site works fine.
If you don't have one, and your site is live, than I strongly suggest you find a proper programmer / webmaster that will set one up for you.
Thanks for the reply - I am the proper web programmer (I'm working on this site for my client) so I will test it out on my local server first!
I tried to do it but didn't succeed. I would advise against it actually, it's probably better to only use features that are backward compatible with the default jquery.
I'm also trying to update jquery to the latest version (1.3.2), mainly to get rid of that awfull and outdated Thickbox script.
So far it's working good on the public part of my test installation, I have yet to test deeply the admin to see if there are any issues remaining.
- I had to remove the Jquery Interface plugins aswell as the prestashop patch for it. It is used for the transfer effect when you add a product to the shopping cart. I replaced it with JQueryUI's transfert effect (I'm just including effects core and tranfer so it won't overload the page with too muck kb, I also packed effects core).
- I updated idTabs to the latest version (the version used in Prestashop is very old and thus it is outdated.
- Finally I replaced that horrible Thickbox with the latest version of Colorbox.
I'm still testing but so far no problem on the public and admin part of the site. I'm not using any third party modules and my version of Prestashop is 1.2.5.
So far it's working good on the public part of my test installation, I have yet to test deeply the admin to see if there are any issues remaining.
- I had to remove the Jquery Interface plugins aswell as the prestashop patch for it. It is used for the transfer effect when you add a product to the shopping cart. I replaced it with JQueryUI's transfert effect (I'm just including effects core and tranfer so it won't overload the page with too muck kb, I also packed effects core).
- I updated idTabs to the latest version (the version used in Prestashop is very old and thus it is outdated.
- Finally I replaced that horrible Thickbox with the latest version of Colorbox.
I'm still testing but so far no problem on the public and admin part of the site. I'm not using any third party modules and my version of Prestashop is 1.2.5.
I am actually against using both (new and old) versions of jQuery. It's not the sense of light-weight. But I am struggling for using the updated jQuery 1.3.2 to have the great effects and unfortunately tried with no luck. I am pretty sure I miss something. Can anyone guide me? I'll be grateful.
[update] If this is needed, you may want to support my feature request. Cheers!
[update] If this is needed, you may want to support my feature request. Cheers!
* 欢迎访问PrestaShop官方中文论坛。
* 搜索是你的朋友。提问之前请善用搜索引擎和论坛搜索。
* 未获得帮助?——请详述问题,提供PrestaShop版本、运行环境(Web Server/PHP/MySQL)、浏览器类型等必要信息。
* 如果问题解决了,请为你的帖子标题加上[已解决]。谢谢。
Well, the usage of jquery generally ensure a good compatibility between browsers and allows to create lighter javascript modules with less reduntant code. So at the end I believe if you use jquery for all the scripts on the site you get a lighter and lot more modular code.
Prestashop is not the definition of lightweight anyway (ie: look at smarty and all libs...). :)
Prestashop is not the definition of lightweight anyway (ie: look at smarty and all libs...). :)



Back to top










