Difference between revisions of "Synchronous file load"

From JSXGraph Wiki
Jump to: navigation, search
(Created page with "<jsxgraph width="500" height="500"> var board = JXG.JSXGraph.initBoard('jxgbox'); JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/Unendlich.gxt', board, ...")
 
Line 5: Line 5:
  
 
<source lang="javascript">
 
<source lang="javascript">
  var brd = JXG.JSXGraph.loadBoardFromFile('jxgbox', 'http://jsxgraph.uni-bayreuth.de/geonext/Unendlich.gxt', 'Geonext');
+
var board = JXG.JSXGraph.initBoard('jxgbox');
 +
JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/Unendlich.gxt', board, 'Geonext', false);
 
</source>
 
</source>
  
 
[[Category:Examples]]
 
[[Category:Examples]]

Revision as of 19:49, 7 March 2012

var board = JXG.JSXGraph.initBoard('jxgbox');
JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/Unendlich.gxt', board, 'Geonext', false);