Skip to content
Doug Markant edited this page Oct 18, 2013 · 2 revisions

psiturk.savedata([callbacks])

Sync the current psiTurk task data to the database.

An optional argument callbacks can provide functions to run upon success or failure of the saving.

psiturk.saveData({
   success: function() { 
      // function to run if the data is saved
   },
   error: function() { 
      // function to run if there was an error
   }
});