471,089 Members | 1,564 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Seriously, what doesn't this workin IE but works in FF? MathML & DOM

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
]>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Minimum Document with MathML</title>
<script>
var pi=Math.PI
function JUMPING()
{
var xx=document.getElementById("fVolume").value;
document.getElementById("Calculation").style.visib ility="";
alert(document.getElementById("AreaPi").innerHTML) ;

document.getElementById("AreaPi").firstChild.data= Math.round((xx/pi)*100000)/100000;

document.getElementById("SqAreaPi").firstChild.dat a=Math.round(Math.sqrt(xx/pi)*100000)/100000;

document.getElementById("X").firstChild.data=2*Mat h.round(Math.sqrt(xx/pi)*100000)/100000;
}
</script>
</head>
<body>
<input type="int" id="fVolume"></input>
<input type="button" onclick="JUMPING()"
value="Calculate"></input>
<p>
<b>
<math xmlns="&mathml;">
<mrow>
<mi>A</mi>
<mo>=</mo>
<mi>&pi;</mi>
<mo>&InvisibleTimes;</mo>
<msup>
<mi>R</mi>
<mn>2</mn>
</msup>
</mrow>
</math>
<br></br>
<math xmlns="&mathml;">
<mrow>
<mi>V</mi>
<mo>=</mo>
<mi>A</mi>
<mo>&InvisibleTimes;</mo>
<mi>H</mi>
</mrow>
</math>
<br></br>
<math xmlns="&mathml;">
<mrow>
<mi>H</mi>
<mo>=</mo>
<mi>1</mi>
</mrow>
</math>
</b>
</p>
<p>
<math xmlns="&mathml;">
<mrow>
<mfrac>
<mrow>
<mi>A</mi>
</mrow>
<mrow>
<mi>&pi;</mi>
</mrow>
</mfrac>
<mo>=</mo>
<msup>
<mi>R</mi>
<mn>2</mn>
</msup>
</mrow>
</math>
<br></br>
<math xmlns="&mathml;">
<msqrt>
<mrow>
<mfrac>
<mrow>
<mi>A</mi>
</mrow>
<mrow>
<mi>&pi;</mi>
</mrow>
</mfrac>
</mrow>
</msqrt>
<mo>=</mo>
<mi>R</mi>
</math>

<div style="visibility:hidden" id="Calculation">
<math xmlns="&mathml;">
<msqrt>
<mrow>
<mi id="AreaPi">Z</mi>
</mrow>
</msqrt>
<mo>=</mo>
<mi>R</mi>
</math>
<br></br>
<math xmlns="&mathml;">
<mrow>
<mi id="SqAreaPi">z</mi>
</mrow>
<mo>=</mo>
<mi>R</mi>
</math>
<br></br>
<math xmlns="&mathml;">
<mrow>
<mi>D</mi>
</mrow>
<mo>=</mo>
<mi>2</mi>
<mo>&InvisibleTimes;</mo>
<mi>R</mi>
</math>
<br></br>
<math xmlns="&mathml;">
<mrow>
<mi>D</mi>
</mrow>
<mo>=</mo>
<mi id="X">X</mi>
</math>
</div>
</p>
</body>
</html>

Dec 7 '05 #1
3 1334
da*********@yahoo.com wrote:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
]>
[...]


Missing prose. However, that document is not Valid XHTML 1.1
plus MathML 2.0, and IE does not support XHTML at all. Seriously.
PointedEars
Dec 8 '05 #2
I have the plugin installed - for MathML. The header information is
right from the example on MathML's site...

I wish there was a better way to display dynamic mathematical formulas
on the web. I'd hate to just use PHP and generate a GIF image.

Thanks for your post, I'm still in search of a solution.

Dec 16 '05 #3
da*********@yahoo.com wrote:
[null quote]
<URL:http://jibbering.com/faq/faq_notes/pots1.html#ps1Post>

Use "Options", "Reply" instead of only Reply in Google Groups.
I have the plugin installed - for MathML.
Then the plugin should facilitate IE's support for MathML and perhaps
XHTML 1.1.
The header information is right from the example on MathML's site...


URL?
PointedEars
Dec 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Joachim Spoerhase | last post: by
2 posts views Thread by Florian Huber | last post: by
4 posts views Thread by Jon Thackray | last post: by
1 post views Thread by Stefan Behnel | last post: by
3 posts views Thread by Michel de Becdelièvre | last post: by
3 posts views Thread by BakedBean | last post: by
3 posts views Thread by Fred | last post: by
reply views Thread by info | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.