Created
August 21, 2009 19:26
-
-
Save house9/172347 to your computer and use it in GitHub Desktop.
jquery ajax post
This file contains hidden or 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
$j.ajax({ | |
type: "POST", | |
url: "/some_controller/some_action", | |
data: { | |
first_name: $j("#first_name").val(), | |
last_name: $j("#last_name").val(), | |
}, | |
success: function(data, textStatus) { | |
// do what you like | |
}, | |
error: function(result) { defaultAjaxErrorHandler(result, true); } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment