Some GeoGebra monet queries
Some GeoGebra monet queries More information about GeoGebra can be found at the online geogebra help. At that place there is also information about GeoGebra Applet Parameters, and GeoGebra Applets and JavaScript. This is an example to start an applet. ]]> This is an example to start an applet and modify it during the start with JavaScript. var applet = document.ggbApplet2; applet.evalCommand("g(x)=f(x)*c"); ]]> var applet = document.ggbApplet2; applet.evalCommand("g(x)=f(x)*c"); This is an example to modify an applet using XForms. First create the applet (and optionally change some values with a script tag). var applet = document.ggbApplet3; applet.evalCommand("f(x)=x^2"); ]]> var applet = document.ggbApplet3; applet.evalCommand("f(x)=x^2"); A button can be added with another MONET query. Note that if xforms:label is omitted, the label of the button will become Update. Update var applet = document.ggbApplet3; applet.evalCommand("g(x)=2*(x-1)+1"); applet.setColor("g",127,255,127); ]]> Which is translated to: Update var applet = document.ggbApplet3; applet.evalCommand("g(x)=2*(x-1)+1"); applet.setColor("g",127,255,127); ]]> The result can be seen here: Update var applet = document.ggbApplet3; applet.evalCommand("g(x)=2*(x-1)+1"); applet.setColor("g",127,255,127);