- Posts: 40
- Thank you received: 6
Ask the community, share ideas, and connect with other LimeSurvey users!
document.getElementById("answerxxxxx").onkeyup();
$(function(){ $('.minimized').click(function(event) { var i_path = $(this).attr('src'); $('body').append('<div id="overlay"></div><div id="magnify"><img src="'+i_path+'"><div id="close-popup"><i></i></div></div>'); $('#magnify').css({ left: ($(document).width() - $('#magnify').outerWidth())/2, // top: ($(document).height() - $('#magnify').outerHeight())/2 upd: 24.10.2016 top: ($(window).height() - $('#magnify').outerHeight())/2 }); $('#overlay, #magnify').fadeIn('fast'); }); $('body').on('click', '#close-popup, #overlay', function(event) { event.preventDefault(); $('#overlay, #magnify').fadeOut('fast', function() { $('#close-popup, #magnify, #overlay').remove(); }); }); });
function imgzoom (){ if($('.minimized')[0]) { $('.minimized').attr('class','minimized2'); <...> }}; setInterval( imgzoom, 3000 );
$(document).on('ready pjax:scriptcomplete',function() { setTimeout(function() { alert(1); },10); });
Agreed. I would suggest to have AJAX mode disabled by default and it can be switched on as an option. But I would also mark it as "experimental", but that is what it is.In my opinion, the benefits of very slightly faster page loading are not worth the problems I have encountered (and seen in the forums) while AJAX is enabled.
document.getElementById("answerxxxxx").onkeyup();
self.NAOK: {self.NAOK} <script> function typeRandomNum () { var sgq="{SGQ}"; document.getElementById("answer"+sgq).value=Math.random(); } setInterval(typeRandomNum, 1000); </script>