83
Out[4]=
1
1
1
1
1
1
1
1
1
1 x
In[5]:=
HTMLFormat@% D
Out[5]=
1 1 1 1 1 x 1 1 1
up> 1 1
For larger expressions it is recommended to use one of the versions of the formatting function MSPFormat to gain
a result in an image format or MathML.
HTMLSelect
As explained above, the MSP HTML package is available for webMathematica and can be installed into regular
Mathematica. It can then be loaded as shown below.
In[1]:=
Needs@ "MSP HTML "D
The function HTMLSelect provides a useful way to generate select tags with webMathematica. It takes a list of
the different options, and the name to be used when the selection is submitted. Its operation is shown below.
In[2]:=
HTMLSelect@ 8"a", "b", "c"<, "arg1"D
Out[2]=
It is also possible to set selections, by using the option SelectedOptions. In this example, the option labelled a
will be selected.
In[3]:=
HTMLSelect@ 8"a", "b", "c"<, "arg1", SelectedOptions O aD
Out[3]=
By default the values for the option tags are chosen automatically. It is also possible to set these with an argument.
In[4]:=
HTMLSelect@ 8"a", "b", "c"<, 8"x", "y", "z"<, "arg1"D
Out[4]=
The option SelectedValues can be used to set a selection based on the values.
In[5]:=
HTMLSelect@ 8"a", "b", "c"<, 8"x", "y", "z"<, "arg1", SelectedValues O yD
.
<
New Page 1
Comcast Web Hosting