| Author |
Comment/Response |
Richard
|
12/17/12 12:18pm
In Response To 'Re: WebMathematica: Separating Functions and JS...' --------- I have experimented with 'get' but may be incorrect in my application of the method.
Within the JSP file I use get as follows:
<msp:evaluate>
Get[ "BasicModel`"];
</msp:evaluate>
<Some html>
<msp:evaluate>
GetVarsB["x+y-z==0"]
GetVarsA["x+y-z==0"]
</msp:evaluate>
------------------------
In the same directory folder I have a file called 'BasicModel.m', this contains the following text:
BeginPackage["BasicEqMuncher`"]
GetVarsB[thisconstraintlist_] :=
DeleteDuplicates[
<snipped for clarity>
]
Begin["`Private`"]
GetVarsA[thisconstraintlist_] :=
DeleteDuplicates[
<snipped for clarity>
]
End[]
EndPackage[]
------------------------
Do you see a problem with the above use of 'get' or WebMathematica? Neither GetVarsA or GetVarsB appear to be understood as functions within the JSP file.
Thanks.
URL: , |
|