YANQT Drag missing words into place

YANQT Drag missing words into place

av Audun Hauge -
Antal svar: 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.
Genomsnitt av betyg: -
Som svar till Audun Hauge

Re: YANQT Drag missing words into place

av Audun Hauge -
A screenshot of dragwords
Bilaga dragwords.png
Som svar till Audun Hauge

Re: YANQT Drag missing words into place

av Audun Hauge -
And feedback for partially correct answer.
Bilaga dragwords_feedback.png
Som svar till Audun Hauge

Re: YANQT Drag missing words into place

av 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'
Som svar till Audun Hauge

Re: YANQT Drag missing words into place

av 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.

Som svar till Christoph Ruda

Re: YANQT Drag missing words into place

av Audun Hauge -
Developed on 1.9
Should work on 1.8 also - but I havn't tried
Som svar till Audun Hauge

Re: YANQT Drag missing words into place

av 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.
Som svar till Audun Hauge

Re: YANQT Drag missing words into place

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