Hi,

I have implemented blockUI for all buttons and a tags, using a custom
message as shown:

        <script type=\"text/javascript\">
                $.unblockUI();

            $(document).ready(function() {
                        $.unblockUI();
                        $(':button, a').click(function() {
                                $.blockUI({ message: \"<h1><img 
src='images/ajax-loader.gif' />
Just a moment...<\/h1>\" });
                        });
             });
         </script>

My <a> tags are normal, like <a href='somefile.php'>.

Clicking on any <button> or <a> tag works with exception of the
following:

1. In FF the cursor remains as 'wait' after the page has unblocked.
The cursor returns to 'default' as soon as the mouse is moved.
2. In Google Chrome the spinning loading image does not show at all (I
assume because the page loads too fast). In FF the loading image
displays but the animation is choppy.

How can I fix the above so all buttons, a tags etc do proper page
blocking?
And just to clarify, is page blocking meant to be used exclusively
using ajax calls for it to work properly?

Thanks,
Michael.

Reply via email to