Properties
Category
English
Similar Topics
Statistics
Comments
4
Participants
3
Subscribers
0
Votes
1
Views
3069
Share
Answered
I want to create a form in HTML that has an input field (Enter Function) and when you click on the submit form button automatically in an applet Geogebra that function is drawn. To do this i researched in this link: http://www.geogebra.org/wik... but i don't understand how do this work.
I don't understand how add a Geogebra applet and how use evalCommand(instruction).
Where do i find information about this problem?
Thank you
- 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
hi
it's easier to use inputfields in a GGapplet itself and to embed this applet in a website.
Upload the file to GGTube, select embed in the options in the upperright corner of the screen en copy the html code into your website
chris
I don't want upload the file and then there is a applet Geogebra with an input field. I want an input field (Javascript because first i do some calculations) and than i have to draw this function in a geogebra applet. But first i have to do some calculations and than the function is drawn. So, i need the passage from Javascript to Geogebra.
Hi,
please have a look at
http://www.geogebra.org/wik...
(actually the first example on the page you linked also shows how to embed a file)
Once the applet is embedded you can use e.g. ggbApplet.evalCommand("C=(1,1)"); to evaluate a command (ggbApplet is the default name of a global variable that has all the API methods. You can change it using the "id" applet parameter, see http://www.geogebra.org/wik...
I created this simple html page looking the first example on this page: http://www.geogebra.org/wik... but it doesn't work.
If i open developer tools on Chrome it finds two problems:
1. TypeError Uncaught: Impossibile leggere proprietà "childNodes 'di null
2. prova.html: 19 Uncaught ReferenceError: ggbApplet non è definito;
Dove definisco ggbApplet?
How do i do to solve this problem?
Thank you.
Comments have been locked on this page!