Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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()"/>
share|improve this question
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. – Rolf Mertig Jun 7 '13 at 8:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.