javascript - How to set a specific json response object as a js var - Cloudinary -
i using cloudinary host profile images set users.
i'm using php web application -> here instructions provided cloudinary http://cloudinary.com/documentation/php_image_upload#overview
the problem encounter want display image directly after upload parsing newly created url image returned json.
when console.log provided cloudinary:
$(document).ready(function() { $('.cloudinary-fileupload').bind('cloudinarydone', function(e, data) { console.log(data); return true; }); });
this console.log response receive
can please me javascript or jquery function can use in order display updated image in image tag.
you need read tree...
jqxhr.responsejson.url
in case, use
data.result.url
see example of http://cloudinary.com/documentation/php_image_upload#preview_thumbnail_progress_indication_multiple_images
Comments
Post a Comment