Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Progress bar not showing on Safari & Chrome

Progress bar not showing on Safari & Chrome 5 years 8 months ago #58666

  • Renuplex
  • Renuplex's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Dear LimeSurvey team,

I am using Limesurvey 1.9 and I am having troubles with the progress bar: It is simply not showing on Safari & Chrome. It's displaying just fine on FF and IE6,7,8.

Any idea of where this could come from and how to go about solving it?

Thanks in advance,
Laurent
The administrator has disabled public write access.

Progress bar not showing on Safari & Chrome 5 years 8 months ago #58688

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9553
  • Thank you received: 1371
  • Karma: 389
Hello,
Renuplex wrote:
I am using Limesurvey 1.9 and I am having troubles with the progress bar: It is simply not showing on Safari & Chrome. It's displaying just fine on FF and IE6,7,8.
Did you use a personal template ?

I look in chromium and it's seems OK.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

Progress bar not showing on Safari & Chrome 5 years 8 months ago #58691

  • Renuplex
  • Renuplex's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Hi Schnoulle,

Thanks for your answer. Yes I use a personal and actually I think I have found the root of the problem (although haven't yet corrected it): I think there is a JS error in my template.js only on Chrome/Safari.
I am looking into it and will post as soon as I have the confirmation that this is the problem.

Cheers,
Laurent
The administrator has disabled public write access.

Progress bar not showing on Safari & Chrome 5 years 8 months ago #58762

  • Renuplex
  • Renuplex's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Well, it was indeed a JS "error" on my part. Apparently the associative arrays are handled differently on Chrome/Safari than on IE/FF so that's why it only appeared in Chrome/Safari.

Thanks for the help!
The administrator has disabled public write access.

Progress bar not showing on Safari & Chrome 5 years 8 months ago #58781

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9553
  • Thank you received: 1371
  • Karma: 389
Renuplex wrote:
Well, it was indeed a JS "error" on my part. Apparently the associative arrays are handled differently on Chrome/Safari than on IE/FF so that's why it only appeared in Chrome/Safari.
Can you explain more ?

What modification you have done on the template js functionnality ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

Progress bar not showing on Safari & Chrome 5 years 8 months ago #59003

  • Renuplex
  • Renuplex's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Hi Shnoulle,

Sure, I wrote a bit of JS to calculate a score based on answers from a radio list (e.g. choice1 = 0points, choice2=5points, etc.)
To do so, I used the questions IDs and at first I stored everything in a multi-dimensional associative array like the following:
,
'1234X1X2' => [0,10,20,35],
...
]
That's question ID => Scores for answers 1..X

For some reason when looping over the array using foreach, Safari and Chrome would loop too far resulting in a JS error and preventing the display of the progressbar.

Hope this is somewhat clear :)

Cheers and thanks for the help again,
Laurent
The administrator has disabled public write access.
Time to create page: 0.208 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form