When a control has submitted, I would like to prevent any controls within that control from resubmitting until the request has completed.
Because my forum has many buttons on it, it would take a long time to disable each one upon submitting the forum (using JavaScript).
So instead, I plan on using a <div> that will "shield" my buttons and prevent the user from clicking any button under that <div>.
My problem is that I can't seem to get this <div> to display over the content.
Eg (simplified example)
Expand|Select|Wrap|Line Numbers
- <div id="theContainerOfMyControls">
- <div id="theButtonShieldingDiv" style="background-color:black; position:absolute; height:100%; width:100%; display:none;"></div>
- <!-- a bunch of other <div>s containing buttons are here that I need to "cover up" -->
- </div>
This will cover the entire contents of the screen that's being displayed; however, when the user scrolls down, the section previously hidden is not covered by the <div>...making it still possible for the user to submit the page more than once.
Is there a way to make the "theButtonShieldingDiv" span the contents of "theContainerOfMyControl" instead of the whole page?
(Basically I'd like to use "position:relative" but I'm not having luck with this)
If this isn't possible, is there a way to make sure that the <div> is 100% of the content instead of 100% of the page content being displayed?
Any suggestions are welcome!
Thanks a lot
-LilOlMe