YANQT Drag missing words into place

YANQT Drag missing words into place

Audun Hauge -
Atsakymų skaičius: 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.
Pažymių vidurkis: -
Atsakymas į Audun Hauge

Re: YANQT Drag missing words into place

Audun Hauge -
A screenshot of dragwords
Priedas dragwords.png
Atsakymas į Audun Hauge

Re: YANQT Drag missing words into place

Audun Hauge -
And feedback for partially correct answer.
Priedas dragwords_feedback.png
Atsakymas į Audun Hauge

Re: YANQT Drag missing words into place

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'
Atsakymas į Audun Hauge

Re: YANQT Drag missing words into place

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.

Atsakymas į Christoph Ruda

Re: YANQT Drag missing words into place

Audun Hauge -
Developed on 1.9
Should work on 1.8 also - but I havn't tried
Atsakymas į Audun Hauge

Re: YANQT Drag missing words into place

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.