Session gets stuck on "Sending Data Please Wait"
In my experiment, the user needs to have a minimum connection speed, and we are also checking if he's paying attention.
If a user fails to meet one of the previous criteria we finish the session with
jatos.submitResultData(result_json).then(jatos.endStudyAjax(false,err_msg));
But the session gets stuck with "Sending Data. Please Wait." and a spinning wheel.
Has anyone else encountered this problem and\or knows how to fix it?
Comments
Yes, it's a bug in the current jatos.js (version 3.6.1). In some cases with
jatos.endStudyAjaxorjatos.abortStudyAjaxthis can happen. The next release (should be 3.7.1) will include the fix.Until then you can use
jatos.removeOverlayto remove the "Sending Data. Please Wait." with a spinning wheel. In your case it should look like:Hope this helps,
Kristian
Hi Kristian, thanks for the response, unfortunately, it doesn't seem to fix the problem.
Do you happen to know if there's an earlier version where the bug doesn't exist?
And on that note, do you know if the bug exists in the current jatos.js version which is on mindprobe?
Hm, it doesn't fix the problem ... do you have an error message or is there no error? Or can I somehow have a look at your study? If it's possible you could send me your study (the exported jzip) or make me a member of your study on jatos.mindprobe.eu (my username is 'admin').
And about your other questions: Version 3.5.10 should not have this bug. And, yes, mindprobe also uses version 3.6.1 and there jatos.js has the bug.
I had a look at your study. It's more complicated than I thought. My idea with
jatos.removeOverlaydoes not work. But fortunately there is way to completely turn off those overlays from the start. Just addjatos.waitSendDataOverlayConfig = { show: false };in the beginning of yourjatos.onload:jatos.onLoad(function() { jatos.waitSendDataOverlayConfig = { show: false }; ...Hope this helps this time.
Kristian
It works!!!
Thank you so very much!