Pre-installing the Inquisit Web Plugin


Author
Message
seandr
seandr
Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)
Group: Administrators
Posts: 1.3K, Visits: 5.6K
When running Inquisit web experiments in conjunction with other tools such as Survey Monkey and Qualtrics, it may be desirable to ask participants to download the plugin at the very beginning of the data collection process as opposed to waiting until they reach the Inquisit task. This allows participants to decide upfront whether they are willing to install the plugin, and if they do, it provides a smoother experience once they reach the Inquisit part of the experiment. 

To accomplish this, you can provide a smart link to the plugin installer at the beginning of the study. The link will need to determine whether the participant is running Windows or Mac, and if they are running Windows, whether they are using the IE browser or Chrome/Firefox/Safari. It can then point to the appropriate version of the plugin. Below is a snippet of HTML and Javascript that accomplishes exactly that:


<script type="text/javascript">
    function downloadInquisit() {
        try {
            var pluginUrl = "http://www.millisecond.com/download/4/4_0_6_0/";
            var agent = navigator.userAgent.toLowerCase();
            if ((agent.indexOf("msie") != -1 && agent.indexOf("opera") == -1) || agent.indexOf("trident") != -1) {
                pluginUrl += "ax/win32/InquisitAx.exe";
            }
            else {
                if (navigator.platform.indexOf("Mac") != -1 || navigator.userAgent.indexOf("Mac OS X") != -1) {
                    pluginUrl += "np/mac/Inquisit_Plugin_4060.dmg";
                }
                else {
                    pluginUrl += "np/win32/npInquisit.exe";
                }
            }
            window.location.href = pluginUrl;
        }
        catch (e) {
            window.alert("Error: " + e.Message);
        }

    }
</script>
<a href="javascript:downloadInquisit()">Download Inquisit Plugin</a>

Just copy and paste the above code into the web page where you want to enable pre-installing the plugin. Note - this example assumes you are using Inquisit 4.0.6.0. If you've registered the script with a different version, you'll need to change the code to match the version you are using or this will not work.The version number appears twice in the code snippet above and is highlighted in yellow.





Edited 10 Years Ago by seandr
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search