The correct syntax is:
data: {status: status, name: name},
As specified here: http://api.jquery.com/jQuery.ajax/
So if that doesn’t work, I would alert those variables to make sure they have values.
More Related Contents:
- Jquery Ajax Posting JSON to webservice
- How can I use JQuery to post JSON data?
- How can I convince IE to simply display application/json rather than offer to download it?
- jQuery Call to WebService returns “No Transport” error
- Send JSON data via POST (ajax) and receive json response from Controller (MVC)
- Queue ajax requests using jQuery.queue()
- How to pass parameters in $ajax POST?
- CORS jQuery AJAX request
- JSONP request error handling
- How to access JSON Object name/value?
- How to get a cookie from an AJAX response?
- Ajax using https on an http page
- How to return data from PHP to a jQuery ajax call
- How do I make jQuery wait for an Ajax call to finish before it returns?
- Getting 400 bad request error in Jquery Ajax POST
- jQuery: Check if image exists
- jQuery.ajax fails when url is from different server
- Spring MVC 415 Unsupported Media Type
- When using Ajax with jQuery DataTables, how do I determine what to do with the data returned?
- “How” to save an entire collection in Backbone.js – Backbone.sync or jQuery.ajax?
- Jquery and HTML FormData returns “Uncaught TypeError: Illegal invocation”
- What is the difference between async:false and async:true in jquery ajax?
- Synchronous calls with jquery
- GUI-based or Web-based JSON editor that works like property explorer [closed]
- How to export all rows from Datatables using Ajax?
- Ajax jquery async return value
- jQuery: Making simultaneous ajax requests, is it possible?
- JQuery Ajax is sending GET instead of POST
- Targeting multiple forms to send via ajax (jquery)
- Rails accepts_nested_attributes_for with f.fields_for and AJAX