Sending Data in HTMX Requests (3 Ways)

Поділитися
Вставка

КОМЕНТАРІ • 9

  • @alanonym8972
    @alanonym8972 8 місяців тому +2

    I came here because I could not figure out why my nodeJS server could not read the body that was sent by the htmx form. Turns out, I did the same mistake as you did at 6:30: the Form Data contained the right fields/values, but the body was an empty object so every property was undefined.
    Including app.use(bodyParser.urlencoded({ extended: true })); fixed the issue and saved me an hour or more, thank you very much for sharing the fix !

    • @DevTalk
      @DevTalk  8 місяців тому

      You're most welcome 😊

  • @muskaczjohnson5944
    @muskaczjohnson5944 2 місяці тому

    Good explanation.

  • @ba8e
    @ba8e 9 місяців тому +1

    The includes one is definitely the one for me. Thanks :)

    • @DevTalk
      @DevTalk  9 місяців тому +1

      Glad you found it useful

  • @davidlepold
    @davidlepold 9 місяців тому

    hello, I liked the video, and the include was new to me, so thanx! - yet i was drawn to the video for the PUT method. did I miss that?

    • @DevTalk
      @DevTalk  9 місяців тому +1

      Glad you found the video useful ☺️. Sorry, I didn't demo PUT as it follows the same rules as normal PUT requests using the hx-put attribute

    • @davidlepold
      @davidlepold 9 місяців тому +1

      ah, ok, i get it, thx! :) @@DevTalk

  • @DevTalk
    @DevTalk  8 місяців тому

    Get the Complete HTMX Course (Zero to Pro) for 90% off www.udemy.com/course/the-complete-htmx-course/?couponCode=D6D5855A7394FAD42284