Search code examples
javascriptajaxwolfram-mathematicawolframalpha

Complex wolframalpha ajax query


I want to write formulas in Mathematica format in my blog, inside tag's formula. What js should I use (and what libary), to replace those tag's, with http://www.wolframalpha.com/ search result image, when Dom gets loaded?

For example:

<formula>Limit[((3 + h)^(-1) + -1/3)/h, h -> 0]</formula>

gets replaced with: alt text

If it's to complex or can not be done with javascript, please explain why.


Solution

  • You need to use wolframalpha API service, but it's not free and you can't do this using javascript because of same origin policy, only using server-side language.