In my HTML form I have 3 buttons. Each button calls different .mx files, based upon an .mx file data. listplot will be created in another jsp page. I placed all .mx files under WEB-INF/Applications.

I wrote 3 functions in Javascript. Inside these functions I wrote the webMathematica code between <msp:evaluate>tags. However the code doesn't seem to be working inside a Javascript function. I wrote the functions in the following way:

function button1()
        var id=document.getElementById("name");

I called this function in the following way:

 <input type="button" value="Button1" onclick="button1()"/>
  • $\begingroup$ You have to use jQuery or Ajax or something like this. I have not done this and have no time right now, but please check out this and let us know if you get it working for MSP. $\endgroup$ Commented Jun 7, 2013 at 8:32


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.