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

    Can I use java instead of java script to program a slider?

    Hi Jarvis,

    I want to use a slider for my experiment. I have read your previous post but because I want to adjust the length and the anchors of the slider, I am asking my RA to modify it for me. He wants to know if it is possible to creat a slider using Java instead of Java script as he is more familar with the former than the latter.

    Or could you let us know how to change the length of the slider and the anchor in Java script, if we use the sample that you've posted earlier in this thread?

    Thanks!
    Venus

  2. #2
    Join Date
    Nov 2005
    Posts
    3,328
    You could use Java (or any method), so long as it can work within Internet Explorer and post the data using the method=post function. As far as modifiying the length, you'd have to actually look at the javascript code. I believe there are variables within the code that you can set for such things.

  3. #3
    [edited by moderator]

    My RA has helped me to reprogram the slider with a Java. But how can I intergrate it in my MediaLab file?

    Also, if I use the slider that you have provided in this thread, how can I change the length of it? You have described how to change the maximum and minimum, can you describe how to change the length of the slide, the anchors in two ends and how to hide the numerical value.

    I have attached the Java applet that is created by my RA.

    [a little bit later]

    I have figured out how to add anchors to the end of the items. There are only two things that I need to sort out.

    1. I followed your suggestions below and tried to show a picture in every trial, but it does not work.

    2. I still don't know how to hide the nurmeric value of the slider. Here is my HTML.

    By the way, I just checked the data file. What is showed is whether the participants have answered the question ("ok") but not the values that they have chosen. Have I done something wrong?
    Last edited by jarvis24; 12-13-2007 at 10:35 AM.

  4. #4
    Join Date
    Nov 2005
    Posts
    3,328
    Can you please retry attaching your sample--it didn't seem to post.

  5. #5

    Attachement

    Sorry. Here is the modified html. I have not modify other files.

    It does not allow me to upload the html file as html. I have to change it to .txt.

    I have attached the questionnaire file too.
    Attached Files Attached Files

  6. #6
    Join Date
    Nov 2005
    Posts
    3,328
    I am trying to code something much the same as the above poster; I can manipulate the properties of the html document easily enough, but I cannot get the document to display the image stored as the background image in medialab (even if the image is pointed to 'ml.background').

    The image simply will not load (and instead displays a broken link graphic). Has a workaround been developed for this, or is the only alternative to make separate html documents for each image to be used?

    I have played around with things a bit, but I still cannot get the image cued in the medialab background tab to load in the html document. If I load the image directly into the html file it works fine, but doing so is far more time consuming than being able to index the medialab background.

    I have attached my html code as well as a sample image; please take a look and let me know if there is something obviously wrong with it.

    Here's a copy with the .que file attached. It is the same skeleton as the slider example (included in the slider zip file) without any real changes; I want to get the image display working before I change too much around.

    Thanks!
    Try using <ml.bg> rather than <ml.background> and see if that helps. See the user's guide for the official variable reference or online here:

    http://www.empirisoft.com/medialab/h..._reference.htm
    Attached Files Attached Files
    Last edited by jarvis24; 03-28-2008 at 11:41 AM.

  7. #7
    Join Date
    May 2006
    Posts
    12

    slider background image

    I tried to do as you suggested in the quote below (using <ml.bg> rather than <ml.background>) and it still does not work. Instead, my image is appearing on the screen behind my custom slider. If I insert the name of the picture, it works fine. Any other suggestions?

    Quote Originally Posted by jarvis24 View Post
    Try using <ml.bg> rather than <ml.background> and see if that helps. See the user's guide for the official variable reference or online here:

    http://www.empirisoft.com/medialab/h..._reference.htm

  8. #8
    Join Date
    Feb 2008
    Posts
    11
    Also, I opened the "slider.css" file from this thread, but couldn't find the "input name" part of the HTML text, which means I couldn't figure out what to name that slide so that MediaLab would store the input in SPSS. Where is that in the file?

Similar Threads

  1. MediaLab Version 2008.1
    By jarvis24 in forum MediaLab v2018: Version History
    Replies: 8
    Last Post: 02-26-2024, 08:50 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
  •