Skip to content

Instantly share code, notes, and snippets.

@afarnham
Created July 29, 2008 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save afarnham/3006 to your computer and use it in GitHub Desktop.
Save afarnham/3006 to your computer and use it in GitHub Desktop.
// This version works
$('#account_info_form').submit(function() {
$.facebox(function() {
$("#account_info_form").ajaxSubmit(function(respText, statusText) {
if (statusText == "success")
$.facebox("Account Information successfully update");
else
$.facebox("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