New qestion type for Moodle 1.8+
It's called DragMath Response and is build upon the shortanswer question type. It extends the shortanswer by simply adding the DragMath applet to the page.
(This idea is from the jme question type and the code is ported to 1.8).
This is only tested with Moodle 1.8.3+ and will not work in versions below.
This is a Moodle question type. It should come as a self-contained
"dmr" folder which should be placed inside the "question/type" folder
which already exists on your Moodle web server. Remember to put the files in the "lang" folder into the corresponding "lang" folders as well.
Once you have done that, visit your Moodle admin page - the database
tables should automatically be upgraded to include an extra table for
the DMR question type.
The DM editor can be used to create mathematical expressions, so you
can ask questions such as "Please write the equation of a circle with center (1,2) and radius 5". In order to mark responses, they need to be converted to a text format called LaTeX.
So, the student must create the mathematical expression, and then press a button to store the answer in a text box. The content of the text box is then marked in the same way as a short-answer question.
You can use a similar process when designing the question. Using the DM applet, create the mathematical expression that is a possible (right or
wrong) answer and then press a button next to the answer boxes to store the current expression as a LaTeX code.
The dmr folder also contains the DragMath applet classes. This is to keep installation simple.
For those who allready has the applet put on the server in the html-area you migth want to call these classes by changing the codebase in the "dmrlib.php" folder in line 10 and line 45. The reason for doing this would be the practical; you only need to replace the classes in one spot every time the DragMath applet is updated.