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:
Narendra Sisodiya
2009-06-06 20:55:23 +00:00
parent 7e9dc51d82
commit 35e68a1dd5
4 changed files with 36 additions and 3 deletions

View File

@@ -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);
});
}