473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 1413
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Joachim Spoerhase | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, does anybody know a good WYSIWYG MathML Equation Editor for Linux? Many thanks in advance Joachim Spoerhase -----BEGIN PGP...
2
by: Florian Huber | last post by:
Hello! i've got a Problem: I'd like to build a website, which contains HTML and MathML, but it should be readable for most of the site visitors. I know about the ways mentioned at the...
4
by: Jon Thackray | last post by:
I'm trying to build some mathml for a paper. I've got the mathml2 dtd, and the style sheets also from the canonical website http://www.w3.org/Math/. But I'm having some trouble. I've input the...
7
by: DKM | last post by:
I need an equivalent for the following: document.getElementById('equation').update(); from Mathplayer to use it in Mozilla based browser. When I change any text node, the page updates just...
1
by: Stefan Behnel | last post by:
Hi! I was looking for an implementation of a parser/model/serializer for Content MathML in Python. Does anyone know about something useful? I need to work with math expressions...
3
by: Michel de Becdelièvre | last post by:
I have some *performance* trouble reading MathML files in my application (in ASP.Net). - I have small MathML files (2-3k) as input - as (almost) all MathML files these use entities. I have no...
3
by: BakedBean | last post by:
Hi, This is probably really simple, but I've only just been asked to look at this and I've spent a full day trying to get it to work, so any help will be very gratefully received! At present...
3
by: Fred | last post by:
I'm experimenting with MathML, and have run into difficulty. Given the simple XML: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE component SYSTEM "mathml2.dtd"> <mathDisplay> <math> <msub>...
0
by: info | last post by:
I'd like to suggest a suite of MathML tools by Hermitech Laboratory, available at http://www.hermitech.ic.zt.ua. Software products of the greatest interest are: + free software for developers...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.