Beginning Ibex Farm: Define Items Variable Error

362 views
Skip to first unread message

Jack Dempsey

unread,
Aug 22, 2016, 1:36:43 PM8/22/16
to ibexexperiments
Hello everybody.

I'm starting to learn ibex farm, and I have an extremely basic data file in the works with one item, but it keeps telling me that my items variable is not defined when I try to run it.  Any thoughts as to why this could be?

Here is my code so far (extremely basic at the moment):

var shufflesequence = seq("intro", "practice", rshuffle("main", "filler")

var defaults = [
"Form", {hideProgressBar: true, continueOnReturn: true, saveReactionTime: true}
"Separator", {transfer: 1000, normalMessage: "+"}
"Message", {transfer: 2000}
];
var items = [
    //image that has a timer with a fill in question
     ["image1", "Message", {html:'<img src = "http://imgur.com/v44B6sO"/>', transfer: 2000},//look at image for 2secs
        "Form", {html:'<img src = "http://imgur.com/v44B6sO"/><input type="text" name="pencil">'],
//save images in some online storage site - those are my items
];

Alex Drummond

unread,
Aug 22, 2016, 1:38:46 PM8/22/16
to ibexexp...@googlegroups.com
It could the the comma at the end of your items list, which some browsers won't like. Check the error message you are getting on the Javascript console for more info.
Alex

--
You received this message because you are subscribed to the Google Groups "ibexexperiments" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibexexperiments+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted
Message has been deleted
Message has been deleted

Alex Drummond

unread,
Aug 23, 2016, 6:11:35 PM8/23/16
to ibexexp...@googlegroups.com
The Javascript console is where your browser will display error messages relating to Javascript. Just google something like "[your browser of choice] how to access javascript console".
Alex

On 22 August 2016 at 18:49, Jack Dempsey <jkd...@gmail.com> wrote:
Thanks for the quick response!  Removing the comma didn't seem to do anything to help it seems, could you tell me what you mean by the Javascript console?
To unsubscribe from this group and stop receiving emails from it, send an email to ibexexperimen...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages