Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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/
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal-ajax-parseJSON.patch | 510 bytes | dawehner |
Comments
Comment #1
dawehnerThe patch got lost.
Comment #2
aspilicious CreditAttribution: aspilicious commentedeasy rtbc...
Comment #3
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.