Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 48 of 48

Thread: Slider size (case 17391)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2005
    Posts
    3,328
    Best way to edit html, for me, is with the Windows notepad, or any simple text editor. You can also use Microsoft Frontpage--it is targeted at people who are new to HTML. Generally I would avoid Word unless you are technophobic in which case, it might be the way to go--or find a student who knows HTML--hey there goes one walking down the hall now!

    To adjust the range on the slider, just open the conitinuum.htm file in a text editor and change the following text:

    s.setMinimum(0);
    s.setMaximum(100);
    s.setValue(50);

    to:

    s.setMinimum(-50);
    s.setMaximum(50);
    s.setValue(0);

    And see how that goes!

  2. #2
    Join Date
    Nov 2006
    Posts
    4
    We are finally getting ready to use the MediaLab software for our study. We are using the slider, which you provided earlier, for creating a pain intensity visual analog scale (VAS). The pain VAS ranges from 0-10. We want the slider to report the integer values (e.g. 1, 2, 3...) as well as fraction values upto the first decimal place (e.g. 1.1, 4.3, 5.6...). I modified the slider to that allows it to report the integer values. However, we don't know how to report the fraction values. Can you please help? I am attaching the modified slider.
    Last edited by jarvis24; 03-25-2010 at 08:03 PM.

  3. #3
    Join Date
    Nov 2006
    Posts
    4
    I actually found a solution: I made couple of changes to the slider, 1) I set the slider minimum value to 0 and maximum value to 100, 2) then I set the input text color to white so that the subject cannot see the displayed number on the right side of the slider. See the attached slider (pain.htm).

    However, now I have 4 more issues:
    1) Because I want the slider output to be between 0 and 10, is there a way that MediaLab would divide the output of the slider (between 0 and 100) by 10 to give us the actual value?
    2) I want the length of the VAS to be 10 centimeters long. However, it shows up not be 10 cm. Is there anyway that the Javascript can be setup that it automatically figures out the resolution of the screen and sets it to 10 cm?
    3) On running a MediaLab experiment with the slider (pain.htm), I receive an error box that states something like "var 003 will not be saved... it is a string." I receive quite a few of these messages right before the final prompt that states that the experiment is over. How can I avoid these messages?
    4) Another problem is related to the .csv file generated by MediaLab after running an experiment using the slider. Instead of having actual numbers, the .csv file states "OK." How can that be fixed?

  4. #4
    Join Date
    Nov 2005
    Posts
    3,328
    Wolud have to see the que and htm files. Be sure to zip them as the board doesn't accept unzipped html files.

  5. #5
    Join Date
    Nov 2006
    Posts
    4
    I am attaching the zipped files. Thank you. Bhagwant
    Last edited by Bhagwant; 02-23-2007 at 01:49 PM.

  6. #6
    Join Date
    Nov 2006
    Posts
    4
    Okay, I was able to fix a couple of problems. See attached files. However, the following problems still exits: 1) Because I want the slider output to be between 0 and 10, is there a way that MediaLab would divide the output of the slider (between 0 and 100) by 10 to give us the actual value?
    2) The data file (.csv and .txt) in the folder named "byquestionnaire" to generated after running an experiment states "OK" for all the questionnaire answered and rest of the questionnaire variables have a value of 99. It seems that the software is not working properly.
    Please help!
    Attached Files Attached Files

  7. #7

    Using the revised slider zip with a background picture.

    I have used the revised slider zip and that works fine but when i use it rather than some of the other rating scales you can no longer see the background image that i have specified and i was wondering if there was a way to remedy this? Ideally i would like to have the picture closer to the top and the slider closer to the bottom. Any help with this would be much appreciated.
    Many Thanks

Similar Threads

  1. MediaLab Version 2008.1
    By jarvis24 in forum MediaLab v2018: Version History
    Replies: 9
    Last Post: 08-18-2024, 05:19 PM
  2. DirectRT Version 2008.1
    By jarvis24 in forum DirectRT v2018: Version History
    Replies: 7
    Last Post: 10-26-2018, 07:28 AM
  3. Version / Backwards Compatibility (case 40)
    By jarvis24 in forum Pre-Sales and Licensing FAQ
    Replies: 4
    Last Post: 07-23-2012, 10:12 AM
  4. older versions and MediaLab 2008
    By NancyBrodsky in forum MediaLab Older Versions: General Questions
    Replies: 3
    Last Post: 04-07-2008, 01:38 PM
  5. Run-only version?
    By mha in forum Pre-Sales and Licensing FAQ
    Replies: 1
    Last Post: 09-25-2007, 07:43 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
  •