MathJax and miserver

MiServer is Dyalog's APL-based web development framework

Re: MathJax and miserver

Postby bwyork67 on Wed Nov 08, 2017 11:45 pm

Brian

Wow!!! This is great. A template solves a lot of my problems. I will pull down
your MathJax website and follow the example.

For RESTful I am envisioning the student client who fills in an input box in Latex and data is returned to miserver, where I do some processing (my own apl code) before causing the Latex to be displayed in a field on the
the client's browser, as well as some additional content based on my apl code.

I am assuming that RESTfull will be more efficient that sending an entire page.

Bryant
bwyork67
 
Posts: 13
Joined: Tue Nov 12, 2013 7:01 pm

Re: MathJax and miserver

Postby bwyork67 on Fri Nov 10, 2017 1:39 am

Hi Brian

I did all the modifications you suggested and they work fine. I am having
trouble with the following:

getting input from an editField as a Latex string; triggering the callback function,
and then having the callback function render the Latex in a div or another editField.

I probably do not understand fully how "replace" works.

If you have some ideas, I welcome them.

Thx

Bryant
bwyork67
 
Posts: 13
Joined: Tue Nov 12, 2013 7:01 pm

Re: MathJax and miserver

Postby bwyork67 on Fri Nov 10, 2017 11:18 pm

Hi Brian
I am having difficulty replacing a div dynamically and forcing MathJax to typeset
the new math. I tried following the description for dynamic pages but cannot
get the implementation of dynamic MathJax to work.

Here is a link to the documentation:
https://docs.mathjax.org/en/v1.0/typeset.html

Any help would be greatly appreciated.

Thx

Bryant
bwyork67
 
Posts: 13
Joined: Tue Nov 12, 2013 7:01 pm

Re: MathJax and miserver

Postby Brian|Dyalog on Mon Nov 13, 2017 8:28 pm

User avatar
Brian|Dyalog
 
Posts: 72
Joined: Thu Nov 26, 2009 4:02 pm
Location: West Henrietta, NY

Re: MathJax and miserver

Postby bwyork67 on Mon Nov 13, 2017 11:50 pm

Brian

Thanks, You solved my problem (again!). I was trying to get MathJax to reprocess the page
with the MathJax.Hub.Typeset() command.

I have been pasting things together and trying
to understand how miserver works by reading the examples.
Is it possible for me to get a copy of your workshop slides from Dyalog 2015.

Thanks

Bryant
bwyork67
 
Posts: 13
Joined: Tue Nov 12, 2013 7:01 pm

Previous

Return to MiServer

Who is online

Users browsing this forum: No registered users and 1 guest