crE
Members
-
Joined
-
Last visited
Reputation Activity
-
crE got a reaction from Chris Day in PHP/JSON/AJAX - Can't get the JSON data back when using Dropzone (file uploader)That worked immediately!
Thank you so much Lyndsey, and Nock D4Y0
-
crE reacted to Chris Day in PHP/JSON/AJAX - Can't get the JSON data back when using Dropzone (file uploader)what happens in the web console? (https://developer.chrome.com/devtools)
-
crE reacted to Lyndsey in PHP/JSON/AJAX - Can't get the JSON data back when using Dropzone (file uploader)You will need some sort of callback that reinitiates the Dropzone plugin, because once your AJAX request has finished, your code can no longer locate the #advancedDropzone element as it has been changed.
Why don't you simply alter the SRC of the image rather than replace the image itself?
e.g.
$('#advancedDropzone').attr('src', resp.changePhoto);