- Posts: 16
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Du solltest dieser einen Frage die css Klasse "hidden" geben
Piaget wrote: Mit Javascript ist von der Antwort nichts zu sehen.
[color=#339933]<[/color]script type[color=#339933]=[/color][color=#3366cc]"text/javascript"[/color] charset[color=#339933]=[/color][color=#3366cc]"utf-8"[/color][color=#339933]>[/color] $[color=#009900]([/color]document[color=#009900])[/color].[color=#660066]on[/color][color=#009900]([/color][color=#3366cc]'ready pjax:scriptcomplete'[/color][color=#339933],[/color][color=#003366]function[/color][color=#009900]([/color][color=#009900])[/color] [color=#009900]{[/color] setTimeout[color=#009900]([/color][color=#003366]function[/color][color=#009900]([/color][color=#009900])[/color] [color=#009900]{[/color] $[color=#009900]([/color][color=#3366cc]'#ls-button-submit'[/color][color=#009900])[/color].[color=#660066]trigger[/color][color=#009900]([/color][color=#3366cc]'click'[/color][color=#009900])[/color][color=#339933];[/color] [color=#009900]}[/color][color=#339933],[/color][color=#cc0000]10[/color][color=#009900])[/color][color=#339933];[/color] [color=#009900]}[/color][color=#009900])[/color][color=#339933];[/color] [color=#339933]</[/color]script[color=#339933]>[/color]
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function() { setTimeout(function() { $('#ls-button-submit').trigger('click'); },10); }); </script><script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function() { setTimeout(function() { $('#ls-button-submit').trigger('click'); },10); }); </script>
Dieser Editor macht mich fertig.
Nicht so sicher, weil deine Teilnehmer ja irgendeinen Browser nehmen. Es kann einfach nur ein Sessioneffekt sein, der nur auftaucht, wenn du im Backend von LimeSurvey bist und dann mit der gleichen Browsersession Testläufe machst.Piaget wrote: Für mich ist das Problem damit gelöst.
$(document).ready(function(){
$(document).on('ready pjax:scriptcomplete',function() {
pjax:send - Fired after the Pjax request begins. pjax:complete - Fired after the Pjax request finishes. pjax:success - Fired after the Pjax request succeeds. pjax:error - Fired after the Pjax request fails. Returning false will prevent the the fallback redirect. pjax:scriptcomplete - Fired after the Pjax request finishes loading remote scripts. pjax:scriptsuccess - Fired after the Pjax request succeeds loading remote scripts. pjax:scripterror - Fired after the Pjax loading of remote scripts fails. Returning false will prevent the the fallback redirect. pjax:scripttimeout - Fired after the Pjax loading of remote scripts takes too long. This happens a.e. when a script is already loaded and can't be grabbed from cache.