danielivanov2
asked on
Display modal window while page load
I need to display a modal window (jquery thickbox or something else) only while my page or another control is loading, and in my web application (C#, .Net 2.0) there could be some delays in getting the data, in several situations.
I cannot use Ajax Extender ModalPopup, since I don't have (yet) the 3.5 version of .Net on my web server.
How should I do this in javascript? Thanks
I cannot use Ajax Extender ModalPopup, since I don't have (yet) the 3.5 version of .Net on my web server.
How should I do this in javascript? Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
take a look at window.showModalDialog method:
<script language=javascript>
function TestShowModal(){
var WinSettings = "status:no; center:yes; resizable:no; dialogHeight:200px; dialogWidth:200px; help:no;"
window.showModalDialog("http://www.experts-exchange.com", "", WinSettings);
}
</script>
I'm sorry, but I never did such a thing: I can only say you can try. This is the reason because of I suggested lightbox: IMHO it's the most easy lightbox to implement.
Cheers
Cheers
ASKER
This is what I was looking for, except the part with displaying the window only on page load, that I should investigate thereafter
ASKER