Fixed issue 9 - Add Save svg to Server feature
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@46 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -194,5 +194,17 @@ $(document).ready(function(){
|
||||
})
|
||||
|
||||
var serializeHandler = function(svg) {
|
||||
alert(svg);
|
||||
//alert(svg);
|
||||
submitSvgStr(svg);
|
||||
}
|
||||
|
||||
function submitSvgStr(str){
|
||||
//alert("This is svg image in string format \n This will be posted to server \n " + str)
|
||||
//posting the data to server
|
||||
$.post(
|
||||
"save.php",
|
||||
{svg_data: escape(str)},
|
||||
function(data){
|
||||
alert(data);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user