Skip to content

Instantly share code, notes, and snippets.

@rob-bar
Created November 20, 2013 10:34
Show Gist options
  • Save rob-bar/7561013 to your computer and use it in GitHub Desktop.
Save rob-bar/7561013 to your computer and use it in GitHub Desktop.
jquery ajax call #jquery #ajax #coffeescript
$.ajax
url: $form.attr("action")
type: $form.attr("method")
data: $form.serializeArray()
.fail (jqXHR, textStatus, errorThrown) ->
.done (data, textStatus, jqXHR) ->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment