shaneg 0 Report post Posted March 23, 2013 Per instructions and examples in the book, I am using javascript to initiate use of mysql within a php file to populate the data in a grid within my original javascript file. Everything works fine! However, sometimes, it takes a few seconds for the php file to complete running. I am finding that I need to disable the grid until the php file has completed. I know how to disable the grid using jquery $.blockUI(); and re-enable the grid using $.unblockUI(); using javascript commands in my javascript file. But I cannot figure out how to delay the $.unblockUI(); until the php file has completed. How can I do that? Thank you. Quote Share this post Link to post Share on other sites
HartleySan 826 Report post Posted March 23, 2013 It's hard to provide some advice without more information/code, but perhaps placing your JavaScript at the end of the file, after all the content has been loaded will resolve your problem. Quote Share this post Link to post Share on other sites