Opened 9 years ago

Closed 9 years ago

#10710 closed bug (notabug)

get null inside server

Reported by: mohammad_77 Owned by:
Priority: minor Milestone: none
Component: ui.core Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:


hello . "Prior to 1.9, an ajax call that expected a return data type of JSON or JSONP would consider a return value of an empty string to be a success case, but return a null to the success handler or promise. As of 1.9, an empty string returned for JSON data is considered to be malformed JSON (because it is); this will now throw an error. Use the error handler to catch such cases." : (jQuery Core 1.9 Upgrade Guide). but for use this Clue , i must use this code :

				1-if(msg.responseText == ""){

otherwise (msg.responseText == "") only my solution . if we use (throw new ApplicationException("X")) and X not accept or other internal error in server , we have(msg.responseText == ""). in this session (msg.responseText == "") not a null result . please fix it in next version for found Null result . tanks . (Please forgive me for my English.)

Change History (1)

comment:1 Changed 9 years ago by Scott González

Resolution: notabug
Status: newclosed

This is not related to jQuery UI at all. Please use the forums or Stack Overflow for support.

Note: See TracTickets for help on using tickets.