diff --git a/editor/SavedImage.svg b/editor/SavedImage.svg new file mode 100755 index 00000000..27a0d77c --- /dev/null +++ b/editor/SavedImage.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/editor/save.php b/editor/save.php new file mode 100644 index 00000000..45bd3699 --- /dev/null +++ b/editor/save.php @@ -0,0 +1,9 @@ + diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 6fd4860a..b5924a0d 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -12,7 +12,7 @@

SVG-edit @ http://svg-edit.googlecode.com/

- +

Click Here to see Saved Image

@@ -41,7 +41,7 @@ Circle
Delete
Clear
-Source
+Source

diff --git a/editor/svg-editor.js b/editor/svg-editor.js index a5c2e9b4..f0a2d15f 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -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); + }); }