If you have a callback such as:
function(data) {
process(data);
}
what exactly is data? How would you specify what data is if the url that the POST request is sent to redirects to your controller (let’s say we’re using Ruby on Rails.)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
datais the response from the server.Depending on the
typeof the jQuery AJAX request, it will be either a string, a parsed JSON object, or an XML DOM tree.See the documentation.