• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 536
  • Last Modified:

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
0
danielivanov2
Asked:
danielivanov2
  • 2
  • 2
1 Solution
 
Marco GasiFreelancerCommented:
You can use lightbox lib or prototype and scriptaculous: it's very simple and customizable. You can find it here: http://www.michaelminella.com/javascript/prototype-script.aculo.us-lightbox.html

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

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now