Revision: 47619
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 11, 2011 11:35 by dropthenerd
Initial Code
$("#MyForm").live('submit',function(){ var params = $(this).serialize(); var self = this; $.ajax({ type: 'POST', url: self.action, data: params, beforeSend: function(){ alert('Closing'); $.fancybox.close(); }, success: function(data){ alert('Finished processing form'); return false; }, dataType: 'json' }); return false; }); }
Initial URL
http://www.dropthenerd.com/close-fancybox-on-form-submit-but-before-processing-via-ajax/
Initial Description
Initial Title
Close a fancybox ON form submit and BEFORE processing with ajax.
Initial Tags
ajax, post, jquery
Initial Language
jQuery