Description of the problem:
Hey everyone, I was running a demo online but encountered the following issue.
In the developer tool console it showed:
My experiment includes two tasks. In the first task participants view six sequences of six images and make judgement on duration of the sequence. In the second task, participants’ memory for previously watched sequences will be tested. For now, the experiment was able to show instructions for the first task, but when it comes to presenting the sequences, I got the error above (sometimes the error appeared after one sequence had been presented). I’ve checked my JS script and don’t think I have .split function in the beginning of sequence presentation. Can anyone give me a hint on how to debug?
Thanks so much!
p.s. I do have codes (JS code below) at the beginning of the sequence presentation to select rows to make sure images are shown in sequence but I’m not sure if it will cause the issue.
// Begin experiment study_prac_trial_counter = 0; study_prac_row_indices = [0, 1, 2, 3, 4, 5]; shuffle(study_prac_row_indices); study_prac_row_number = 0; study_prac_row_start = 0; study_prac_row_end = 0; // Begin routine study_prac_row_number = study_prac_row_indices[study_prac_trial_counter]; study_prac_row_start = (study_prac_row_number * 6); study_prac_row_end = (study_prac_row_start + 6); study_prac_row_selected = ((study_prac_row_start.toString() + ":") + study_prac_row_end.toString());