Displaying Intergeo constructions: Difference between revisions

From JSXGraph Wiki
(New page: === 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...)
 
No edit summary
Line 3: Line 3:
into the division with the id "box".
into the division with the id "box".
<source lang="xml">
<source lang="xml">
<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div id="box" class="jxgbox" style="width:500px; height:500px;"></div>
<div id="box" class="jxgbox" style="width:500px; height:500px;"></div>
<script type="text/javascript">
<script type="text/javascript">
   var brd = JXG.JSXGraph.loadBoardFromFile('box', 'pythagoras.i2g', 'Intergeo');
   var brd = JXG.JSXGraph.loadBoardFromFile('box', '/geonext/intergeo1.xml', 'Intergeo');
</script>
</script>
</source>
</source>
<html>
<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div id="box" class="jxgbox" style="width:500px; height:500px;"></div>
<script type="text/javascript">
  var brd = JXG.JSXGraph.loadBoardFromFile('box', '/geonext/intergeo1.xml', 'Intergeo');
</script>
</html>
[[Category:Examples]]

Revision as of 16:22, 21 January 2009

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".

<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/prototype.js"></script>
<script type="text/javascript" src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<div id="box" class="jxgbox" style="width:500px; height:500px;"></div>
<script type="text/javascript">
  var brd = JXG.JSXGraph.loadBoardFromFile('box', '/geonext/intergeo1.xml', 'Intergeo');
</script>