Input Box attach to movable point

Euklid Olsen shared this question 3 years ago
Answered

Hello everyone,

I am currently experiencing a problem that I'm hoping someone could help me get rid of:

I've defined a slider a, which takes the value 0 or 1, a point A=(a,0) and finally an Input Bar which position starts at A. Now, in the Geogebra Applet the Input Bar moves along with the point A as the value a changes from 0 to 1 (or 1 to 0), exactly as one, or at least I, would expect it to do.

In addition I have created a button that simply changes the value of a and, hence, also the point A=(a,0). And here is the problem: In the Activity view the Input Bar does not move along with the point A as I press the button and I just can not see why.

Have I made a mistake and in that case can anyone tell me how to fix the problem or do you experience a similar problem?

Edit: I am using the online Geogebra Applet

Best Answer
photo

put in properties of A-->scripting-->on update the command updateconstruction()

Comments (3)

photo
1

please attach the file or a link to resource

https://help.geogebra.org/t...

photo
1

This is not the actual file I'm working on, however the problem still appear to occur:https://www.geogebra.org/m/gpqubrfe

Hope the link works

photo
1

put in properties of A-->scripting-->on update the command updateconstruction()

photo
© 2023 International GeoGebra Institute