Bug Tracker

Modify

Ticket #4326 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

json response

Reported by: veniamin.medvedev Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: Cc: flesler, veniamin.medvedev
Blocking: Blocked by:

Description

Hello in Your function httpData: function( xhr, type, s ) { You have if( typeof data === "string" ){

if ( type == "script" )

jQuery.globalEval( data );

if ( type == "json" )

data = windoweval?("(" + data + ")");

}

In my case I have data as an empty string I think You need to check if data isn't empty

Thanks

Change History

comment:1 Changed 4 years ago by flesler

  • Cc flesler, veniamin.medvedev added

Are you getting some kind of error ? Please include more details.

comment:2 Changed 4 years ago by brandon

  • Status changed from new to closed
  • Resolution set to invalid

If data is an empty string then there is nothing to eval. Not sure what the issue is here. Please feel free to reopen with a simplified test case.

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.