Closed easyflhomeschool closed 1 year ago
Dear Wendy! Thank you for your question. I took a closer look at the XML file and tried it on my Moodle.
If I understand you correctly, you want students to drag the dollar bills into the black box in this question. When they submit the question, you still want the notes to be where they were dragged previously.
This is not possible with your current programming. To "remember" where the bills were positioned, a database entry must be made. For this there is the functionality described here: https://github.com/jsxgraph/moodleformulas_jsxgraph/blob/master/README.md
So my idea for your case would be to expect more answers in the question. The first one is the one that counts and you have already implemented it that way. As memory you would have to create further answers, in which the coordinates of the bills are saved. Of course, these must not be used for the evaluation.
An example, how one could save the coordinates, you can find here: https://github.com/jsxgraph/moodleformulas_jsxgraph/blob/master/README.md#example.
I hope I could help. A change to our code does not seem necessary to me. Therefore I close the issue. If you still have questions, feel free to open it again.
Kind regards, Andreas
Thank you Andreas, This is the information I was missing. I appreciate the time you took to look at my question.
On Fri, Jul 21, 2023 at 4:31 AM Andreas W. @.***> wrote:
Dear Wendy! Thank you for your question. I took a closer look at the XML file and tried it on my Moodle.
If I understand you correctly, you want students to drag the dollar bills into the black box in this question. When they submit the question, you still want the notes to be where they were dragged previously.
This is not possible with your current programming. To "remember" where the bills were positioned, a database entry must be made. For this there is the functionality described here: https://github.com/jsxgraph/moodleformulas_jsxgraph/blob/master/README.md
So my idea for your case would be to expect more answers in the question. The first one is the one that counts and you have already implemented it that way. As memory you would have to create further answers, in which the coordinates of the bills are saved. Of course, these must not be used for the evaluation.
An example, how one could save the coordinates, you can find here: https://github.com/jsxgraph/moodleformulas_jsxgraph/blob/master/README.md#example .
I hope I could help. A change to our code does not seem necessary to me. Therefore I close the issue. If you still have questions, feel free to open it again.
Kind regards, Andreas
— Reply to this email directly, view it on GitHub https://github.com/jsxgraph/moodle-filter_jsxgraph/issues/35#issuecomment-1645212052, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARPSPDTRYIMS77E7GLMRC6LXRI44PANCNFSM6AAAAAA2ROSSUU . You are receiving this because you authored the thread.Message ID: @.***>
Andreas, I adjusted the question to send back the Y values of the dollars. It still can not get it to show where the student dragged them. I appreciate any feedback you can provide. Wendy Harper
On Fri, Jul 21, 2023 at 7:28 AM Wendy Harper @.***> wrote:
Thank you Andreas, This is the information I was missing. I appreciate the time you took to look at my question.
On Fri, Jul 21, 2023 at 4:31 AM Andreas W. @.***> wrote:
Dear Wendy! Thank you for your question. I took a closer look at the XML file and tried it on my Moodle.
If I understand you correctly, you want students to drag the dollar bills into the black box in this question. When they submit the question, you still want the notes to be where they were dragged previously.
This is not possible with your current programming. To "remember" where the bills were positioned, a database entry must be made. For this there is the functionality described here: https://github.com/jsxgraph/moodleformulas_jsxgraph/blob/master/README.md
So my idea for your case would be to expect more answers in the question. The first one is the one that counts and you have already implemented it that way. As memory you would have to create further answers, in which the coordinates of the bills are saved. Of course, these must not be used for the evaluation.
An example, how one could save the coordinates, you can find here: https://github.com/jsxgraph/moodleformulas_jsxgraph/blob/master/README.md#example .
I hope I could help. A change to our code does not seem necessary to me. Therefore I close the issue. If you still have questions, feel free to open it again.
Kind regards, Andreas
— Reply to this email directly, view it on GitHub https://github.com/jsxgraph/moodle-filter_jsxgraph/issues/35#issuecomment-1645212052, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARPSPDTRYIMS77E7GLMRC6LXRI44PANCNFSM6AAAAAA2ROSSUU . You are receiving this because you authored the thread.Message ID: @.***>
<?xml version="1.0" encoding="UTF-8"?>
{#A} |
${_0} is in the {location} |
Dear Wendy.
Please have a look. I have edited your question a little bit. You have to query at the beginning what the last value of the variable was and use this then to position the bills. Then it works!
I also introduced a variable where you can find the correct answer. This consists of [number, '0.5' (as often as there are "superfluous" bills), -2 (as often as there are needed bills)]
.
At this point you have to work further to implement the whole randomized. But you can do it!
Best regards, Andreas
questions-test-Drag-dollars to wallet ($4) (WIP)-20230726-1132.txt
dragDollarWallet.txt
I added a file (renamed it txt, however it is an xml file) I want the money to stay where the student 'drops' it on the screen. Can you please let me know if it is a bug or a programming error on my part. Thank you, Wendy