Render Mathml content in html input box or textarea

426 views
Skip to first unread message

srikant...@gmail.com

unread,
Nov 28, 2013, 1:16:41 PM11/28/13
to mathja...@googlegroups.com
Hi,

I have one requirement in which currently in my webpage, I have one input "text" or "textarea" which contains MathML as a text value.
I want to render text value in text box its self

Eg: 

<asp:Textbox id="txtMath" runat="server" Text="<math display='block'> <mrow> <mstyle displaystyle='true'>  <mrow><mo>&#x222B;</mo><mrow><mi>x</mi><mi>d</mi><mi>x</mi></mrow></mrow></mstyle></mrow></math>" />

I want render above Mathml in Textbox its self

Any help

Thanks,

Peter Krautzberger

unread,
Feb 12, 2014, 3:02:23 PM2/12/14
to mathja...@googlegroups.com
Hi,

You'll have to render MathML outside of a plain text environment, e.g., replace the plain text environment on the fly. The two examples in our repository might give you an idea how to do this -- https://github.com/mathjax/MathJax/blob/master/test/sample-dynamic.html and https://github.com/mathjax/MathJax/blob/master/test/sample-dynamic-2.html.

Regards,
Peter.


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages