This was a amazing tutorial!! I have been stuck on this for days! thank you for making it so easy to understand and simple! great content, definitely going to subscribe for more! :)
ok, this worked for me, now how can i handle this fetch post request from the backend? i have node js and express installed in my project, how can i receive these data and then send them somewhere else or console.log them?
Why is it one would prefer this over the traditional form action="xxx" method?. Unless there is a compelling reason, I think the browser might do it faster than one could ever get to with javascript, or is it all just boils down to the refresh flicker thing you mentioned?
Refresh issue yes, but also maybe server expects the data in certain format, you may want to process the data (adding/removing things) before sending to server, etc.
IMPORTANT: mastering JavaScript is critical if you want to be a modern, professional developer. If you haven't mastered JavaScript yet I highly recommend you go through my Professional JavaScript Course: www.udemy.com/course/professional-javascript-course/?referralCode=0C1D5752923168BC87C2 ALSO: mastering CSS is important for any front-end developer. If you haven't mastered CSS yet (including Flexbox, CSS Grid, etc.) I highly recommend you go through my Professional CSS Course: www.udemy.com/course/professional-css/?referralCode=4C3C08E82629E6B15752
This is great - I didn't realize that you could initialize the FormData() object using the form node. Outstanding!
I´m loving these videos, short and straight to the point. Thank you!!
This was a amazing tutorial!! I have been stuck on this for days! thank you for making it so easy to understand and simple! great content, definitely going to subscribe for more! :)
FormData() never knew that existed? How many built-in objects are provided in JavaScript, that is a lot i never knew. Can you list all of them
Helpful video! Thank you!
Is there a way to for example, GET info from a website, take the data, and then POST it to another?
ok, this worked for me, now how can i handle this fetch post request from the backend? i have node js and express installed in my project, how can i receive these data and then send them somewhere else or console.log them?
Thank you. But I have a question: How about the validation before you send data to the server?
Master piece!!!
Thanks so much for the video!
Nice tutorial well explained keep it up
Nice video, thanks.
How to send file
can I use this approach for calling a SOAP service using javascript?
Why is it one would prefer this over the traditional form action="xxx" method?. Unless there is a compelling reason, I think the browser might do it faster than one could ever get to with javascript, or is it all just boils down to the refresh flicker thing you mentioned?
Refresh issue yes, but also maybe server expects the data in certain format, you may want to process the data (adding/removing things) before sending to server, etc.
How do i redirect users to another page on successful form submission ?
window.location.href = ‘url of other page’;
IMPORTANT: mastering JavaScript is critical if you want to be a modern, professional developer. If you haven't mastered JavaScript yet I highly recommend you go through my Professional JavaScript Course: www.udemy.com/course/professional-javascript-course/?referralCode=0C1D5752923168BC87C2
ALSO: mastering CSS is important for any front-end developer. If you haven't mastered CSS yet (including Flexbox, CSS Grid, etc.) I highly recommend you go through my Professional CSS Course: www.udemy.com/course/professional-css/?referralCode=4C3C08E82629E6B15752