Welcome, Guest
Username: Password: Remember me

TOPIC: Potential JavaScript breaks with EM expressions

Potential JavaScript breaks with EM expressions 1 year 4 months ago #89070

  • jun9
  • jun9's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Thank you received: 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?
Last Edit: 1 year 4 months ago by jun9.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.100 seconds
Donation Image