﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Making inquisit 3 files work for inquisit 5; Issues with getItem function</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 05 Apr 2026 05:53:20 GMT</lastBuildDate><ttl>20</ttl><item><title>Making inquisit 3 files work for inquisit 5; Issues with getItem function</title><link>https://forums.millisecond.com/Topic25475.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt; I was tasked with making our old tests that were made with&amp;nbsp;inquisit&amp;nbsp;3 work in inquisit 5. The simplest thing I had to do was make all of the video elements into sound elements. The issue we're having now is that our picture and sound elements aren't lining up. We assign them using the getItem function in generalTrialA which leads me to believe that maybe the getitem function isn't used correctly or it works a little differently for inquisit 5. Please take a look at the files found in the link below.&lt;br/&gt; &lt;br/&gt; Thank you!&lt;br/&gt;&lt;br/&gt;Link to file: &lt;a href="https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106"&gt;https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106&lt;/a&gt;</description><pubDate>Wed, 05 Sep 2018 11:29:57 GMT</pubDate><dc:creator>desiree80</dc:creator></item><item><title>RE: Making inquisit 3 files work for inquisit 5; Issues with getItem function</title><link>https://forums.millisecond.com/Topic25481.aspx</link><description>&lt;div data-id="25480" class="if-quote-wrapper" unselectable="on" data-guid="1536171713964"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25480" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25480" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25480" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;desiree80 - Wednesday, September 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25480"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="25476" class="if-quote-wrapper" unselectable="on" data-guid="1536171713964"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25476" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25476" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25476" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, September 4, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25476"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="25475" class="if-quote-wrapper" unselectable="on" data-guid="1536171713964"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25475" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25475" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25475" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;desiree80 - Tuesday, September 4, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25475"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt; I was tasked with making our old tests that were made with&amp;nbsp;inquisit&amp;nbsp;3 work in inquisit 5. The simplest thing I had to do was make all of the video elements into sound elements. The issue we're having now is that our picture and sound elements aren't lining up. We assign them using the getItem function in generalTrialA which leads me to believe that maybe the getitem function isn't used correctly or it works a little differently for inquisit 5. Please take a look at the files found in the link below.&lt;br/&gt; &lt;br/&gt; Thank you!&lt;br/&gt;&lt;br/&gt;Link to file: &lt;a href="https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106"&gt;&lt;a href="https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106"&gt;https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25475"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;It's a little more complicated than that in this case, and getitem() isn't the primary culprit -- in essence, the script worked under Inquisit 3 because Inquisit 3 was a lot less strict about ensuring certain things, such as the files referenced throughout the script actually existing. I've attached a revised version below which should work as intended under Inquisit 5. Please et me know if you run into any trouble with the revision.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25476"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thank you! Great fix, no troubles here! I'm curious as to what ".items.1" does specifically that makes it work. &lt;br/&gt;&lt;br/&gt;Ex:&lt;br/&gt;if(values.UL=="B") sound.Label_UL_snd.items.1=getitem(item.Label_B, values.Item_index);&lt;br/&gt;&lt;br/&gt;As opposed to the original:&lt;br/&gt; if(values.UL=="B") sound.Label_UL_snd.item=getitem(item.Label_B, values.Item_index);&lt;br/&gt;&lt;br/&gt;Thanks again Dave!&lt;a class="if-quote-goto quote-link" href="#" data-id="25480"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; if(values.UL=="B") sound.Label_UL_snd.items.1=getitem(item.Label_B, values.Item_index);&lt;br/&gt;&lt;br/&gt;In plain language this means "set the 1st item of &amp;lt;sound Label_UL_snd&amp;gt; to the item in &amp;lt;item Label _B&amp;gt; at the index indicated by values.Item_index."&lt;br/&gt;&lt;br/&gt;It's easier and better from a performance perspective to simply always replace the 1st item in the &amp;lt;picture&amp;gt; and &amp;lt;sound&amp;gt; elements with the one that is supposed to be displayed during the given trial, and have the &amp;lt;picture&amp;gt; and &amp;lt;sound&amp;gt; elements always select that 1st item. This also makes the clear() operations unnecessary, which cause a particular performance hit (and can cause stability issues at runtime under some circumstances).&lt;br/&gt;</description><pubDate>Wed, 05 Sep 2018 11:29:57 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Making inquisit 3 files work for inquisit 5; Issues with getItem function</title><link>https://forums.millisecond.com/Topic25480.aspx</link><description>&lt;div data-id="25476" class="if-quote-wrapper" unselectable="on" data-guid="1536167021980"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25476" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25476" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25476" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Tuesday, September 4, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25476"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="25475" class="if-quote-wrapper" unselectable="on" data-guid="1536167021980"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25475" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25475" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25475" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;desiree80 - Tuesday, September 4, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25475"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt; I was tasked with making our old tests that were made with&amp;nbsp;inquisit&amp;nbsp;3 work in inquisit 5. The simplest thing I had to do was make all of the video elements into sound elements. The issue we're having now is that our picture and sound elements aren't lining up. We assign them using the getItem function in generalTrialA which leads me to believe that maybe the getitem function isn't used correctly or it works a little differently for inquisit 5. Please take a look at the files found in the link below.&lt;br/&gt; &lt;br/&gt; Thank you!&lt;br/&gt;&lt;br/&gt;Link to file: &lt;a href="https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106"&gt;&lt;a href="https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106"&gt;https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25475"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;It's a little more complicated than that in this case, and getitem() isn't the primary culprit -- in essence, the script worked under Inquisit 3 because Inquisit 3 was a lot less strict about ensuring certain things, such as the files referenced throughout the script actually existing. I've attached a revised version below which should work as intended under Inquisit 5. Please et me know if you run into any trouble with the revision.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25476"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Thank you! Great fix, no troubles here! I'm curious as to what ".items.1" does specifically that makes it work. &lt;br/&gt;&lt;br/&gt;Ex:&lt;br/&gt;if(values.UL=="B") sound.Label_UL_snd.items.1=getitem(item.Label_B, values.Item_index);&lt;br/&gt;&lt;br/&gt;As opposed to the original:&lt;br/&gt; if(values.UL=="B") sound.Label_UL_snd.item=getitem(item.Label_B, values.Item_index);&lt;br/&gt;&lt;br/&gt;Thanks again Dave!</description><pubDate>Wed, 05 Sep 2018 10:08:09 GMT</pubDate><dc:creator>desiree80</dc:creator></item><item><title>RE: Making inquisit 3 files work for inquisit 5; Issues with getItem function</title><link>https://forums.millisecond.com/Topic25476.aspx</link><description>&lt;div data-id="25475" class="if-quote-wrapper" unselectable="on" data-guid="1536099071885"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25475" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25475" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25475" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;desiree80 - Tuesday, September 4, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25475"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&lt;br/&gt;&lt;br/&gt; I was tasked with making our old tests that were made with&amp;nbsp;inquisit&amp;nbsp;3 work in inquisit 5. The simplest thing I had to do was make all of the video elements into sound elements. The issue we're having now is that our picture and sound elements aren't lining up. We assign them using the getItem function in generalTrialA which leads me to believe that maybe the getitem function isn't used correctly or it works a little differently for inquisit 5. Please take a look at the files found in the link below.&lt;br/&gt; &lt;br/&gt; Thank you!&lt;br/&gt;&lt;br/&gt;Link to file: &lt;a href="https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106"&gt;&lt;a href="https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106"&gt;https://usf.box.com/s/th6nc6sx4oety13aqnhr3y4pgcl53106&lt;/a&gt;&lt;/a&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25475"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;It's a little more complicated than that in this case, and getitem() isn't the primary culprit -- in essence, the script worked under Inquisit 3 because Inquisit 3 was a lot less strict about ensuring certain things, such as the files referenced throughout the script actually existing. I've attached a revised version below which should work as intended under Inquisit 5. Please et me know if you run into any trouble with the revision.&lt;br/&gt;</description><pubDate>Tue, 04 Sep 2018 16:43:54 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>