Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Potential JavaScript breaks with EM expressions

Potential JavaScript breaks with EM expressions 1 Jahr 10 Monate her #89070

  • jun9
  • jun9s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 15
  • Dank erhalten: 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?
Letzte Änderung: 1 Jahr 10 Monate her von jun9.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.119 Sekunden
Donation Image