Modify ↓
Ticket #6410 (closed bug: worksforme)
$.ajax will through parsererror if option data is not assign
| Reported by: | maxi326 | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | |
| Component: | ajax | Version: | 1.3.2 |
| Keywords: | parsererror | Cc: | |
| Blocking: | Blocked by: |
Description
even if the server don't need any argument, data : "{}" is still needed. if data is not assign, the server returns correct response, will still result in parsererror which is not the case.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

As long as you don't access the data property in the callback it isn't needed.