Difference between revisions of "Reference:GeoGebra App Parameters"

From GeoGebra Manual
Jump to: navigation, search
Line 3: Line 3:
 
You can use the following lines to include a GeoGebra construction in your html page. The construction file (e.g. "circle.ggb") have to be placed in the directory of your html page.
 
You can use the following lines to include a GeoGebra construction in your html page. The construction file (e.g. "circle.ggb") have to be placed in the directory of your html page.
 
<pre>&lt;applet code="geogebra.GeoGebraApplet"  archive="geogebra.jar"  
 
<pre>&lt;applet code="geogebra.GeoGebraApplet"  archive="geogebra.jar"  
   '''codebase="http://jars.geogebra.org/webstart/"'''
+
   codebase="http://jars.geogebra.org/webstart/"  
 
   width="500" height="300"&gt;
 
   width="500" height="300"&gt;
 
       &lt;param name="filename" value="circle.ggb" /&gt;
 
       &lt;param name="filename" value="circle.ggb" /&gt;

Revision as of 04:15, 3 October 2011

To include a GeoGebra Applet into an HTML page you could use "Export dynamic worksheet as webpage" in File Menu. However, for more advanced users, it is also possible to include the applet tag by hand.

Applet tag

You can use the following lines to include a GeoGebra construction in your html page. The construction file (e.g. "circle.ggb") have to be placed in the directory of your html page.

<applet code="geogebra.GeoGebraApplet"  archive="geogebra.jar" 
  codebase="http://jars.geogebra.org/webstart/" 
  width="500" height="300">
      <param name="filename" value="circle.ggb" />
      <param name="framePossible" value="false" />
Please  install Java 1.5 (or later) from www.java.com to use this page.
</applet>

Instead of filename parameter you may use ggbBase64 paramter with your file encoded in Base64. To obtain this code, just press Ctrl + Shift + M -- the whole applet tag with this code will appear in your clipboard.

Applet parameters

The following parameters may be used within the applet tag.

Name Value Description Since
filename e.g. file.ggb Path to the construction file. 2.5
type button if you use this parameter the applet will only show a button to open the GeoGebra application frame 2.5
framePossible true or false states if a double click on the drawing pad should open the GeoGebra application frame. This parameter is ignored if the type was set to "button", default: true 2.5
bgcolor e.g. #FFFFFF for white

|background color (as hex rgb string) of the applet. This parameter is only used if type "button" was set, default: white |2.5 |- |borderColor |e.g. #FFFFFF for white

color of the border line drawn around the applet panel (as hex rgb string), default: gray 3.0
enableChooserPopups true or false controls whether a popup menu is shown or not when you click on multiple objects. Default: true 3.2
enableRightClick true or false states whether right clicks should be handled by the applet. Setting this parameter to "false" disables context menus, properties dialogs and right-click-zooming. Default: true. NB also enables/disables some keyboard shortcuts eg Delete and Ctrl + R (recompute all objects) 3.0
enableLabelDrags true or false states whether labels can be dragged. Default: true 3.2
allowRescaling true or false Determines whether the applet will attempt to rescale the Graphics View when the applet is loaded or the size is changed (eg Zooming in the browser). Disabled if the Spreadsheet or Algebra View are showing. Default: false 3.2
enableShiftDragZoom true or false states whether the drawing pad should be moveable using Shift + mouse drag (or. Ctrl + mouse drag) or zoomable using Shift + mouse wheel (or Ctrl + mouse wheel). Setting this parameter to "false" disables moving and zooming of the drawing pad. Default: true 3.0
errorDialogsActive true or false states whether error dialogs will be shown if an invalid input is entered (using the Input Bar or JavaScript) Default: true 3.2
showMenuBar true or false states whether the menubar of GeoGebra should be shown in the applet, default: false 2.5
showToolBar true or false states whether the toolbar with the construction mode buttons should be shown in the applet, default: false 2.5
maxIconSize 16 to 32 maximum size of icons used in the toolbar in pixels, default: 32 3.2
showToolBarHelp true or false states whether the toolbar help text right to the toolbar buttons should be shown in the applet 3.0
customToolBar e.g. 0 1 2 3 , 4 5 6 7 sets the toolbar according to a custom toolbar string where the int values are Toolbar Mode Values, , adds a separator within a menu, | starts a new menu and || adds a separator in the toolbar before starting a new menu.Custom tools are numbered 1001, 1002, etc 2.5
showAlgebraInput true or false states whether the algebra input line (with input field, greek letters and command list) should be shown in the applet 2.5
allowStyleBar true or false States whether the style bar should be shown in the applet. Default: False 4.0
showResetIcon true or false states whether a small icon (GeoGebra ellipse) should be shown in the upper right corner of the applet. Clicking on this icon resets the applet (i.e. it reloads the file given in the filename parameter). 2.5
language iso language string
en ... English
fr ... French
it ... Italian
de ... German
es ... Spanish
pt ... Portuguese
zh ... Chinese
GeoGebra tries to set your local language automatically (if it is available among the supported languages, of course). The default language for unsupported languages is English. If you want to specify a certain language manually, please use this parameter. 2.5
country iso country string, e.g. AT for Austria This parameter only makes sense if you use it together with the language parameter. 2.5
ggbOnInitParam eg applet2

|This parameter allows you to specify the argument passed to the JavaScript function ggbOnInit(), which is called once the applet is fully initialised. This is useful when you have multiple applets on a page - see http://www.geogebra.org/source/program/applet/geogebra_applet_java2java.htm (will have no effect in earlier versions) |3.2 |- |java_arguments |eg -Xmx256m

This parameter allows you to specify more memory (in megabytes) for the GeoGebra applet. Works only in Java 6 update 10 or later (will have no effect in earlier versions) 3.2
© 2024 International GeoGebra Institute