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 4 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 4 months ago #58688

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9290
  • Thank you received: 1325
  • Karma: 384
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Progress bar not showing on Safari & Chrome 5 years 4 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 4 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 4 months ago #58781

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9290
  • Thank you received: 1325
  • Karma: 384
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Progress bar not showing on Safari & Chrome 5 years 3 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.
Moderators: ITEd
Time to create page: 0.202 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form