attributeName | value |
customizable | "0" or "1" |
mathURL | the path of ".html" file |
EditorSize | "width,height" |
toolbarID | toolbarID |
templateID | templateID |
editingmode | editingmode |
Customization Result1 | Customization Result2 | Customization Result3 | Customization Result4 | Customization Result5 |
<input id="btn1" type="button" value="Get TemplateID Value" onclick="matheditWin2.get('templateID');" />
Click this button to get the above TemplateID Value.
TemplateID Value:
Example2:<input id="btn2" type="button" value="Get MathML Content Code" onclick="matheditWin2.get('mathContent');" />
Click this button to get the above MathML Content Code.
Your Entered Math Expression:
Example3:<input id="btn3" type="button" value="Get Infix Expression Code" onclick="matheditWin2.get('mathInfix');" />
Click this button to get the above Infix Code of Math expression.
Your Entered Math Expression:
Example4:<input id="btn4" type="button" value="Get MathML Presentation Code" onclick="matheditWin2.get('mathPresentation');" />
Click this button to get the above Infix Code of Math expression.
Your Entered Math Expression:
<input id="btn5" type="button" value="Get All Attribute Names" onclick="matheditWin2.getAttributeNames();" />
Click this button to get All Attribute Names.
All Attribute Names:
<input id="btn6" type="button" value="Get All Attribute Values" onclick="matheditWin2.getAttributeValues();" />
Click this button to get All Attribute Values.
All Attribute Values:
matheditWin2.editMathByCode(Str,cType)
Str: the content code or infix code of a math expression.
cType: the type of code ('1':content code;'2':infix code).
Example:
<input id="btn7" type="button" value="Display Math Expression" onclick="matheditWin2.editMathByCode(document.getElementById('mcode').value,'1');" />
Please input math expression code(must be content code because the value of "cType" is '1'):
Click this button to Edit math expression.
Convert(Str,cType)
Str: the content code or infix code of a math expression.
cType: the type of conversion ('1':conversion from content code to infix code;'2':conversion from content code to presentation code;'3':conversion from infix code to content code;'4':conversion from infix code to presentation code;).
Example:
<input id="btn8" type="button" value="Covert from infix to MathML Content" onclick="Convert(document.getElementById('mathcode').value,'3');" />
Please input math expression code(must be Infix because the value of "cType" is '3'):
Click this button to convert code form.
Example:
<iframe id="embed5" frameborder="0" width="850" height="480" scrolling="no"></iframe>
<script type="text/javascript">
var matheditWin=new mathedit("matheditWin");
matheditWin.set("customizable","0");
matheditWin.set("mathURL","mathedit/matheditI.html");
matheditWin.display("embed5");
</script>