Forum Replies Created
-
AuthorPosts
-
mg5171
ParticipantGreat, thanks!
mg5171
ParticipantOne more thing: you have the text defined with a space after each word, so that the spaces appear when the words are printed. My spreadsheet does not have those space, and, while I could add them, that will complicated things on the other end. Is there a way to define a newText in PCIbex that consists just of a space, and add that with the .after command? When I try to do this, it either bumps the next word to the following line or doesn’t do anything.
mg5171
ParticipantThank you!
mg5171
ParticipantI found the actual error–one of my image files was ‘uploaded’ on my server with the correct name (so on some level PCIbex was able to ‘find’ it), but had a file size of 0 and was actually not there when I tried to access it. Since fixing that, everything works perfectly.
mg5171
ParticipantHi Jeremy–thanks. The problem just got fixed by uploading the same files into a new experiment. I still don’t know what the error was, but the new version is working so you don’t have to worry about this!
mg5171
ParticipantThanks for helping me fool the system! Works perfectly.
mg5171
ParticipantWow, that’s an easy fix. Thanks for that tip; you saved me hours more frustration! I was using basically the same code as with the old version of PCIbex, so I wonder if that changed in this new version.
mg5171
ParticipantRight, so I suppose then the question is why my .htaccess file is not working. Did something change with the new version of PCIbex? I’ve used Zip files before, and it’s usually worked. I suppose the issue is either with that file or with DreamHost. Here’s the link to the experiment (https://farm.pcibex.net/r/vhmYyZ/), and these are the errors I get:
Access to XMLHttpRequest at ‘https://maddiegilbert.com/abxziptest/abx_zipped.zip’ from origin ‘https://farm.pcibex.net’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
PennController.js:65Uncaught Error: InvalidStateError: Failed to read the ‘responseText’ property from ‘XMLHttpRequest’: The value is only accessible if the object’s ‘responseType’ is ” or ‘text’ (was ‘arraybuffer’).
at XMLHttpRequest.n.onreadystatechange (PennController.js:65)mg5171
ParticipantHi,
I’m having trouble with CORS access–the warnings from Chrome are clear. I use DreamHost and have the .htaccess file uploaded in the same folder as the zip file. I can download the zip file by using the direct address. However, the .htaccess file appears in the DreamHost platform, but not when I try to access the folder directly (https://www.maddiegilbert.com/abxziptest/), the .htaccess file does not appear in the list of files. Any idea why? (I realize this is not strictly a PCIbex problem). I suspect this may be why PCIbex is having trouble accessing the folder.
Thanks!mg5171
ParticipantPerfect, thanks!
mg5171
ParticipantHi,
I’m having a similar issue as question 1 here. No matter how much I try to use .wait commands and test conditions, the continue button appears and is clickable before the recording has finished from the preceding trial. Any idea on what’s going on here?Template( variable => newTrial( newText('instructions', 'Please record the following words:') .print() , newText('word', variable.text) //show people all the words in text column .print() , newVoiceRecorder("recorder") .log() .record() .print() .wait() , newButton("continue", "Click here to continue.") .print() .wait(getVoiceRecorder("recorder").test.recorded()) ));
mg5171
ParticipantTo follow up on this, I have the following. The items have a column called ‘number’ and are labeled 1-90. This seems to be giving me the first 45 only, but in a randomized order (which is also probably because I’m randomizing with the Sequence command at the beginning. Any ideas why it’s giving me the first 45 instead of a random 45 out of the total 90?
//fillers numberRows_fillers = 90; numberDraws_fillers = 45; randomIDs_fillers = [...new Array(numberRows_fillers)].map((v,i)=>i).sort(v=>Math.random()>0.5).splice(1,numberDraws_fillers); Template( defaultTable.filter( r => r.type=="filler" && randomIDs_fillers.indexOf(Number(r.number))>-1 ), variable =>
mg5171
ParticipantThanks!
mg5171
ParticipantThanks so much Jeremy!
mg5171
ParticipantThanks; that works like a charm. Is there an easy way with this set up to record the order in which the files were played?
-
AuthorPosts