YANQT Drag missing words into place

YANQT Drag missing words into place

by Audun Hauge -
Number of replies: 7
Yet Another New Question Type - Drag missing words into place
Given some text like this:
An atom consists of a nucleus containing protons,neutrons and
neutrons,protons. electrons are in orbit around the nucleus.
_((molecule,ion,quark,lepton))_

The words marked in square brackets will drop out and be replaced by
targets (grey squares - targets for drag and drop).
Only the first word inside is shown as a candidate for dragging - this is used to fix the reversed order problem as for (protons,neutrons).
All dropped out words are shuffled together with the list of distractors
( the list between _(( and ))_ ) and shown in a box below.

The students task is to drag the words to the correct place.

Tested on firefox and safari.
You have to place the upper left corner of the word inside the target square. The attachment is a demo-version.
Needs some more work on the javascript - can only be used with one question pr page for now. Feedback not as should be.
Average of ratings: -
In reply to Audun Hauge

Re: YANQT Drag missing words into place

by Audun Hauge -
A screenshot of dragwords
Attachment dragwords.png
In reply to Audun Hauge

Re: YANQT Drag missing words into place

by Audun Hauge -
And feedback for partially correct answer.
Attachment dragwords_feedback.png
In reply to Audun Hauge

Re: YANQT Drag missing words into place

by Audun Hauge -
Latest version - works for ie6, firefox and safari
Lang file added for en_utf8.

Depends on javascript.
You can only place one question of this type pr page.
If you try to display >1 question of this type on a page, then
only the first one will work. The following questions of this
type will display a message stating 'max 1 pr page'
In reply to Audun Hauge

Re: YANQT Drag missing words into place

by Christoph Ruda -

This is fabulous. I have always been asked to provide drag-and-drop and so far Hot Potatoes was the only way to do that. Many thanks.

I'll try it as soon as I can.

In reply to Christoph Ruda

Re: YANQT Drag missing words into place

by Audun Hauge -
Developed on 1.9
Should work on 1.8 also - but I havn't tried
In reply to Audun Hauge

Re: YANQT Drag missing words into place

by Audun Hauge -
I've got a newer version that handles multiple instances of dragndrop on the same page. It needs some more testing and cleaning up.
The javascript is using closures - possibly not needed.
I'll see if it can be rewritten with straight function calls.
In reply to Audun Hauge

Re: YANQT Drag missing words into place

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Audun,
Any progress on this new version with multiple instances on the same page?
Looking forward to testing it,
Joseph