Synchronous file load: Difference between revisions
From JSXGraph Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<jsxgraph width="500" height="500"> | <jsxgraph width="500" height="500" modules="GeogebraReader"> | ||
var board = JXG.JSXGraph.initBoard('jxgbox'); | var board = JXG.JSXGraph.initBoard('jxgbox'); | ||
JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/ | JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/point.ggb', board, 'GeoGebra', false); | ||
board.create('point',[0,0],{fixed:true, name:'jsxpoint1', size:1}); | |||
var J = JXG.getReference(board, "jsxpoint1"); | |||
var G = JXG.getReference(board, "geogebrapoint1"); | |||
J.setProperty({size: 10}); | |||
G.setProperty({size: 10}); | |||
</jsxgraph> | </jsxgraph> | ||
<source lang="javascript"> | <source lang="javascript"> | ||
var board = JXG.JSXGraph.initBoard('jxgbox'); | var board = JXG.JSXGraph.initBoard('jxgbox'); | ||
JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/ | JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/point.ggb', board, 'Geogebra', false); | ||
</source> | </source> | ||
[[Category:Examples]] | [[Category:Examples]] |
Revision as of 17:57, 7 March 2012
var board = JXG.JSXGraph.initBoard('jxgbox');
JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/point.ggb', board, 'Geogebra', false);