Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

disable a page

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?  
Avatar of Erdinç Güngör Çorbacı
Erdinç Güngör Çorbacı
Flag of Türkiye image

what do you mean with  "disable" ... invisible ? overlayed ? unclickable ? ...
If there is not any other special effect expected ,you can use any of usage from here :http://jquery.malsup.com/block/#demos
Avatar of HLRosenberger

ASKER

unclickable.  prevent the user from interacting with the page.
<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);
    });
});
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);
    });
});
Also, the link talks about JQuery.  I'm not using JQuery.
ASKER CERTIFIED SOLUTION
Avatar of Erdinç Güngör Çorbacı
Erdinç Güngör Çorbacı
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This will work but I was looking for something easy..