See also:
req = new XMLHttpRequest()
req.open "POST", "path/to/api", on
req.onreadystatechange = ->
return if req.readyState isnt 4 or req.status isnt 200
alert "The response was \"#{req.responseText}\""
req.send "banana=yellow"
$.ajax
type: 'POST'
url: "path/to/api"
data: "banana=yellow"
success: (data) -> alert "The response was \"#{req.responseText}\""