"Undefined" error when starting script and Unresponsive Loading


Author
Message
cpedram
cpedram
Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)
Group: Forum Members
Posts: 6, Visits: 21
Hi all,
I am currently trying to set up my study in coordination with my school's Sona Systems website. As per the instructions on Sona and the Inquisit help page, I have modified the web url to read: http://research.millisecond.com/eknowles/FinalMindAttributionScript53.web?survey_code=%SURVEY_CODE% 

According to these instructions, I have also gone into the Inquisit script wizard and selected subject ids to be generated as "URLQuery Parameter" which is defined as survey_code. I'm not necessarily using group ids in my study so I have selected "Random Selection Without Replacement" for group ids.

I'm not sure if this is related but I have also asked inquisit to redirect to this finish web page after completion of the study: https://uci.sona-systems.com/webstudy_credit.aspx?experiment_id=78&credit_token=f11a68a394264077ad009516abec98fb&survey_code=2246 

Here is the problem: when I try to access the study through my school's Sona website, it takes me to the launch page but when I click on "Start", I get the error "undefined". 

When I try to access the study directly through the Inquisit web scripts link: http://research.millisecond.com/eknowles/FinalMindAttributionScript53.web, I get to the launch page and when I click "start" the Inquisit software loading screen pops up on my computer (Mac) but remains "loading" indefinitely and the application becomes unresponsive. I've tried this on a separate windows laptop with the same results. The script runs fine when I use it in my Inquisit application (non-web) on my computer.

Has anyone experienced something like this before? Thank you!

Christina



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: 108K
> Here is the problem: when I try to access the study through my school's Sona website, it takes me to the launch page but when I click on "Start", I get the error "undefined".

That's the error you'll get when the query parameter has no value. Try this for yourself by opening

You need to make sure to properly forward the query parameter and its value to the launch page. Note further that you have set up the launch page to retrieve the subject id from said query parameter. From the page's source:
function GetSubjectNumber(){    var snum = GetQueryVariable("survey_code");    if ( snum == null || snum == "")    {        throw "Unable to get subject id from query paramter 'survey_code'";     }   return snum;
Your script expects a *numerical subject id* for condition assignment (as per the <expt> elements' /subjects attributes), it will not work with anything else.

Re. the slow loading times: Your script involves quite a lot of picture files. Downloading them all to the client machine will take time and must be completed before the script can actually start to run. It should eventually finish. As a general tip: In a web experiment setting, try to reduce file sizes and keep the number of files required as low as possible.

cpedram
cpedram
Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)
Group: Forum Members
Posts: 6, Visits: 21
Thanks for the quick reply Dave! I have gone through and reduced the file sizes wherever I could so hopefully that helps. Regarding the query parameter, forgive my ignorance - how do I "make sure to properly forward the query parameter and its value to the launch page"? Isn't this supposed to be automatic? I thought that the query parameter (the survey code #?) is unique to the participant and gets assigned when they come to the launch page. Is it possible to give me any details about fixing this? Sorry for the trouble!

Christina

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: 108K
Doing that is the responsibility of the survey app, not Inquisit. You must make sure the survey app properly forwards the query parameter to the launch page, including its value. How the survey platform does that, differs from platform to platform and you'll have to refer to the vendor's support resources.

cpedram
cpedram
Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)Partner Member (551 reputation)
Group: Forum Members
Posts: 6, Visits: 21
I see, I will contact Sona Systems then. Thank you again!

Christina

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search