Properties
Category
English
Similar Topics
Statistics
Comments
1
Participants
2
Subscribers
4
Votes
1
Views
685
Share

Can i create custom events in Geogebra to add Listeners In Javascript?
Needs Answer
Hi, team and community! First of all i'd like to say thank you for this app. It is awesome!
My problem is that I'd like to add in "On Update Scripting" some conditional statement and emit custom event, e.g.:
// geogebra with Point A pseudo code
if (X(A) = 3 AND Y(A) = 4) {
emitMyCustomEvent(A, "myCustomEventName")
}
// javascript
ggbApplet.registerCustomObjectListener("A", "myCustomEventName", "onSuccess");
function onSuccess() {
alert("Nice, coordinates are (3, 4')");
}
How can i do this? Thanks!
- 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
© 2023 International GeoGebra Institute
Please explain overall what you are trying to do before diving into the specifics (then we can help you better and faster)
Comments have been locked on this page!