Forked from afarnham/Facebox with jquery forms ajaxSubmit
Created
July 29, 2008 05:25
-
-
Save BrianTheCoder/3021 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This version works | |
$('#account_info_form').submit(function() { | |
$.facebox(function() { | |
$("#account_info_form").ajaxSubmit(function(respText, statusText) { | |
$.facebox((statusText == "success")?"Account Information successfully update": | |
"Failed to update Account Information."); | |
}) | |
}); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment