It is that I need to send a preview of an image in a div in specific, taking the route of the image stored in the database and for this run a successful Ajax send the image.
success: function(respuesta) {
var preview = document.getElementById("archivoRadicado").value = respuesta;
$('#vistaPrevia').innerHTML = '<embed src="'+preview +'"/>';
},
error: function(xhr,err) {
alert("Error");
}
And the <embed />
html control the path to receiving the route but I did not get anything, no errors or éxtito, I can do or have mistake?
This is where you should go div preview
<div id="vistaPrevia" style="width=100%; height:490px;">
</div>