Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

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

How do I update / upgrade the jquery version? il y a 1 an 6 mois #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
L'administrateur a désactivé l'accès en écriture pour le public.

How do I update / upgrade the jquery version? il y a 1 an 6 mois #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?
L'administrateur a désactivé l'accès en écriture pour le public.

How do I update / upgrade the jquery version? il y a 1 an 6 mois #94882

  • holch
  • Portrait de holch
  • En ligne
  • LimeSurvey Team
  • Messages : 2845
  • Remerciements reçus 358
  • Karma: 124
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!
L'administrateur a désactivé l'accès en écriture pour le public.

How do I update / upgrade the jquery version? il y a 1 an 6 mois #94892

  • Mazi
  • Portrait de Mazi
  • Hors ligne
  • LimeSurvey Team
  • Messages : 5331
  • Remerciements reçus 296
  • Karma: 249
holch écrit:
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'"
L'administrateur a désactivé l'accès en écriture pour le public.

How do I update / upgrade the jquery version? il y a 1 an 6 mois #94919

  • DenisChenu
  • Portrait de DenisChenu
  • Hors ligne
  • Moderator Lime
  • Messages : 6429
  • Remerciements reçus 840
  • Karma: 249
McdanielMackenzie écrit:
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.)
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.143 secondes
Donation Image