Skip to content

Commit a7787f4

Browse files
committed
Fix botched merge of "jQuery/AJAX" recipe.
1 parent 1d81784 commit a7787f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

chapters/jquery/ajax.textile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ $(document).ready ->
2222
userName: 'John Doe'
2323
favoriteFlavor: 'Mint'
2424
(data) -> $('body').append "Successfully posted to the page."
25-
{% endhighlight %}
2625

27-
jQuery 1.5 and later have added a new, supplimental API for handling different callbacks.
28-
2926
# Advanced Settings
3027
$.ajax '/',
3128
type: 'GET'
@@ -34,11 +31,14 @@ jQuery 1.5 and later have added a new, supplimental API for handling different c
3431
success: (data, textStatus, jqXHR) ->
3532
$('body').append "Successful AJAX call: #{data}"
3633

37-
# For jQuery 1.5+
34+
{% endhighlight %}
35+
36+
jQuery 1.5 and later have added a new, supplimental API for handling different callbacks.
37+
38+
{% highlight coffeescript %}
3839
request = $.get '/'
3940
request.success (data) -> $('body').append "Successfully got the page again."
4041
request.error (jqXHR, textStatus, errorThrown) -> $('body').append "AJAX Error: ${textStatus}."
41-
4242
{% endhighlight %}
4343

4444
h2. Discussion

0 commit comments

Comments
 (0)