File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Blocking UI till document is ready Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Blocking UI till document is ready" Watch "Blocking UI till document is ready" New topic
Author

Blocking UI till document is ready

Suvojit Chakraborty
Ranch Hand

Joined: Nov 10, 2009
Posts: 62
    
    1
Hi all,

I have following situation:

There are pages containing input field where in user enters value. Now I have a requirement to block UI untill the document is ready and every input field is rendered. I have found that I can use blockUI plugin for this : http://jquery.malsup.com/block/
I have also found few good examples in : http://www.malsup.com/jquery/block/#demos

Now, my problem is how do I call $.blockUI() on pre-ready stage and call $.unblockUI(); on .ready(). I would want my UI to be locked untill the doc is ready. I can put call to $.unblockUI(); in .ready() but where do I put $.blockUI().

Please help me in solving this issue.

Thanks in advance.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I would figure out why your page loads in such a horrible way that you would have to worry about blocking user input.

Eric
Suvojit Chakraborty
Ranch Hand

Joined: Nov 10, 2009
Posts: 62
    
    1
Eric,

Thanks for reply. Reason is because of poor internet connection. Most of the time everything is ok. But it has been observed that if internet has issues then in that case we can enter information on UI input elements before page gets loaded completely.

Thanks
Suvojit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Blocking UI till document is ready