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

SUJET : Potential JavaScript breaks with EM expressions

Potential JavaScript breaks with EM expressions il y a 1 an 4 mois #89070

  • jun9
  • Portrait de jun9
  • Hors ligne
  • Fresh Lemon
  • Messages : 15
  • Remerciements reçus 1
  • Karma: 0
EM is Great and I love the flexibility it brings to LimeSurvey.
I just don't know if the {} EM expressions works well along with the old custom javascript tricks.
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
vv={}; //this will break, because {} is replaced to an empty <span>
vv_R={Rscore}; //this works, {Rscore} is replaced to a equation-calculated EM value
...

I tried to use vv={ } (adding more spaces)to work around this ?bug, but not sure what other conflicts are still out there.

BTW. Is there a way that EM could be used to change another radio list question's assessment value, it seems all {Qcode.value} can do is getting values, not setting, right?
Dernière édition: il y a 1 an 4 mois par jun9.
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.111 secondes
Donation Image