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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -