After a whole day of trying to figure out what is wrong and how to solve it… I failed miserably.
The only things I was able to notice by using the console.log() for debugging are two things:
-
Once the Dialogue Box appears the code set for every frame keeps running repeatedly instead of pausing the execution of the code. Conversely, when the experiment is ran locally in Python, the execution of the code is paused while the Dialogue Box is open.
-
If the code crashes just after the Dialogue Box opened (before starting the loop execution of the code in “every frame”, the “OK” and “Cancel” buttons do work and close the box adequately. The “X” button works well all the time.
-
The value of “psychoJS.gui.dialogComponent.button” right before creating and showing the Dialogue Box is OK, and its value right after the box is created and shown changes to cancel.
No matter what I tried, I was not able get the default values assigned to the “dictionary” argument for create the new Dialogue Box with “textBox()”.
@dvbridges, Any ideas?