I have a requirement to create a wait wait page using jQuery 1.6.2 for an existing jsp page. I managed to get the div overlay to work, as well as animate the animation in a modal window in the center of the page. However, the overlay covers only one of the sets of frames, the central one.
The html structure is basically (I leave a lot for clarity):
... <frameset > <frame id="topMostFrame"> <frameset> <frame id="leftMostframe"> <frame id="centerMostFrame"> </frameset> </frameset> <noframes> </noframes> </body> </html>
JQuery
function getTheOverlay(){ $(document).ready(function() { $("#loading-div-background").css({opacity: 0.5}); $("#loading-div-background").show();
HTML
<div id="loading-div-background" style="display:none" class="ui-widget"> <div id="loading-div" class="ui-corner-all"> <img style="height:80px;margin:50px;" src="/images/loading.gif" alt="Loading.."/> </div> </div>
CSS
#loading-div-background { display:none; position:absolute; top:0; left:0; background:gray; width:100%; height:100%; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70); } #loading-div { width: 300px; height: 200px; background-color: #ffffff; text-align:center; position:absolute; left: 50%; top: 50%; margin-left:-150px; margin-top: -100px; }
I tried moving html to load into my jquery function, but in IE8 it did not display an overlay. I also had time to get IE8 to work with the overlay itself, but this is fixed using CSS above.
I need to disable links on the left frame, which is likely to be used by me or overlaps them with overlay. Yes, I know that frames are bad, but this is what I had to work with.
I cannot force the overlay to move to other sets of frames and cover the entire page. I read that this cannot be done with sets of frames, although I assume there may be a workaround. However, when I use the alert for debugging purposes, the overlay spans the entire page.
My question is: why is a warning imposed imposing an overlay on everything? Is there anything else I could do to get the same effect, even with framesets?