11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

webMathematica User Guide 93If[day =!= Null,dayPT = Mod[dayPT + 1, 7, 1];"The day after the day selected is " Part[days, dayPT] "."]In this example, the input parameter $$daySelected is inspected and used to determine whichday was selected. The second evaluation actually puts down the select tag, showing how easythis is. The last evaluation computes the day after the day selected by incrementing the dayPTvariable and then takes its modulus with respect to 7 with an offset of 1.Interactive Web ToolsOne of the key features of Mathematica 6 was a simple way to construct user interfaces. Previously,user interface construction required specialist knowledge and expertise as well as complicatedtools. The result was that many users were not able to create their own user interfaces,they would work with specialists or go without the extra facility of a user interface. However,the new ideas and technology based on Manipulate, allowed users to create a wide range ofinteresting user interfaces without their needing to learn this special knowledge.webMathematica 3 introduced a web version of Manipulate technology, which is covered in thissection.Example: SliderPlot.jspThe core of an example web page that demonstrates the web interactive tools isSliderPlot.jsp. If you installed webMathematica, you should be able to connect to this pagevia http://localhost:8080/webMathematica/Examples/Manipulate/SliderPlot.jsp. (You may havesome other URL for accessing your server.) The source for this page is in webMathematica/Examples/Manipulate/SliderPlot.jsp.The source is shown below.

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

Saved successfully!

Ooh no, something went wrong!