Closed Bejagui closed 2 years ago
Good morning Bejagui! I don't think I fully understand the problem yet. Would you like a construction to display the changes that were made the first time it was called up in the browser when it was called up for the second time? So the construction should save its state? This is not due to the filter. Even with the manual integration of the jsxgraphcore.js, the JavaScript is reloaded when the page is called up again (which is the whole point of JavaScript). It shows again the state of the construction that the programmer (teacher) has determined. It is possible to save part of the status in the database: With the plugin formulas the current status of the construction is saved when using global variables. Read also: https://github.com/jsxgraph/moodleformulas_jsxgraph The plug-in for this is already included in the latest filter version. Best wishes, Andreas
Hi Andreas. The example y attach, is downloaded from Formula qtype course. (I put the code and I attach the results)
code:
Usa los deslizadores para indicar la curva de la ecuación: {a}x2 + {b}x + {c} = 0:
Usa los deslizadores para seleccionar los coeficientes.
{#1}{#2}{#3}
In addition, Andreas, can you give me a link where I can to learn about pass of variables JSXGraph-Formula-JSXGraph
Thanks for your time and attention.
Dear Bejagui!
As already mentioned, it is quite normal that the page is reloaded when "submitting the form". This will also restart and execute JavaScript. How to use variables in fomulas is explained in this example here: https://github.com/jsxgraph/moodleformulas_jsxgraph/blob/master/README.md#example
Hello again! We came up with another possibility: It might be an alternative to save the data in localStorage on the user's device (like a cookie) and to read them again after reloading. Read about the commands here: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage Best regards, Andreas
Very good; thank you
Like GeoGebra plugin, when students review their answers, random variables restart; so they can't check why they are wrong.
In fact, I am starting the learning, so I am not sure but I think if I use moodle-filter_jsxgraph the problem exists, but if I use that doesn't ocurre