Bug Tracker

Modify

Ticket #6410 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

$.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

comment:1 Changed 3 years ago by dmethvin

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to worksforme

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.