Thank you again for your help about the JSXGraphPlugin and the subsequent explications. I try few exemples from http://jsxgraph.uni-bayreuth.de/wiki/index.php/Category:Examples, they are generaly working. But I try to put the button "add point" to the example "Lagrange interpolation" like the original, but I fail. The button appears but it's not working. FireBug log show 29 errors the last one is "addPoint is not defined"....
I dont know what append, it's like if the definition of function addpoint() it's not effective. Thats the code in my tiddler: <html> <form><input type="button" value="Add point" onClick="addPoint()"></form> <div id="box" class="jxgbox" style="height:400px; width:600px;"></div> </html> <script> var board = JXG.JSXGraph.initBoard('box', {originX: 250, originY: 250, unitX: 50, unitY: 25, axis:true}); var p = []; p[0] = board.create('point', [-1,2], {style:6}); p[1] = board.create('point', [3,-1], {style:6}); p[2] = board.create('point', [-3,0], {style:6}); var graph = board.create('functiongraph', [board.lagrangePolynomial(p), -10, 10]); function addPoint() { p.push(board.create('point',[(Math.random()-0.5)*10,(Math.random()-0.5)*3],{style:6})); board.update(); } </script> Thank Marc La Raison -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.