
#321: HTMX - Clean, Dynamic HTML Pages
Talk Python To Me
00:00
How to Show Errors in HTML
One common thing to do is to have your error messages elsewhere, right? They're not down in that element. You can use what's called an out of band response. So you could use that to put an error message up on the header if you wanted to do that. And then you can write a little bit of code on the front end to listen for that custom event that you're triggering and then show toast message saying, hey, save the app.
Transcript
Play full episode