Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Missing newline in ajax example #67

Closed
wants to merge 1 commit into from

2 participants

@mscoutermarsh

Error in the .ajax example.

@dbrady
Owner

This is a duplicate of another pull request. Good spot, guys! Thank you!

@dbrady dbrady closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 28, 2012
  1. @mscoutermarsh
This page is out of date. Refresh to see the latest.
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}"
Something went wrong with that request. Please try again.