Difference between revisions of "Displaying GEONExT constructions"

From JSXGraph Wiki
Jump to navigationJump to search
(New page: === 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". <source lang="xml"> <div i...)
 
Line 6: Line 6:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
   var brd = JXG.JSXGraph.loadBoardFromFile('box', 'pythagoras.gxt', 'Geonext');
 
   var brd = JXG.JSXGraph.loadBoardFromFile('box', 'pythagoras.gxt', 'Geonext');
</script>
 
</source>
 
 
=== Loading a Intergeo construction from a file ===
 
Here, we load the content of the Intergeo file "pythagoras.i2g" into JSXGraph, i.e.
 
into the division with the id "box".
 
<source lang="xml">
 
<div id="box" class="jxgbox" style="width:500px; height:500px;"></div>
 
<script type="text/javascript">
 
  var brd = JXG.JSXGraph.loadBoardFromFile('box', 'pythagoras.i2g', 'Intergeo');
 
 
</script>
 
</script>
 
</source>
 
</source>

Revision as of 21:42, 15 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>