Properties
Category
French
Similar Topics
Statistics
Comments
7
Participants
2
Subscribers
2
Votes
1
Views
919
Share
Answered
Hi,
I want to send a variable value from a GGB file in a JS script on the web.
I create my button and this is its action :
AnalyserNombre[Sol1, trep ] SoitValeur[ok,true] Si[test,SoitValeur[grade,grade+1]]I want to run a JS script to get the value of grade. I have no idea.
The name of my JS script is : store_score.js
Regards.
- 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
Sorry, but want to know if it's possible : From a ggb button, I want to trigger an Ajax script.
Is it possible ? if yes, how ?
MANY MANY thanks !!!
With your code, I get the value of grade but I want to launch the file store_score.js when I click th GGB button inside the GGB file.
In fact, I want to run an Ajax process from the GGB Button into the GGB file.
Exemple :
From HTML :
I run this code : So I want to run this JQuery code from a GGB Button.I don't know if it's possible and what I can I do.
With your code, I get the value of grade but I want to launch the file store_score.js when I click th GGB button inside the GGB file.
In fact, I want to run an Ajax process from the GGB Button inside the GGB file.
Example to run a JS code :
From HTML :
I run this code : So I want to run this JQuery code from a GGB Button.I don't know if it's possible and what I can I do.Yes, I know that the method is loaded.
But I want to save the grade in my database each time the GGB button is clicked.
For that, I use Ajax in my store_score.js.
Now, I save the score at the end of the exercise. But I need to click on a submit button in my HTML code.
I want to do this directly from GGB Button, after every question.
This is my store_score.js
It works fine but I need to call it from HTLM button ! I want to call it from GGB Button.
Sorry, but want to know if it's possible : From a ggb button, I want to trigger an Ajax script.
Is it possible ? if yes, how ?
MANY MANY thanks !!!
the variable called numexo is inside my ggb file. My fonction is in the html, JS script :
What is wrong ?
Comments have been locked on this page!