POST Form Data With JavaScript Fetch API

Поделиться
HTML-код
  • Опубликовано: 29 авг 2024

Комментарии • 19

  • @bennadel
    @bennadel Год назад +3

    This is great - I didn't realize that you could initialize the FormData() object using the form node. Outstanding!

  • @Shiroiookami856
    @Shiroiookami856 6 месяцев назад +2

    I´m loving these videos, short and straight to the point. Thank you!!

  • @NathanSantos-se9ds
    @NathanSantos-se9ds Год назад +2

    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! :)

  • @otsutsukimomoshiki2933
    @otsutsukimomoshiki2933 Год назад +3

    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

  • @tekartgroup1677
    @tekartgroup1677 Год назад +2

    Helpful video! Thank you!

  • @jelello_vr
    @jelello_vr 5 месяцев назад +1

    Is there a way to for example, GET info from a website, take the data, and then POST it to another?

  • @yazan5790
    @yazan5790 4 месяца назад +1

    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?

  • @Racine14
    @Racine14 Год назад +1

    Thank you. But I have a question: How about the validation before you send data to the server?

  • @melchizedek79
    @melchizedek79 Год назад +2

    Master piece!!!

  • @rigeltv8107
    @rigeltv8107 Год назад +1

    Thanks so much for the video!

  • @Zeddted
    @Zeddted Год назад +1

    Nice tutorial well explained keep it up

  • @prengbibassolares1321
    @prengbibassolares1321 Год назад +1

    Nice video, thanks.

  • @Dhay-x2l
    @Dhay-x2l 3 дня назад

    How to send file

  • @JunicaviGames
    @JunicaviGames 6 месяцев назад

    can I use this approach for calling a SOAP service using javascript?

  • @stupid-handle
    @stupid-handle Год назад

    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?

    • @ByteGrad
      @ByteGrad  Год назад

      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.

  • @realagara
    @realagara 2 года назад

    How do i redirect users to another page on successful form submission ?

    • @ByteGrad
      @ByteGrad  2 года назад +3

      window.location.href = ‘url of other page’;

  • @ByteGrad
    @ByteGrad  2 года назад

    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