11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

94 webMathematica User GuideManipulate Example: Slider, Checkbox, and PlotSlider, Checkbox, and PlotNeeds["MSPManipulate`"]MSPManipulateHeader[$$updateArgs, $$manipulateNumber]MSPManipulate[ Plot[ Cos[var+x], {x,0,2Pi}, Frame -> frame], {var, 0,20},{frame, {True,False}}, OutputSize->{621, 384}]There are three key parts to this page. First, the MSPManipulate` package is loaded withNeeds, as shown below. This must be done in its own evaluate tag, and at the start of thepage.Needs["MSPManipulate`"]Secondly, the special header is put down, with a call to MSPManipulateHeader. This must referto the variables $$updateArgs and $$manipulateNumber exactly as shown (note that youcannot rename these variables). MSPManipulateHeader initializes the interactive features.MSPManipulateHeader[$$updateArgs, $$manipulateNumber]Finally, you have to add the actual interactive code. This is done with a call to MSPManipulate;an example follows.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!