Check out the LimeSurvey source code on GitHub!

Progress bar not showing on Safari & Chrome

More
5 years 9 months ago #58666 by Renuplex
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

Please Log in to join the conversation.

More
5 years 9 months ago #58688 by DenisChenu
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.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 9 months ago #58691 by Renuplex
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

Please Log in to join the conversation.

More
5 years 9 months ago #58762 by Renuplex
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!

Please Log in to join the conversation.

More
5 years 9 months ago #58781 by DenisChenu

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.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 9 months ago #59003 by Renuplex
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

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form