Uploading to web breaks geogebra app

cemccourseware shared this question 2 years ago
Answered

The attached app works on a mac, but when it is uploaded to geogebra.org, one line of code it no longer works. The code to move the frogs is in the click script of the moveActiveFrog button. When a frog is moved, several commands are executed with the Execute command. When the app is loaded to geogebra.org, one SetValue command in this execute list does not get executed. "SetValue(openSpot,activeFrog)"

Can anyone explain why this works on a mac, but not when uploaded to the web? Any insight would be helpful!

Comments (2)

photo
1

You should avoid use of "=" in scripts. For example Instead of

activeFrog=Element(rightFrogs,3)

maybe try

SetValue(activeFrogNumber,3)

photo
1

Thank you. Using SetValue instead = solved the problem.

© 2021 International GeoGebra Institute