Код: Выделить всё
$.ajax({
data: { compare : send_image_name },
url: 'get_panorama.php',
method: 'POST', // or GET
success: function( path_to_panorama_response )
{
var path_to_panorama = JSON.parse( path_to_panorama_response );
var square1 = document.createElement('div');
var image = document.createElement('img');
square1.id = 'square1';
image.id = 'uploaded_image';
image.src = path_to_panorama[0];
square1.appendChild( image );
document.body.appendChild( square1 );
}
});
Подробнее здесь: https://stackoverflow.com/questions/342 ... javascript
Мобильная версия