I have implemented the following codes for the measurement of the input values in a form field:

The code perfectly works on the local server (the development server devserver) and I assume also on every normal webpage.
I hosted my experiment on the cloudserver Heroku. There the function causes an internal server error. The same happened with the following JS function:
window.onload = function() { //do smomething };The problem seems to be the respective query selector and the JS handler.
Did anyone ever encounteres the same problem? Does anyone have a solution for the problem? Can I try other event handlers?
Many thanks,
On Aug 3, 2021, at 7:28 AM, Nikki Maier <monique...@gmail.com> wrote:
In addition, I have problem with the liveSend() when the app is hosted on heroku. The JS and liveSend() function work perfectly on the local server but cause major issues on Heroku.
--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/14e7bebd-fc5d-4c59-b49a-0a96f73e9e9cn%40googlegroups.com.
First error message (JS functions):

Second error message (liveSend):
In console.log() I get the following message:

However, I assume that the message is only displayed because I activated the JS function and the page is not fully loaded yet because of a time lag between browser and server?
In the server log files I get:

Here I use Date.now again. And again the main problem seems to be the storage of the generated data.

