--- loncom/homework/functionplotresponse.pm 2011/11/18 18:02:04 1.72 +++ loncom/homework/functionplotresponse.pm 2011/11/18 18:54:21 1.73 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # Functionplot responses # -# $Id: functionplotresponse.pm,v 1.72 2011/11/18 18:02:04 www Exp $ +# $Id: functionplotresponse.pm,v 1.73 2011/11/18 18:54:21 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -425,10 +425,9 @@ document.ggbApplet_$id.evalCommand("$poi document.ggbApplet_$id.evalCommand("$anglelabel=Angle[$pointlabel,$startlabel,$endlabel]"); document.ggbApplet_$id.setLabelVisible("$anglelabel",true); document.ggbApplet_$id.setLabelStyle("$anglelabel",VALUE=2); -// Keeps track of points we care about (This should use the same listener function we use in graph problems) -//document.ggbApplet1.registerObjectUpdateListener('Gravitystart','updatePointCoordinates'); -//document.ggbApplet1.registerObjectUpdateListener('Gravityend','updatePointCoordinates'); -//document.ggbApplet1.registerObjectUpdateListener('GravityAngle','updatePointCoordinates'); +document.ggbApplet_$id.registerObjectUpdateListener('$startlabel','updatePointCoordinates_$id'); +document.ggbApplet_$id.registerObjectUpdateListener('$endlabel','updatePointCoordinates_$id'); +document.ggbApplet_$id.registerObjectUpdateListener('$anglelabel','updatePointCoordinates_$id'); ENDVECTOR }