How to run python code from javascript code using xampp? -


I have a website written on html and I have a button, which should run a dragon script when clicking. The button is programmed in Javascript, and how do I connect javascript and python together on this site, but the problem is that I'm running the website using xampp and localhost, so i do not know the configuration code to run python code. I have tried using mod_wsgi, but the instructions are very confusing and I really do not know what I'm doing.

I do not want to use JQuery or Ajax, I want to use it, to run Python code, regular Javascript. How will I accomplish this? Actually I just want to run the button a dragon script, which is in the same directory as the website. I do not want to run the python code directly from the local host, rather I refer to it with reference to the javascript code and to run Want to

EDIT: It has been told me that JavaScript and Python are connected through a client server relationship, so my question is how xampp runs Python code through webserver.

Thanks in advance


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -