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.

Cheers
dolythgoeAsked:
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?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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
	      $('.modalPageMask').show();
		window.showModalDialog(url, arguments, options);
		
		//if you close the window then hide the class.
		$('.modalPageMask').hide();


.modalPageMask{
	background:#666; 
	z-index:4000;
	left: 0;
	position: absolute;
	text-align: center;
	top: 0;
	width: 100%;
	display:none;
	}

Open in new window

0
leakim971PluritechnicianCommented:
0
dolythgoeAuthor Commented:
Thanks all - I'm having a bash at the first link - http://jqueryui.com/demos/dialog/#modal

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')
			.load('signup.php')
			.dialog({
				autoOpen: false,
				title: 'Quick Signup Required',
				draggable: false,
				modal: true,
				resizable: false,
				width: 420,
				height: 400,
				position: ['center',150]
				
			});

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

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!
0
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
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.