Forum Replies Created
-
AuthorPosts
-
caljonesParticipant
Hi Jeremy,
This fixed it. Thank you so much for all your help while I was making this! Excited to show it off to people now 🙂
Thanks,
CalliecaljonesParticipantHi Jeremy,
Thanks for your response! The results file seems to be working now, perhaps I just didn’t realize before. I’ve added the “last” and a log() underneath the images. Unfortunately, when I add “last” to the .log() underneath the keys, sometimes the experiment will freeze when no key is pressed. This issue is resolved when I remove it. The issue returns when I add “first” as well. Could I get your advice on this?
Thank you so much!
CalliecaljonesParticipantHi Jeremy,
Thank you so much! This worked.
One last question: would something like https://www.digitalocean.com/docs/spaces/how-to/ this work as a “server” to store my zip file with images? I don’t have my own dedicated server, so I’m looking for alternative options. Storing these images on a server of some sort would make the images/pages load faster in the experiment, right? Are there any other alternative server options for hosting images that you would recommend?
Thanks,
CalliecaljonesParticipantHi Jeremy,
Thanks for getting back to me. Although that fixed the issue with the URL, I am still getting a 400 Bad Request when the new window opens. The log shows all commands up to newButton().wait() running. I see the race and sex selected in the URL. This makes me think perhaps something is off within these lines of code:
if (GetURLParameter("id") && GetURLParameter("race") && GetURLParameter("sex")){ race = decodeURI(GetURLParameter("race")) sex = decodeURI(GetURLParameter("sex")) Sequence("instructions1", randomize("practicesequence"), "Break1", randomize("experimentalsequence1"), "Break2", randomize("experimentalsequence2"), "Break3", randomize("experimentalsequence3"), "send", "Finish") // Instructions Template( GetTable("instructionsimage.csv") .filter("race", race) .filter("sex", sex) , variable => newTrial("instructions1", defaultText .center() .print()
Thank you very much for your help + patience!
CalliecaljonesParticipantHi Jeremy,
I’ve added this code, but when I test it the new window opens with a url like this one: https://expt.pcibex.net/ibexexps/caljones/Avatar/server.py?race=Please%20select%20the%20race%20that%20best%20describes%20you.&sex=Please%20select%20the%20sex%20that%20best%20describes%20you.&id=asdfIt seems like, despite selecting a race/sex, the URL is taking the text of the question rather than the selected dropdown. This results in a 400 Bad Request error when the new window opens. Any ideas on what might be causing this and how to fix it?
Thanks,
CalliecaljonesParticipantThank you very much!
caljonesParticipantHello,
I am also trying to create a task where if the participant doesn’t respond in a certain amount of time, the task moves onto the next trial. However, the response is a key press, and for some reason my code doesn’t seem to move on after a key press. I’ve attached what I have below, could you tell me what I’m doing wrong?newTrial("keySelection" newImage(variable.ImgFile) .size(650,452) .print() , newKey("FJ") .log() .wait() , newSelector("timeout") .add (getKey("FJ")) .callback(getTimer("timerout").stop()) , newTimer("timerout", 2000) .start() .wait() , clear() , getSelector("timeout") .test.selected() .success(newText(" ") .print()) .failure(newText("Too slow!") .print())
Thanks,
Callie -
AuthorPosts