An introduction to jsPsych
==========================
jsPsych is a JavaScript framework that makes it easier to construct
presentation experiments.
A typical jsPsych experiment will follow a sequence something like this:
1. First, the experiment is loaded from the server onto the participant's
web browser (client). This is just like loading any other web page, so everything
you saw in the last section about the network, web pages, HTML, CSS and so on
applies here.
|
.. image:: images/jspsych_how_1.png
:width: 90%
:alt: A box on the left labelled "Participant's web browser (client)" and a box on the right labelled "Server". An arrow connects the two, pointing right to left, labelled "1. Load experiment into web browser".
|
2. Now the experiment runs. This can happen entirely within the participant's web
browser -- it may not need to talk to the server at all. (It might though, for
example to load images).
|
.. image:: images/jspsych_how_2.png
:width: 90%
:alt: A box on the left labelled "Participant's web browser (client) 2. Experiment runs ...." and a box on the right labelled "Server". A greyed-out arrow connects the two, pointing right to left, labelled "1. Load experiment into web browser".
|
3. Finally, the experiment sends the results from the experiment back to the
server.
|
.. image:: images/jspsych_how_3.png
:width: 90%
:alt: A box on the left labelled "Participant's web browser (client)" and greyed out " 2. Experiment runs ....", and a box on the right labelled "Server". A greyed-out arrow connects the two, pointing right to left, labelled "1. Load experiment into web browser". Another arrow connects the two, left to right, labelled "3. Send results to server"
|
First experiment
----------------
Let's take a look at the `jsPsych website