?
Solved

disable a page

Posted on 2011-05-09
8
Medium Priority
?
179 Views
Last Modified: 2012-05-11
Upon clicking a submit button, I want to disable an entire page.  it's a modal dialog.  Is there is easy way to do this?  
0
Comment
Question by:HLRosenberger
  • 4
  • 4
8 Comments
 
LVL 9

Expert Comment

by:Erdinç Güngör Çorbacı
ID: 35725022
what do you mean with  "disable" ... invisible ? overlayed ? unclickable ? ...
0
 
LVL 9

Expert Comment

by:Erdinç Güngör Çorbacı
ID: 35725031
If there is not any other special effect expected ,you can use any of usage from here :http://jquery.malsup.com/block/#demos
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 35725222
unclickable.  prevent the user from interacting with the page.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 9

Expert Comment

by:Erdinç Güngör Çorbacı
ID: 35727117
<script src="https://github.com/malsup/blockui/raw/master/jquery.blockUI.js" type="text/javascript"></script>

and

$(document).ready(function() {
    $('#demo7').click(function() {
        $.blockUI({ message: null });
 
        setTimeout($.unblockUI, 9000000);
    });
});
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 35731535
So, are saying put this script behind the click of my save button?


$(document).ready(function() {
    $('#demo7').click(function() {
        $.blockUI({ message: null });
 
        setTimeout($.unblockUI, 9000000);
    });
});
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 35731573
Also, the link talks about JQuery.  I'm not using JQuery.
0
 
LVL 9

Accepted Solution

by:
Erdinç Güngör Çorbacı earned 1500 total points
ID: 35733939
then you have to manally get all user inputs with something like this

var page_disabled;
window.onclick= return check_disabled();



function check_disabled(){
global page_disabled;
if(page_disabled==1) return false;
else return true;
}

and for disabling

function disable_page(state){
global page_disabled;
page_disabled=state;
}

anytime you want to disable call disable_page(1) , or to disable send 0



this is just an logic example and not tested ... you need to check all user inputs like douleclicks rightclicks keypress .... and return function .
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 35749151
This will work but I was looking for something easy..
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question