Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: How bypass php zip import to add resources ?

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90002

  • Ben_V
  • Ben_Vs Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 1079
  • Dank erhalten: 239
  • Karma: 76
Yes it's works... I've seen the end of your tunnel !
(Faut jamais abandonner pour un bout de code... ;) )
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90011

  • hug
  • hugs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Dank erhalten: 1
  • Karma: 0
???? 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

Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90012

  • Ben_V
  • Ben_Vs Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 1079
  • Dank erhalten: 239
  • Karma: 76
Check your inbox &/or LS results...
I've submitted your working nicely survey... :)
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90015

  • hug
  • hugs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Dank erhalten: 1
  • Karma: 0
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90017

  • Ben_V
  • Ben_Vs Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 1079
  • Dank erhalten: 239
  • Karma: 76
It's normal that only the first question is working...

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

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


*Cf. TPartner's note
(assuming you are applying it to the first short text on the page)
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Letzte Änderung: 1 Jahr 9 Monate her von Ben_V.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90019

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4182
  • Dank erhalten: 785
  • Karma: 359
Yes, and you should be able to put but selectors in the same call:
$('#answer33913X5X38, #answer33913X5X44').timepicker({
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: Ben_V

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90026

  • hug
  • hugs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Dank erhalten: 1
  • Karma: 0
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 !
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: Ben_V

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90068

  • hug
  • hugs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Dank erhalten: 1
  • Karma: 0
Assuming I'm totally stupid with javascript. I tried to remove readonly attribute remplacing this
$(".text-short:eq(0) input.text").attr('readonly', 'readonly');

by this
$(".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 :
$('#answer33913X4X34').removeattr('readonly');

That did not work... What do I have to do, please ?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90069

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4182
  • Dank erhalten: 785
  • Karma: 359
This will remove the attribute from all text inputs on the page:
$(".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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: hug

Re: How bypass php zip import to add resources ? 1 Jahr 9 Monate her #90072

  • hug
  • hugs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Dank erhalten: 1
  • Karma: 0
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.411 Sekunden
Donation Image