success: function (response, status) {
      // Sanity check for browser support (object expected).
      // When using iFrame uploads, responses must be returned as a string.
      if (typeof response == 'string') {
        response = $.parseJson(response);
      }
      return ajax.success(response, status);
    },

This code does not work, it returns a $.parseJson is not a function
The function from jquery is called parseJSON, see http://api.jquery.com/jQuery.parseJSON/

CommentFileSizeAuthor
#1 drupal-ajax-parseJSON.patch510 bytesdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

FileSize
510 bytes

The patch got lost.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

easy rtbc...

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.