Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 4 of 4

Thread: Custom anagram task with hints

  1. #1

    Custom anagram task with hints

    So here is what I would like to do:
    I have a task with a number of anagrams- For each anagram, I would like to limit the total time to 2 minutes.
    However, I would also like to have an option to accept/reject a hint to appear for every 30 seconds that they go without solving the task-so at 30, 60, 90 seconds as long as the anagram remains unsolved
    If they choose yes at any time, they then get a hint and the anagram reappears again for 30 sec or until solved (after 30 seconds, another hint...)
    If they choose no, do not accept hint, they simply go back to the original anagram to keep working for up to 30 sec before the next hint.
    Originally I thought to just use the skip to function and duration parameter, but this has posed a number of problems, most importantly that I do not know how to get it to move to the next anagram if they in fact solve it at any point. (Because of numbering in the questionnaire file?)
    Is there perhaps a way to do this--how about usinging a pop up window or some other method I can't think of?


  2. #2
    Join Date
    Nov 2005
    This turned out to be a bit trickier than I first expected. I figured a little bit of timed HTML as a background would work just like you did. Big challenge was giving them a choice to see the hints, and not offering a hint if they had the answer already entered.

    I ended up approaching it with a new custom item type. It handles the choice problem via javascript. The script checks to see that the textbox does not yet contain the correct answer. If so, then it asks the subject if they want a hint.

    I also added a line of code in the javascript to re-activate the text box after each hint. Often, pop-up messages like this (aka dialog boxes) will remove the focus from the text box and users will have to click on them.

    I set it up so that you could use the same single html file for all your anagrams. Each time you call it as a custom item, you can pass the variable name, the anagram, the hints and the answer directly from your questionnaire (see the sample que file contained in the zip file). Currently it's set up to send 2 hints--one at 30 seconds and another at 60 seconds. You can modify it accordingly for more hints.

    If you've never used custom items before, be sure to check out the section in the guide. If you've never programmed HTML or Javascript, I would suggest having someone go through it with you who knows such stuff in case you want to tweak it.

    In any case, try it out and see if it approximates what you're looking for. You'll need MediaLab v2006.2 or later. I'd love to see what you come up with if you make changes.

    Hope it helps,
    Attached Files Attached Files

  3. #3



    So I very briefly modified the sample that you created:

    ~There are now three hints (at 30, 60, & 90 secs)
    ~I put a total duration for each anagram of 120 secs
    ~The "anagram3" file is the modified code, but it is currently in .txt format, and so will need to be saved as an .htm file if it is to be used.

    Thanks so much! As usual, you were a huge help!!

    Attached Files Attached Files

  4. #4
    Join Date
    Nov 2005
    See www.empirisoft.com/support/showthread.php?p=1748 for a continuation of this sample.
    Last edited by jarvis24; 04-11-2007 at 03:57 PM.

Similar Threads

  1. detect correct rt:text (open ended) responses?
    By kcmc in forum DirectRT Older Versions: How Do I...
    Replies: 1
    Last Post: 04-17-2006, 11:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts