Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi
  • Page :
  • 1
  • 2

SUJET : Using a plugin do not work

Using a plugin do not work il y a 9 mois 3 semaines #101383

  • plhostis
  • Portrait de plhostis
  • Hors ligne
  • Junior Lime
  • Messages : 20
  • Karma: 0
Hello

I'm trying to use plugin DigitalBush Masked Input Plugin in my survey
( see section workarounds: Text input mask second method in LS web manual)
i have added the line <script type="text/javascript" src="{TEMPLATEURL}jquery.maskedinput.js" charset="utf-8"></script> in then startpage.pstpl
but when i test my survey i have an error $(...).mask is not a function... !!!
any idea ?

FireFox 17.0.4
LS 2.00+ build 130802
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 3 semaines #101390

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4141
  • Remerciements reçus 768
  • Karma: 349
Did you make sure to add that to startpage.pstpl AFTER the {TEMPLATEJS} tag?
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.
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 3 semaines #101392

  • plhostis
  • Portrait de plhostis
  • Hors ligne
  • Junior Lime
  • Messages : 20
  • Karma: 0
yes i verified all the tag in the startpage.pstpl i followed exactly what is written in
Implementation as follows:
1.Visit digitalbush.com/projects/masked-input-plugin/, download the latest plugin script and save it as jquery.maskedinput.js in the template folder.
2.Link to the script by placing <script type="text/javascript" src="{TEMPLATEURL}jquery.maskedinput.js" charset="utf-8"></script> within the <head> tag of startpage.pstpl.
3.Turn off $filterxsshtml to allow insertion of JavaScript in the questions. (See documentation here)
4.Create the text input questions that the masks are to be applied to
5.In the source of the help section of the first question of the group that contains the masked inputs, add the following code. (See How to use script here)





<script type="text/javascript" charset="utf-8">
$(document).ready(function($) {
$("#answer55431X1X5").mask("999-99-9999",{ placeholder:"#" });
});
</script>
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 3 semaines #101403

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4141
  • Remerciements reçus 768
  • Karma: 349
Can you activate a test survey?
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.
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 3 semaines #101410

  • plhostis
  • Portrait de plhostis
  • Hors ligne
  • Junior Lime
  • Messages : 20
  • Karma: 0
yes i tried with a inactive and active survey , it is the same. :evil:
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 3 semaines #101416

  • holch
  • Portrait de holch
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2643
  • Remerciements reçus 313
  • Karma: 115
What Tpartner means, is there a way that you can provide a link to a test survey, where we can have a look at it.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 3 semaines #101439

  • plhostis
  • Portrait de plhostis
  • Hors ligne
  • Junior Lime
  • Messages : 20
  • Karma: 0
unfortunately no we are not over Internet.
It seems to erase the line i have added...

<script type="text/javascript" src="{TEMPLATEURL}jquery.meiomask.js" charset="utf-8"></script> within the <head> tag of startpage.pstpl.

just after tag {TEMPLATEJS} , i don't know why. i tried with IE 9 and Firefox 17.0.4
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 3 semaines #101465

  • holch
  • Portrait de holch
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2643
  • Remerciements reçus 313
  • Karma: 115
Did you follow the recommendations of the manual on how to use Javascript in Limesurvey? is the XSS filter switched off?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 3 semaines #101487

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4141
  • Remerciements reçus 768
  • Karma: 349
Hmm, truly odd.

If you can't publish a survey, can you attach exports of the template and a sample survey?
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.
L'administrateur a désactivé l'accès en écriture pour le public.

Using a plugin do not work il y a 9 mois 1 semaine #101729

  • plhostis
  • Portrait de plhostis
  • Hors ligne
  • Junior Lime
  • Messages : 20
  • Karma: 0
Hello

ok i send you an survey export .lss
Pièces jointes :
L'administrateur a désactivé l'accès en écriture pour le public.
  • Page :
  • 1
  • 2
Modérateurs: ITEd
Temps de génération de la page : 0.151 secondes
Donation Image