Hi all. I'm looking to use blockUI as a loading screen for when my Javascript does some processing, but I can't seem to get it to work. Basically what I want to happen is... I have a loop that will be running and creating some output for the user, so I want to throw a loading screen around this for loop, but what I'm currently doing doesn't seem to work. Here's an example...
$.blockUI({message: "Loading, please wait..."});
for (i = 0; i < 10000000; i++) {}
$.unblockUI();
So what happens is, the loop runs (and completes), then the blockUI loading message shows up and goes away really quickly. I just want it to show up, let the loop run until finished, then go away. Am I doing something completely stupid here? Any help would be appreciated!