Extension:GeoGebra

What can this extension do?
Add a GeoGebra applet to your MediaWiki page.

GeoGebra applets use Java technology to combine an interactive geometry environment with the ability to directly enter equations and coordinates making it very useful in math education and math explorations.

Add a GeoGebra Applet tag to your MediaWiki page
With GeoGebra 3.2.33.0 or later you can export a GeoGebra file to a wiki very comfortably.

Use the new Export function of GeoGebra:

Use File - Export - Dynamic Worksheet as Webpage... Then go to "Advanced" and choose "Clipboard:MediaWiki" (bottom right).

Paste the clipoard to your wiki in edit mode. Done! This will create a tag like this:

You do not have to upload ggb files like in version 2.0p!

You can also pass other GeoGebra applet parameters. Example:

Usage of useLocalJar = true/false
By default,. That means, geogebra.jar is fetched from www.geogebra.at.

If geogebra.jar is not found at www.geogebra.at or if  is set explicitly, geogebra.jar will be searched in the same directory as GeoGebra.php.

Example:

If there is no connection to the Internet, and the Wiki is installed on a local server (e.g. using XAMPP), UseLocalJar="true" can be used with benefit.

Usage of useSignedJar = true/false
The parameter 'useSignedJar' has precedence over parameter 'useLocalJar'. If useSignedJar='true', the signed JAR files from www.geogebra.org are used. Digital signing makes it possible for the GeoGebra applet to change to an application by doubleclicking. This application is able to write GGB files to the local hard disc.

Why beta
New version 2.6m is tested with two wikis yet. It will become "stable" if tested with some more wikis!

Old stable version 2.0p was installed at five wikis at least!

Download instructions
Please cut and paste the code found below and place it in.

Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Upload the following files from http://www.geogebra.org/webstart/unsigned/unpacked/ to.
 * geogebra.jar
 * geogebra_cas.jar
 * geogebra_export.jar
 * geogebra_gui.jar
 * geogebra_main.jar
 * geogebra_properties.jar

If you want to use fast loading of Java applets, also upload the following packed files from http://www.geogebra.org/webstart/unsigned/packed/
 * geogebra.jar.pack.gz
 * geogebra_cas.jar.pack.gz
 * geogebra_export.jar.pack.gz
 * geogebra_gui.jar.pack.gz
 * geogebra_main.jar.pack.gz
 * geogebra_properties.jar.pack.gz

Make sure you use unsigned JAR files.

Installation
To install this extension, add the following to LocalSettings.php:

Use of unsigned JAR files
Digitally signed JAR files were used by GeoGebra to allow an applet to "turn into an application" and write to the local hard disc. But some users were frightened by the security alerts caused by the digital signature. In addition, a digital signature uses to expire, causing the security alerts to look even more frightening. Markus Hohenwarter and his team decided to deliver new, unsigned JAR files. Now the applets cause no security alerts, but cannot save a GeoGebra (ggb) file. If you want to create and save a ggb file, you have to use GeoGebra as an application.

New parameter ggbBase64 replaces filename
Use of filename="foo.ggb" is easy, if the JAR fileand the GGB fileare in the same subdirectory. But things become more complicated, if the GGB file is for example in a file repository of a wiki. The mechanism of retrieving the path to the GGB file sometimes sucked. (Very hard to debug, if the wiki is not your own and you have no admin rights to install new versions of the extension.)

Using the new parameter ggbBase64, you cam pass the content of a GGB file as a base64-encoded String. No filename is needed. No upload is needed.

Changes from 1.0u to 2.0p
See Version 2.0p

Change to 2.6n

 * 2.6m: New parameter ggbBase64 containing the ggb file (base64-encoded).
 * 2.6m to 2.6n: Avoiding errors in apache error log, suggestion of PrimeMogul, see Bigvir