View Single Post
Old 10-17-2012, 07:06 AM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 530 Times in 524 Posts
devnull69 will become famous soon enough
Move the "return false" from inside the setTimeout to the last line of the submit event handler. Additionally, there is one additional closing bracket that needs to be removed
Code:
$("form").submit(function(e){

	setTimeout(function (){

		$.fancybox({
		 'href' : '#loading-wait',   
		 'width' : 650,
		 'height' : 350,
		 'autoScale' : false,
		 'transitionIn' : 'none',
		 'transitionOut' : 'none',
		 'scrolling' : 'no',		 
		 'type' : 'inline',
		 'showCloseButton' : false,
		 'hideOnOverlayClick' : false,
		 'hideOnContentClick' : false    
		 })
		 
        }, 5000 );

        return false;

});

Last edited by devnull69; 10-17-2012 at 07:08 AM..
devnull69 is offline   Reply With Quote
Users who have thanked devnull69 for this post:
vorl (10-20-2012)