0

I'm working on a project for school : webapp using python. I'm using FLASK, and by the help of render_template I was able to send data from Python then get it on the other hand (on HTML).

I executed some JavaScript that holds some variables, and what I'm looking for is to how to send these variables from this JavaScript script to Python.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
  • Have you tried this solution?: https://stackoverflow.com/questions/43645790/passing-javascript-variable-to-python-flask – Edwin Coronado Feb 13 '18 at 23:43
  • Hi yeah i tried this one, but it gives me this error : 'NoneType' object is not subscriptable. The ajax code is not working or it sends an empty json, any idea ? – Bakudanichi Feb 15 '18 at 04:47

0 Answers0