Jqmath - applied after page loading

I would like to apply the jqMath script after the page loads.

The problem is that I am making an ajax call that fetches some jqMath syntax and loads it into the div section of the main page.

However, the syntax is not currently parsed. How can I ensure jqMath starts when the ajax call returns and is applied to the corresponding div section?

+3
math parsing triggers jqmath
Dec 15 2018-11-11T00:
source share
2 answers

Call M.parseMath(myDiv); after loading myDiv .

For example, jqMath automatically executes M.parseMath(document.body); after the initial loading of the page.

+3
Dec 15 '11 at 18:56
source share

The above may not work if you use the global variable M for something other than jqMath. The jqMath.parseMath(element); should be to call jqMath.parseMath(element); e.g. jqMath.parseMath(document.body);

+2
Jul 06 '15 at 14:49
source share



All Articles