Browse files

Merge pull request #71 from derekclee/ajax_jquery

Merged, thank you! Updated ajax.md
  • Loading branch information...
2 parents d0ee5cb + f1d710e commit 44a00236d6d99114c90b34f1bfe73765fa97b8a6 @dbrady dbrady committed Feb 28, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 chapters/jquery/ajax.md
View
3 chapters/jquery/ajax.md
@@ -25,7 +25,8 @@ $(document).ready ->
# Advanced Settings
$.ajax '/',
type: 'GET'
- dataType: 'html' error: (jqXHR, textStatus, errorThrown) ->
+ dataType: 'html'
+ error: (jqXHR, textStatus, errorThrown) ->
$('body').append "AJAX Error: #{textStatus}"
success: (data, textStatus, jqXHR) ->
$('body').append "Successful AJAX call: #{data}"

0 comments on commit 44a0023

Please sign in to comment.