I suspect the qt webengine has tightened security for cross site scripting.
I downloaded the tex-mml-chtml.js
<https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js> file and put
it into the same folder of
starting jqt and change the line to
src="tex-mml-chtml.js
<https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js>">

Then it can render the formula

On Sun, Apr 30, 2023 at 9:44 PM Don Guinn <[email protected]> wrote:

> The following script using MathJax works in jqt903 but fails in all
> subsequent releases including the current beta. The file is also attached
> as when I copied the script from below, even though it shows as
> double-spaced here it is all run into one line when I pasted it back into
> J. I hope that is acceptable.
>
> The release which works:
>
> JVERSION
>
> Engine: j903/j64avx2/windows
>
> Release-b: commercial/2022-01-28T04:09:50
>
> Library: 9.03.08
>
> Qt IDE: 1.9.5/5.15.2(5.15.2)
>
> Platform: Win 64
>
> Installer: J903 install
>
> InstallPath: c:/j903
>
> Contact: www.jsoftware.com
>
>
> The current beta version where it fails:
>
> JVERSION
>
> Engine: j9.5.0-beta1/j64avx2/windows
>
> Build: commercial/2023-04-22T15:17:12/clang-15-0-7/SLEEF=1
>
> Library: 9.5.1
>
> Qt IDE: 2.0.3/6.2.4(6.2.4)
>
> Platform: Win 64
>
> Installer: j9.5 install
>
> InstallPath: c:/j9.5
>
> Contact: www.jsoftware.com
>
>
>
> form=:0 : 0
>
> pc form closeok;
>
> cc view webview;
>
> )
>
>
> html=:0 : 0
>
> <!DOCTYPE html>
>
> <body>
>
> <script id="MathJax-script" async
>
> src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";>
>
> </script>
>
> <p>The Golden Ratio</p>
>
> \({\displaystyle phi= \frac {1 + \sqrt 5}2}\)
>
> </body>
>
> </html>
>
> )
>
>
> wd form
>
> wd 'psel form'
>
> wd 'setp wh 400 400'
>
> wd 'set view html ',html
>
> wd 'pshow'
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to