]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gtkmathview-bonobo/test/embedding.xml
ocaml 3.09 transition
[helm.git] / helm / gtkmathview-bonobo / test / embedding.xml
index b0d12e52d0bf20e58002406bfd1cd0d589f3e045..57fe49a87bf27fde705483ebe602058c4b017f13 100644 (file)
@@ -1,7 +1,19 @@
 <?xml version="1.0"?>
 <html xmlns="http://www.w3.org/1999/xhtml">
 
-<head> </head>
+<head>
+  <script language="JavaScript">
+<!--
+    function setSize(id, width, height)
+    {
+      document.elements[id].width = width;
+      document.elements[id].height = height;
+      document.elements['eccolo'].value = 'Ciao';
+      alert('hello!');
+    }
+-->
+  </script>
+</head>
 
 <body>
 
   The embedded object should display a mathematical formula.
   <br />
 
-  <object data="#math1" width="500" height="100" type="application/mathml+xml">
-    No viewer capable of displaying the test document installed.
-    <input type="hidden">
-      <math id="math1" display="block" xmlns="http://www.w3.org/1998/Math/MathML">
-        <mfrac>
-          <mi href="http://www.google.it">x</mi>
-         <mn>2</mn>
-       </mfrac>
-       <mo>=</mo>
-        <mtext href="javascript:alert('like if I can do that')">click for the answer</mtext>
-      </math>
-    </input>
+  <object name="MATH" data="#math1" width="500" height="100" type="application/mathml+xml">
+    <math id="math1" display="block" xmlns="http://www.w3.org/1998/Math/MathML">
+       <mfrac>
+         <mi href="http://www.google.it">x</mi>
+         <mn>2</mn>
+       </mfrac>
+      <mo>=</mo>
+      <mtext href="javascript:alert('like if I can do that')">click for the answer</mtext>
+    </math>
   </object>
 
-  </body>
+  <form name="test">
+    <input name="eccolo" type="button" onClick="alert('hi')">Size</input>
+  </form>
+
+</body>
 
 </html>