Customizing SMF > SMF Coding Discussion
jQuery Questions
(1/1)
FrizzleFried:
Please forgive these (likely VERY stupid) questions RE: jquery... I am a newb and a I am just trying to learn. :)
1. How do you check what version of jquery a mod uses?
2. Does each mod call up their own version or do they all use whatever version is available on the site?
3. Can a mod that is designed to use one version of jquery use another?
I ask these questions as there are a couple of mods that once worked, but no longer work on my site and it's been blamed on "older versions of jquery" or something similar. Example: The stars for Topic Ratings mod disappeared at some point after I installed a couple other mods. The code is all there (verified). The author blames an older version of jquery running on my theme for the issue. The same can be said for the Elegant Menu mod... it worked great... now it doesn't work at all. All code is there... the mod installs and uninstalls without issue. The options appear in the admin section... just no actual effect takes place.
I am making an attempt to resolve these issues (if possible) and any/all help is greatly appreciated.
THANKS!
Anthony`:
1. You would have to look inside the code to determine this.
2. I'm not quite sure actually, but I'm pretty sure they don't have to use the latest versions, so some might be different than others.
3. It is possible if the changes in the new version don't affect the code the mod uses.
Suki:
--- Quote ---2. Does each mod call up their own version or do they all use whatever version is available on the site?
--- End quote ---
The customize team has been telling mod authors to check if jquery has been loaded before they load their file, so, all recent mods will have this check, this guarantee you will load only 1 instance of jquery.
Navigation
[0] Message Index
Go to full version