Welcome, Guest
Username: Password: Remember me

TOPIC: How do I update / upgrade the jquery version?

How do I update / upgrade the jquery version? 1 year 3 months ago #94870

Hi. I am using a 2.0+ version of LS but have been running into some issues with scripting. After digging deeper, I've learned that the version of jquery LS is using on my system is version 1.5.2. This is several years out of date and is missing some needed functionality.

How do I update / upgrade? And if it's real basic, I'm hoping someone will tell me "No, you won't break anything".

Beyond that, is there not a way to auto-upgrade this library? It seems like every time I log into my LS admin panel there is a new version / upgrade of the base package available. Would love to see this upgrade feature include any additional libraries or packages that LS utilizes.

Thanks for any help.

-MM
The administrator has disabled public write access.

How do I update / upgrade the jquery version? 1 year 3 months ago #94877

Hmm... after some experimenting, you can change the jquery.js file to a more recent version. However, when I changed mine to the most recent, it broke. So I put the old version back and it worked. I tried a more benign step-approach and dropping in 1.6.3 seems to work.

I'm going to stop there and hope a developer in the know chimes in. I'd rather not try a tinker/test, tinker/test approach since that typically only works until it doesn't.

Honestly, I'd prefer to link to a CDN for "always updated" functionality.

Thoughts?
The administrator has disabled public write access.

How do I update / upgrade the jquery version? 1 year 3 months ago #94882

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2570
  • Thank you received: 292
  • Karma: 106
I am not a developer, but I assume the developers "froze" jquery in order not to have to worry about every jquery update breaking Limesurvey. But that is just my guess.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

How do I update / upgrade the jquery version? 1 year 3 months ago #94892

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5302
  • Thank you received: 291
  • Karma: 247
holch wrote:
I am not a developer, but I assume the developers "froze" jquery in order not to have to worry about every jquery update breaking Limesurvey. But that is just my guess.
You are most probably right about that, see bugs.limesurvey.org/view.php?id=6505

-> The upcoming Limesurvey 2.05 will use the latest jquery version.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

How do I update / upgrade the jquery version? 1 year 3 months ago #94919

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6240
  • Thank you received: 794
  • Karma: 238
McdanielMackenzie wrote:
I tried a more benign step-approach and dropping in 1.6.3 seems to work.
I think jq1.8/ui1.9 work without big problem.

We can include jquery-CDN: because sometimes an jquery update break some compatibility (like .browser actually).

Denis
(and yes : 2.05 have last jquery version, and use a specific diectory.)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.118 seconds
Donation Image