html5 - Jquery code works on firefox 54.0.1 (32-bit) and not working firefox 52.0(64-bit) -
hi following 2 codes working fine on chrome & firefox 32-bit. it's not working fixfox 64-bit version 25.0...
<script type="text/javascript"> // window.onload = new function() { // $(document).ready(function() { $( window ).load(function() { // $('.ystq_buddy').bind("domsubtreemodified",function(e){ $(document).on('click', 'body' , function() { if ($(".ystq_buddy").hasclass("ystq_swipe-right") || $( ".ystq_buddy" ).hasclass( "ystq_swipe-left")) { $(document.forms['f1']).submit(); } }); }); </script> also not working firfox 64-bit
<script type="text/javascript"> $( window ).load(function() { $('input[id="tinderquest_positive"],[id="tinderquest_negative"]').on("change", function(){ if($(this).is(':checked')){ $(document.forms['f1']).submit(); } }); }); </script>
thanks. i've fixed issue using setinterval
$( window ).load(function() { var submitter = false; submitter = setinterval(function(){ if ($(".ystq_buddy").hasclass("ystq_swipe-right") || $( ".ystq_buddy" ).hasclass( "ystq_swipe-left")) { document.forms['f1'].submit(); clearinterval(submitter); } }, 100); });
Comments
Post a Comment