Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How bypass php zip import to add resources ?

More
11 years 3 months ago #90002 by Ben_V
Yes it's works... I've seen the end of your tunnel !
(Faut jamais abandonner pour un bout de code... ;) )

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
More
11 years 3 months ago #90011 by hug
???? Are you telling me that I'm trying to make working something that does work already ????

I wonder if i am not becoming mad...

... But in a certain way, it makes sense to me : I tested a survey which were non active and the css depend on which template is used, but I made a copy of the original one to change it for timepicker and don't understand why this css is not used for testing. Below is a print screen of what i got from testing.

Now, I'm feeling quite ridiculous...

Thank you very much and sorry for disturbing

The topic has been locked.
More
11 years 3 months ago #90012 by Ben_V
Check your inbox &/or LS results...
I've submitted your working nicely survey... :)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
More
11 years 3 months ago #90015 by hug
Yes, I'll see what I can do... But removing the read only attribute does not seems to work very well (like for the test survey is still the same).

Anyway this thing is driving me mad !!!

Here is the TRUE survey... and just the first time question work !

cdlvg.free.fr/index.php?sid=33913&lang=fr
The topic has been locked.
More
11 years 3 months ago - 11 years 3 months ago #90017 by Ben_V
It's normal that only the first question is working...

It's due to the syntax*:
Code:
$(".numeric:eq(0) input.text").timepicker({

You should in this case use the old one with SGA code (at least for 2nd time question)
Code:
$('#answer33913X4X34').timepicker({


*Cf. TPartner's note

(assuming you are applying it to the first short text on the page)


Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 11 years 3 months ago by Ben_V.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 months ago #90019 by tpartner
Replied by tpartner on topic How bypass php zip import to add resources ?
Yes, and you should be able to put but selectors in the same call:
Code:
$('#answer33913X5X38, #answer33913X5X44').timepicker({

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Ben_V
The topic has been locked.
More
11 years 3 months ago #90026 by hug
Everthing is working !!!!!!!!!! :woohoo:

Yeeeha ! Thank you very very much for your precious help and sorry for my bad understanding of javascript :dry:

At least you made someone happy !
The following user(s) said Thank You: Ben_V
The topic has been locked.
More
11 years 3 months ago #90068 by hug
Assuming I'm totally stupid with javascript. I tried to remove readonly attribute remplacing this
Code:
$(".text-short:eq(0) input.text").attr('readonly', 'readonly');

by this
Code:
$(".text-short:eq(0) input.text").removeattr('readonly');

On the first question and it has worked, but the following questions failed... So I tried the same as you suggest in your previous replies

For the second question :
Code:
$('#answer33913X4X34').removeattr('readonly');

That did not work... What do I have to do, please ?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 months ago #90069 by tpartner
Replied by tpartner on topic How bypass php zip import to add resources ?
This will remove the attribute from all text inputs on the page:
Code:
$(".text-short input.text").removeAttr('readonly');

(note: removeAttr should have a capital A)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: hug
The topic has been locked.
More
11 years 3 months ago #90072 by hug
Ok. I won't forget the case sensitive information in the future and i understand that when i remove the :eq0 it applies to the whole survey. Thanks.

What I don't understand is :
1. Why if i use my own code without capital A, timepicker behavior changes but nothing change if i totally remove the original line
2. If i use your code that does not change timepicker behavior
3. Why I can directly edit time in all timepicker question except in the first one

What I understand is that i don't understand JS
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose