jquery - BlockUI not unblocking -
i've been staring @ hours , can't see why on earth isn't working, have confess js isn't top notch me looks right?
basically when click blockui comes fine never goes away! cut down version of code below...
$(document).ready(function() { $("#formdata").toggle(); $(function() { $( "#datepick" ).datepicker();$("#datepick").datepicker({ dateformat: "yyyy-mm-dd" }); }); $(document).ajaxstart(function() { $.blockui({message: '<h1>retrieving data</h1>'}) }); $(document).ajaxstop(function() { $.unblockui(); }); }); $(".button").click(function() { var datastring = $("myform").serialize(); $.ajax({ type: "post", url: "employerformdata.php", data: datastring, success: function(data) { $("submitresult").html(data); } }); });
ajaxcomplete function unblock ui
reference http://docs.jquery.com/ajax_events
Comments
Post a Comment