Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any alternative to blockUI for jQuery?

The question says it all! I am looking for an easy to use alternative of blockUI for jQuery. I've been trying for days to center a dialog box with blockUI in both FireFox and IE but no chance. It doesn't work. I looked at this question about centering a blockUI dialog box (How can I get a DIV to centre on a page using jQuery and blockUI?) but it works only with Firefox.

like image 418
Martin Avatar asked Jan 27 '09 05:01

Martin


2 Answers

you might want to check this plugin call jQuery MSG. It works great in most of the browsers including ie6. And it is very light weight, only 4k uncompressed with code comments.

Example code

// this will block the page and shows a `please wait` message
$.msg();

// you can change the content by the following code
$.msg({
  content : '<img src="loading.gif"/> Sending mail :)'
});

Demo page

Source code on github

Full documentation and usage please check this post

or if you just want to centralize some DOM element you can take a look at this jQuery Center plugin

like image 69
ben Avatar answered Sep 27 '22 21:09

ben


For dialog boxes, I have switched from blockUI to Jquery UI. I think it's better.

like image 20
Tim Scott Avatar answered Sep 27 '22 21:09

Tim Scott