Unfortunately, to copy code off this page, you will have to do: View->Source (FireFox). I don't know why you can't copy off the screen ...

1. On a webpage that you will upload and link to yourself.

From within GeoGebra  Screencast

In GeoGebra, with your geogebra file created and saved:

1. Command File -> Export -> Dynamic Worksheet as Webpage
2. Type in the information you want:
3. Click on Advanced tab and we suggest:
Select: Show icon to reset construction
Select: Double click opens application window
Select: Show menubar, Show toolbar and Show Input field as you desire.
ONLY if application is to be used online Select: archive="http://www.geogebra.org/webstart/geogebra.jar"
4. Click on Export.
5. Upload to your site:
If access is online and you selected in the advanced tab, you need to upload only the html and the worksheet.
If access is offline, you need to upload the html, the worksheet and the java archive files (geogebra.jar, ...) in the folder.
6. Link to the html page:
Extras and explanations:
2. A wiki webpage like this:

Bare Bones

The code must be in a single line. So if you use copy & paste, you must remove the line breaks!
(:applet code="geogebra.GeoGebraApplet" codebase="Java/GeoGebra/" 
archive="http://www.geogebra.org/webstart/geogebra.jar" width="700" height="150" 
filename="http://mathcasts.org/mtwiki/uploads/GlossaryT/absolute_value1.ggb" 
showResetIcon="true" showToolBar="false" showMenuBar="false":)

Explanations:

This is the embed code for the GeoGebra interactivity use on this page.

Applet Commands    Applet Parameters

  • The (:applet at the beginning and the :) at the end is how this wiki (pmwiki) knows that a java applet like this activity is being "called".
  • The code="geogebra.GeoGebraApplet" codebase="Java/GeoGebra/" is sometimes shortened to: code="GeoGebraApplet" codebase="GeoGebra".
  • The archive="http://www.geogebra.org/webstart/geogebra.jar" states the location of the jar (java archive file). This URL (internet address) calls the latest version of GeoGebra from the geogebra.org website. Since by its nature a wiki webpage is online, it is good practice to use this line in a wiki. (See above section for offline code.)
  • The width="700" height="150" gives the width and height of the activity within the wiki page. Remember to plan for different sized monitors and resolutions as the width is "forced" and may not be visible on a smaller monitor.
  • The filename="http://mathcasts.org/mtwiki/uploads/GlossaryT/absolute_value1.ggb" is the filename/location of the GeoGebra (ggb) file to be loaded. This code needs to be changed by you with the name of your GeoGebra file (first you need to create it and upload it).
The following are the applet parameters and do NOT have to be included.
NOTE: The Algebra Window and the Spreadsheet are shown depending ONLY on the way the GeoGebra file is saved.
  • The showResetIcon="true" means that the reset icon will be shown (and available) in the top right corner of the activity. Default value is "false".
  • The showToolBar="false" means that the toolbar with the icons will not be shown (not available). Default value is "false", so this statement is not necessary. However, I tend to copy and paste code so I leave it there so I can easily change it to "true".
  • The showMenuBar="false" means that the menubar with the command will not be shown (not available). Default value is "false",...

  • The framePossible="true" is NOT stated because its default value is "true". When "true", the user can double-click on the activity and it will open as a separate window with both ToolBar and MenuBar available. In this way the user can save the file to his harddisk and use all the other commands-modes (provided he has GeoGebra installed).
  • The language="**" is NOT stated, where ** is the 2 letter language code. Without this, the activity will load in the user's default language. Putting in e.g. language="EN" forces English to be the language.
For more information see: GeoGebra Applet Parameters
3. A blog  

Wordpress blog - Sample (opens in new window)

Switch to HTML mode and do NOT switch back to VISUAL at any time!
Copy & Paste or type in the code
 <applet name="ggbApplet" code="geogebra.GeoGebraApplet" codebase="./" archive="http://www.geogebra.org/webstart/geogebra.jar" width="480" height="480">
   <param name="filename" value="   ***enter filename here***   ">
   <param name="framePossible" value="true">
   <param name="showResetIcon" value="true">
   <param name="enableRightClick" value="false">
   <param name="showMenuBar" value="false">
   <param name="showToolBar" value="false">
   <param name="showToolBarHelp" value="false">
   <param name="showAlgebraInput" value="false">
<i>Geogebra applet (enable Java to see it).</i>
</applet> 
Click on View Page to check it, then on Save and then on Publish.

Explanation:

  1. If at any time you switch to VISUAL mode, the code will be lost.
  2. I got this to work - if it doesn't work for you, please write and tell me!
4. A pbwiki webpage like this one: http://math247.pbwiki.com/GeoGebraEmbed

Details

A. Create your geogebra file. If you do NOT want the Algebra Window to be visible, close it and RE-SAVE your file!
B. Go to pbwiki site and upload your ggb file to the wiki. (If you don’t know how to do this, write me.)
C. Open for editing a pbwiki page.
D. Do what you want to the page, write your text, whatever.
E. Hit enter 4 times where you want the embedded applet to go. This will help you find the place in the code.
F. SAVE your PAGE and re-open for editing.

   WORK VERY SLOWLY – pbwiki is notorious about getting stuck when in source mode!

G. Click on Source. This will take you to the html code, but unfortunately the cursor is always at the top of the page (and not where you were when you hit Source).

    AT NO TIME CLICK ON SOURCE AGAIN to get back to the view page unless you have copied your code.  
Many times this will cause pbwiki to lock up. (I do ctrl+A, ctrl+C and then play around; I also swear a lot when I forget.)

H. Scroll down and look for:  

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

    This is the place where you hit enter 4 times.

I. Go to the end of the 2nd of these lines and hit Enter.
J. Copy and paste this code in:
<applet width="700" height="150" code="geogebra.GeoGebraApplet" codebase="Java/GeoGebra/" 
   archive="http://www.geogebra.org/webstart/geogebra.jar">
     <param name="filename" value="/f/absolute_value1.ggb" />
     <param name="framePossible" value="true" />
     <param name="showResetIcon" value="true" />
     <param name="enableRightClick" value="true" />
     <param name="showMenuBar" value="false" />
     <param name="showToolBar" value="false" />
     <param name="showToolBarHelp" value="true" />
     <param name="showAlgebraInput" value="false" />
     <param name="language" value="en" /> Sorry, the GeoGebra Applet could not be started. 
       Please make sure that Java 1.4.2 (or later) is installed and active in your browser 
       (<a href="http://java.sun.com/getjava">Click here to install Java now</a>)
</applet> 

1. Substitute the name of your file in place of absolute_value1.ggb

2. Change the values to “true” if you want to see the command line (MenuBar), the icons (ToolBar) and/or the input field at the bottom (AlgebraInput) field to show up on the page.
Applet Commands    Applet Parameters
  • The (:applet at the beginning and the :) at the end is how this wiki (pmwiki) knows that a java applet like this activity is being "called".
  • The code="geogebra.GeoGebraApplet" codebase="Java/GeoGebra/" is sometimes shortened to: code="GeoGebraApplet" codebase="GeoGebra".
  • The archive="http://www.geogebra.org/webstart/geogebra.jar" states the location of the jar (java archive file). This URL (internet address) calls the latest version of GeoGebra from the geogebra.org website. Since by its nature a wiki webpage is online, it is good practice to use this line in a wiki. (See above section for offline code.)
  • The width="700" height="150" gives the width and height of the activity within the wiki page. Remember to plan for different sized monitors and resolutions as the width is "forced" and may not be visible on a smaller monitor.
  • The filename="http://mathcasts.org/mtwiki/uploads/GlossaryT/absolute_value1.ggb" is the filename/location of the GeoGebra (ggb) file to be loaded. This code needs to be changed by you with the name of your GeoGebra file (first you need to create it and upload it).
The following are the applet parameters and do NOT have to be included.
NOTE: The Algebra Window and the Spreadsheet are shown depending ONLY on the way the GeoGebra file is saved.
  • The showResetIcon="true" means that the reset icon will be shown (and available) in the top right corner of the activity. Default value is "false".
  • The showToolBar="false" means that the toolbar with the icons will not be shown (not available). Default value is "false", so this statement is not necessary. However, I tend to copy and paste code so I leave it there so I can easily change it to "true".
  • The showMenuBar="false" means that the menubar with the command will not be shown (not available). Default value is "false",...

  • The framePossible="true" is NOT stated because its default value is "true". When "true", the user can double-click on the activity and it will open as a separate window with both ToolBar and MenuBar available. In this way the user can save the file to his harddisk and use all the other commands-modes (provided he has GeoGebra installed).
  • The language="**" is NOT stated, where ** is the 2 letter language code. Without this, the activity will load in the user's default language. Putting in e.g. language="EN" forces English to be the language.
For more information see: GeoGebra Applet Parameters

K. Click on SAVE to save your page.


Related Topics


 Up one level


Page last modified on December 06, 2008, at 12:46 PM