In need of a good jQuery/JavaScript popup overlay

Hi all,

I'm hunting around for a decent script for html popup overlays - the type that darken the background to make it the focus.

It doesn't have to be bells & whistles but something clean and efficient (works in all borwsers) that I can do things like quick signup forms in - so posts to a confirmation page within the same popup.

If anyone has any experience with some they use with good effect and any pointers into integrating a form -> post -> confirmation in the popup format would be much appreciated.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dolythgoeAuthor Commented:
Thanks for this - it doesn't seem to darken the background and is there a way to load HTML into it?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

chaitu chaituCommented:
when the page is loading add this div to the form and give some class to it.

$(document.forms[0]).append('<div class="modalPageMask"></div>');

		//when the modal window comes show the mask in the background
		window.showModalDialog(url, arguments, options);
		//if you close the window then hide the class.

	left: 0;
	position: absolute;
	text-align: center;
	top: 0;
	width: 100%;

Open in new window

dolythgoeAuthor Commented:
Thanks all - I'm having a bash at the first link -

Could someone give me some advice on the later part of the question - form posting. I have this code for the popup working ok:

	<script type="text/javascript">
	$(document).ready(function() {
		var $dialog = $('#signup')
				autoOpen: false,
				title: 'Quick Signup Required',
				draggable: false,
				modal: true,
				resizable: false,
				width: 420,
				height: 400,
				position: ['center',150]

		$('#opener').click(function() {
			// prevent the default action, e.g., following a link
			return false;

Open in new window

It loads signup.php fine and displays the HTML but the way in which it's done confuses me when it comes to the form posting to a new .php page but staying within the window.

Can anyone shed some light ont his - much appreciated!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.