Eric wrote: > Hello, this might be a silly question, but I'm wondering if javascript > can call a python script, and if so, how? > I believe Javascript can execute external commands, but I'm sure that it'd be turned off entirely for security reasons. I wouldn't trust client side code to modify my database any day.
It sounds like you're asking if Javascript can run a python script on the server. Technically, any time a request is made to a webserver code (including python scripts) can be run on the server, and Javascript can make server requests. That's what Ajax is for. The javascript will send a request to the server without reloading the page in the browser, and can (optionally) change something in the loaded page based on data received by the response, while the server can do whatever it wants– including updating a database. Hopefully this is helpful! Jeff Anderson
signature.asc
Description: OpenPGP digital signature