- Posts: 1223
- Thank you received: 351
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 ?
- Ben_V
- Offline
- Platinum Member
Less
More
11 years 3 months ago #90002
by Ben_V
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)
Replied by Ben_V on topic How bypass php zip import to add resources ?
Yes it's works... I've seen the end of your tunnel !
(Faut jamais abandonner pour un bout de code... )
(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.
- hug
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
11 years 3 months ago #90011
by hug
Replied by hug on topic How bypass php zip import to add resources ?
???? 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
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.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1223
- Thank you received: 351
11 years 3 months ago #90012
by Ben_V
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)
Replied by Ben_V on topic How bypass php zip import to add resources ?
Check your inbox &/or LS results...
I've submitted your working nicely survey...
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.
- hug
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
11 years 3 months ago #90015
by hug
Replied by hug on topic How bypass php zip import to add resources ?
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
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.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1223
- Thank you received: 351
11 years 3 months ago - 11 years 3 months ago #90017
by Ben_V
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)
Replied by Ben_V on topic How bypass php zip import to add resources ?
It's normal that only the first question is working...
It's due to the syntax*:
You should in this case use the old one with SGA code (at least for 2nd time question)
*Cf. TPartner's note
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
11 years 3 months ago #90019
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
- hug
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
11 years 3 months ago #90026
by hug
Replied by hug on topic How bypass php zip import to add resources ?
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 !
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.
- hug
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
11 years 3 months ago #90068
by hug
Replied by hug on topic How bypass php zip import to add resources ?
Assuming I'm totally stupid with javascript. I tried to remove readonly attribute remplacing this
by this
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 :
That did not work... What do I have to do, please ?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
11 years 3 months ago #90069
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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:
(note: removeAttr should have a capital A)
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.
- hug
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
11 years 3 months ago #90072
by hug
Replied by hug on topic How bypass php zip import to add resources ?
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
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.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
11 years 3 months ago #90078
by tpartner
Can you activate another sample survey?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How bypass php zip import to add resources ?
Not the whole survey, only all text inputs on the current page.when i remove the :eq0 it applies to the whole survey.
Can you activate another sample survey?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- hug
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
11 years 3 months ago #90087
by hug
Replied by hug on topic How bypass php zip import to add resources ?
You will find the activated survey here :
cdlvg.free.fr/index.php?sid=33913&lang=fr
You just have to choose anyone of the answer in the radio list and time questions will appear.
You just have to choose anyone of the answer in the radio list and time questions will appear.
The topic has been locked.