examples/form/dynamic.html
authorChris <chris@roojs.com>
Tue, 8 Oct 2013 09:19:30 +0000 (17:19 +0800)
committerChris <chris@roojs.com>
Tue, 8 Oct 2013 09:19:30 +0000 (17:19 +0800)
examples/form/dynamic.html

index f73891c..f30f8fd 100644 (file)
     
     
     
-    <p>Please sign on the dotted line below.</p>
-    <iframe src=signature.svg></iframe>
-    <div>
-    <button onclick=showSignature()>Show signaure path data</button>
-    <button onclick=clearSignature()>Clear signature</button>
-    <div id=pathdata></div>
-    </div>
-    <script>
-    var svg = document.getElementsByTagName('iframe')[0].contentWindow;
-    var pathdata = document.getElementById('pathdata');
-
-    function showSignature() {
-        pathdata.textContent = svg.getSignature();
-    }
-
-    function clearSignature() {
-        svg.clearSignature();
-        pathdata.textContent = '';
-    }
-    </script>
+