Displaying GEONExT constructions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 25: Line 25:


<html>
<html>
<div id="jxgbox2" class="jxgbox" style="width:600px; height:300px;"></div>
<div id="jxgbox2" class="jxgbox" style="width:500px; height:500px;"></div>
<script language="JavaScript">
<script language="JavaScript">
var brd = JXG.JSXGraph.loadBoardFromString('jxgbox2', "eNrtXPlv2zYU/jn+KwgEGFYgtSVZTmRUFdCk9TDsxJptLTBskG3a1iJLho7E7rD/fY83ZVM+kq65FAOt3uMpvu99JMXD/+bdTz+++3AZtPzf3v3y/tuffgzsds/2O0Jq+cM0zMZB68hPwjkOfoiKAsc5Tq4yPJoV2O9QNQRHySTN5mERpUngd3QJAsOymKUZ6PkDqEbpfI6TAnTiCZSTNCny6BMO7J7fkQLJfRy4kCutCNcd+fNwGc1BGAeTEOrkd5SCBC+Dbt9qW35nScVV0LeJtKLSTTQuZoFruUTFBKKe4Wg6KwLXPSV6LkGZHVYoQlBqOi7zwDuF4ugTfZc0G0dJWGAQ0RFXiFoxgeqnWSTV9Jlq8yRcCC19JjVJs2gakcajb+JY6k3IqzhWX71LR8QlmX1K07lIZVfSaG/fYbFI/DKJChG/Vy2EiTwFi0dSFDiTJWixZUwWTmLG4RDHIupSi7uSkXkUEntexkVUnzG00yy9WcqGooLUr3Q9z5tnyAySFFFSptRetAAeXZbCZZ5Uj494EXpLbU+tYpO0AEpZapGVejIm8lQsHkmxTNOVSDH98D3WjTL9SGWehsUkaa4jfLNIM17DIl0Ebtv2wBrpgqliPCmClxTv9JEqh2lRABJesrhcoiEZhX633Qd9xt0AClTFoCMObQV8X2EaIEsrjRhcaYWpIbI0z6VnUIEbKAZeOL6wyG8wIFkTBQ0bh/mMNxV9pMpFGgE9aJ6jFMRfRU38YTi6mmZpmTBS4OUM+J8sB4ImUYw5oLIRoI78y41Q9QvlFoJHrAqLSBqxKiQCtRJF+NE8nOKg3W4DqdFHoBaEwAJabRFVARLHEeHRnGuodhwWYfC71b6O8mgY49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MRrumYueuMWuHpa19HN4qVGBx7qWjMYM6lbLH5YgJfQmbrK5SRNbPjupbb0il2HTM9v+TSo6MPLUYmsKrKk64trz/wCKsKLA", 'Geonext');
</script>
</script>
</html>
</html>

Revision as of 12:01, 17 September 2008

Loading a GEONExT construction from a file

Here, we load the content of the GEONExT file "pythagoras.gxt" into JSXGraph, i.e. into the division with the id "box".

<div id="box" class="jxgbox" style="width:500px; height:500px;"></div>
<script type="text/javascript">
  var brd = JXG.JSXGraph.loadBoardFromFile('box', 'pythagoras.gxt', 'Geonext');
</script>

Loading a GEONExT construction from a string

The content of a GEONExT file is a string which contains the GEONExT XML description of the construction compressed by gzip and encoded with base64. This string can be written directly into the HTML file. Here is an example:

<div id="jxgbox2" class="jxgbox" style="width:500px; height:500px;"></div>
<script type="text/javascript">
  var brd = JXG.JSXGraph.loadBoardFromString('jxgbox2', 'eNrtXOtv48YR/2z9FQv...+A+Ve+/sNQRlkZsVVddkvk/CpkHvA==', 'Geonext');
</script>