Properties
Similar Topics
Statistics
Comments
3
Participants
3
Subscribers
0
Votes
1
Views
632
Share
Answered
We wrote a script to retrieve information about an applet.
We wonder how to retrieve object states like AbsolutePosition, Fixed, Condition, DynamicColors, etc.
We found setFixed(String objName, boolean flag).
How about getFixed(String objName)?
Kind regards,
Henk Hietbrink
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2022 International GeoGebra Institute
Try: getXML(String objName)
getXML results in a long string and implies a lot of text manipulation to retrieve the specific characteristic. There is no easy way which delivers a boolean?
Has someone made a javascript function available that returns a boolean?
Not tested, but this might work:
function isFixed(name){
return ggbApplet.getXML(name).indexOf("<fixed val=\"true\">) > -1;
}
Comments have been locked on this page!