upresnim to tedy:
js:
var structureSVG = svgpic.outerHTML;
$.ajax({
type:'POST',
url: '/pdf/uploadSVG.php',
dataType: 'json',
contentType: 'application/json',
data:'structureSVG='+structureSVG,
success: function() { alert("Success"); },
error: function() { alert('Failed!'); },
});
php:
<?php
$post_data = $_POST['structureSVG'];
var_dump($post_data);
?>
browser vyhodi Failed!