Skip to content

Commit 6930c0c

Browse files
aperalaagcolom
authored andcommitted
Ajax: Modified note
Closes jquerygh-675
1 parent 7238d0e commit 6930c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page/ajax/jquery-ajax-methods.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $.ajax({
5454
});
5555
```
5656

57-
**Note:** A note about the `dataType` setting: if the server sends back data that is in a different format than you specify, your code may fail, and the reason will not always be clear, because the HTTP response code will not show an error. When working with Ajax requests, make sure your server is sending back the data type you're asking for, and verify that the `Content-type` header is accurate for the data type. For example, for JSON data, the `Content-type` header should be `application/json`.
57+
**Note:** Regarding the `dataType` setting, if the server sends back data that is in a different format than you specify, your code may fail, and the reason will not always be clear, because the HTTP response code will not show an error. When working with Ajax requests, make sure your server is sending back the data type you're asking for, and verify that the `Content-type` header is accurate for the data type. For example, for JSON data, the `Content-type` header should be `application/json`.
5858

5959
### `$.ajax()` Options
6060

0 commit comments

Comments
 (0)