Link to home
Start Free TrialLog in
Avatar of danielivanov2
danielivanov2Flag for Romania

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
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain 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
Avatar of danielivanov2

ASKER

Ok, I'll study that page. Should I fire the event in an overriden PreInit Page method and close it in "Page_Load?
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>

Open in new window

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
This is what I was looking for, except the part with displaying the window only on page load, that I should investigate thereafter