Difference between revisions of "PsTricks export"

From JSXGraph Wiki
Jump to: navigation, search
Line 1: Line 1:
<jsxgraph width="600" height="500" board="board" filename="Blubb81.nc.gxt"  />
+
<jsxgraph width="600" height="400" board="board" filename="Blubb81.nc.gxt"  />
 
<html>
 
<html>
 
<form>
 
<form>
  <input type='button' value='Do PSTricks' onclick='board.pstricks.givePsTricksToDiv("pstricksOutput",board);'>
+
  <input type='button' value='Export as psTricks' onclick='board.pstricks.givePsTricksToDiv("pstricksOutput",board);'>
 
</form>
 
</form>
 
<div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;">
 
<div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;">
 
</div>
 
</div>
 
</html>
 
</html>
 +
 +
===Underlying JavaScript code===
 +
<source lang="xml">
 +
<jsxgraph width="600" height="400" board="board" filename="Blubb81.nc.gxt"  />
 +
<html>
 +
<form>
 +
<input type='button' value='Export as psTricks' onclick='board.pstricks.givePsTricksToDiv("pstricksOutput",board);'>
 +
</form>
 +
<div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;">
 +
</div>
 +
</html>
 +
</source>
 +
 +
[[Category:Examples]]

Revision as of 12:01, 4 May 2009

Underlying JavaScript code

<jsxgraph width="600" height="400" board="board" filename="Blubb81.nc.gxt"  />
<html>
<form>
 <input type='button' value='Export as psTricks' onclick='board.pstricks.givePsTricksToDiv("pstricksOutput",board);'>
</form>
<div id="pstricksOutput" style="width:600px; height:400px; border:1px dashed black; overflow:scroll;">
</div>
</html>