How to link Inquisit script and demographic script


Author
Message
Andrea Deme
Andrea Deme
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 16, Visits: 34
I tried in Chrome and Mozilla, works well in both!
Andrea Deme
Andrea Deme
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 16, Visits: 34
wow.. and now it's working again!!! great! thank you so much.
how did you get to that conclusion?!
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
Did some more quick digging and testing. Try changing the GetSubjectNumber() function in the HTML source to

function GetSubjectNumber()
{
    return (Math.ceil(Math.random() * 1000000000)).toString();
}

and let me know if that resolves the issue in Firefox. (I have no idea why the original code suddenly stopped working there.)

Andrea Deme
Andrea Deme
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 16, Visits: 34
Oh, I've just noticed the PS, sorry. It's probably a useful piece of additional info: I use a page created by simply modifying the standard launch page (so that I can format the text and instructions displayed on the first screen and translate some small instructions as well regarding the plugins), so this problem might be due to the fact that normally the standard page is more "flexible" and by simply copying and editing it I made something be fixed that should not be so...
Andrea Deme
Andrea Deme
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 16, Visits: 34
Uhh, oh my... I tried explorer as well and it did work... thank you very much, you saved my day again. And yes, I'll put some pressure on the head of department and ask for the upgrade to Inquisit 4. So you say simply changing the html would not solve the problem, right? 
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
Thanks for the link. There is nothing obviously "wrong" with the launch page code. That said, I am able to reproduce the error using the latest Firefox version / the NPAPI plugin, but not using Internet Explorer / ActiveX or ClickOnce.

My guess would thus be that Mozilla changed their plugin handling (again) recently, essentially breaking the way the subject id and other information is passed from the launch page to the plugin via. The only quick "fix" I can think of is to direct your participants to complete the study using Internet Explorer (which is fortunately present on every Windows system by default).

Over the long run, I would recommend at least considering upgrading to Inquisit 4, which provides support for modern platforms and browsers.

P.S.: I'll be looking into this more deeply, but that'll take some time. Oddly enough, the issue does not seem to occur with standard 3.0.6.0 launch pages generated via the Web Script Wizard, which suggests there is some (non-obvious) factor relating to the "custom" launch page you're using involved.

Edited 11 Years Ago by Dave
Andrea Deme
Andrea Deme
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 16, Visits: 34
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
The error message indicates no subject id was passed to the script. In case of the IAT that's fatal as the counterbalancing of conditions (cf. the <variables> element) relies on it.

As to why that is, I cannot tell you based on the materials you provided. I would need the live link to the actual launch page.

Andrea Deme
Andrea Deme
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 16, Visits: 34
dear Dave, sorry, itts me again... the very same scripts and html that run perfectly a week ago just went rong and I cannopt find the reason why... I did not modify any important parts in the script. it's probably a typical issue, please see the error messagge and the scripts and html attached. could you help me out again?
Attachments
IATintroV2.txt (860 views, 40.00 KB)
error.png (931 views, 34.00 KB)
IATjorossz.exp (881 views, 21.00 KB)
batchIATdemog.exp (876 views, 73 bytes)
demographic.exp (944 views, 5.00 KB)
Tags
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
No problem. Note that I would generally recommend sticking with Math.floor(), which -- in theory -- should get you closest to a uniform odd/even distribution.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search