Skip to content

Picture Selection Task #3181

Answered by jodeleeuw
hblam asked this question in Q&A
Nov 8, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @hblam

There are two things to change here:

  1. Your stimulus parameter for trial_1 is missing " around the file names. It should be '<img src="img/1a.png" /><img src="img/1b.png" />'
  2. The auto_preload method for the preload trial won't work in this context because the images are added as HTML instead of through an image-based plugin. Instead use:
var preload = {
      type: jsPsychPreload,
      images: ['img/1a.png', 'img/1b.png']
 };

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hblam
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3177 on November 08, 2023 15:30.