I am using Django for my website and so am more familiar with Python. Because of this I want to send an email to an email address I receive from my HTML and JS form using Python not JavaScript, as I know little JS. Any ideas/suggestions? What is the JS code to use for sending data from a JS program to a Python script? WITHOUT using Ajax or extra content. Is there a way to just do it using plain JS???
Asked
Active
Viewed 32 times
0
-
Look at using Ajax – user7951676 Jun 13 '18 at 09:14
-
What is the duplicate? – aPythonUser Jun 13 '18 at 09:15
-
I think what you want to ask is how do you send data from the website using JS to your backend service written in Python, or so I assume, for that take a look at fetch API of Javascript https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API , also please read JS documentation, as you'll soon run into issues like promises and callbacks, that are not so easy to understand. MDN is a good place for that too! – ishaan Jun 13 '18 at 09:16
-
This is not a duplicate, if reading my question I state without using Ajax or extra content!!! – aPythonUser Jun 13 '18 at 09:20
-
@ishaan thanks but not what I am looking for. – aPythonUser Jun 13 '18 at 09:21