► 33% OFF on my Go + HTMX + Templ Course PRESALE bit.ly/3UFruxO ► Full Projects, Mini courses, Resume reviews, and Coaching thetotalcoder.com ► Join my Discord community for free education discord.com/invite/Ac7CWREe58 ► 60% OFF on my Golang course fulltimegodev.com Thanks for watching
I've always done my error handling for forms client-side, and never really thought about doing it server-side. Now that I'm getting into Go, this approach is a bit foreign...but...i must admit...i really like it
Coming from React hook form, validation schemas, zod, client side and server side validation... this is very refreshing. Very intrigued with the rendered charts, is that go-charts? That is something I am yet to test.
Curious how would you clean up the errors in the following scenario: 1. User enters data in the Name field only and posts the form. 2. The server returns the form with errors on other mandatory fields. 3. User types something into the field with an error markup. I assume that the error just stays in the form, but from UX standpoint it would be nice to remove the error once the user populated the field.
you could also get errors from a different templ endpoint that executes with a delay after using input, right? though I believe that's a far stretch to not use js
Hey Anthony....I Am New To Golang and want to create a project in Golang....You have many projects on your channel....But which one of your project is do you think good for beginner
► 33% OFF on my Go + HTMX + Templ Course PRESALE bit.ly/3UFruxO
► Full Projects, Mini courses, Resume reviews, and Coaching thetotalcoder.com
► Join my Discord community for free education discord.com/invite/Ac7CWREe58
► 60% OFF on my Golang course fulltimegodev.com
Thanks for watching
Hey! please do some i18n stuff with Go and HTMX
I've always done my error handling for forms client-side, and never really thought about doing it server-side. Now that I'm getting into Go, this approach is a bit foreign...but...i must admit...i really like it
Coming from React hook form, validation schemas, zod, client side and server side validation... this is very refreshing. Very intrigued with the rendered charts, is that go-charts? That is something I am yet to test.
Oh look. It's Timmy 😃
Thanks you please make more from this types of videos
Curious how would you clean up the errors in the following scenario:
1. User enters data in the Name field only and posts the form.
2. The server returns the form with errors on other mandatory fields.
3. User types something into the field with an error markup.
I assume that the error just stays in the form, but from UX standpoint it would be nice to remove the error once the user populated the field.
I agree. A little bit of js i guess
you could also get errors from a different templ endpoint that executes with a delay after using input, right? though I believe that's a far stretch to not use js
Hey Anthony....I Am New To Golang and want to create a project in Golang....You have many projects on your channel....But which one of your project is do you think good for beginner
What web framework are you using?
chi
what theme in vs code are you using?
Nice video! And what theme is that?
The GG HTMX System with Golang Templ
My G ❤
Hi Anthony
Nice video
What does hxRedirect look like GG? Also, how are you handling the nav menu on the side? Is that a templ component too?
Hey anthony on chi while handeling route not or method not do we always have to wrap it by router.Route have you faced this issue.?
where is hx-target, how did htmx know which node to swap?
oh, htmx default is replacing the one that made the request
Gold
Don't forget to add CSRF to that before put it live lol