Created
May 22, 2012 00:06
-
-
Save prashtx/2765574 to your computer and use it in GitHub Desktop.
jquery json post
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
$.ajax(create_url, { | |
contentType: 'application/json', | |
dataType: 'json', | |
type: 'POST', | |
data: JSON.stringify(data) | |
}) | |
.done(function(result) { | |
var id = result.surveys[0].id; | |
navigateToSurvey(id); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment