https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • l

    limited-teacher-83117

    05/23/2023, 8:51 PM
    another benefit of this approach, even though the UX is seen as old, is that each step of the form is saved on the server, so it's resumable, and you can easily send a user back to the appropriate step with a redirect
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:12 PM
    It’s state and a little storage per user but for long complex forms I appreciate this feature so SO much
  • l

    limited-teacher-83117

    05/23/2023, 9:14 PM
    That's definitely one way to do it, but you don't even need state, in the sense that your server can make a DB call and say "based on what data is present and what data is null, send the user to this URL". ymmv depending on your data model
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:14 PM
    Uhm a db is state nonetheless right? Yeah it doesn’t need to be in memory. I did edited my text
  • l

    limited-teacher-83117

    05/23/2023, 9:15 PM
    oh for sure, I understand what you're saying now. I just wanted to emphasize it's not additional state, since you are trying to save all that data somewhere anyway based on whatever they respond to the form
  • l

    limited-teacher-83117

    05/23/2023, 9:16 PM
    there's been a lot of UX regression in the last 10 years that feels like progression, and I think one challenge for this community is to bring back that featureset without regressing on the modern feel. tricky!
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:17 PM
    I don’t feel it that way
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:17 PM
    Regression and such
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:17 PM
    But sure it is not the hot technique everybody wants to talk about
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:17 PM
    Our industry is in diapers
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:17 PM
    And our cargo cults and hype chasing is laughable
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:18 PM
    We have a lot of maturing to do but I think it is achievable
  • l

    limited-teacher-83117

    05/23/2023, 9:18 PM
    regression definitely my personal opinion, but I think that users had a much better understanding of what click the back button would do on a website 10 years ago
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:20 PM
    SPAs can mess badly with the back button. But those form resubmittion alerts can be confusing as well. I guess back buttons were always a little tricky
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:20 PM
    Let’s all abandon http/https and write for the Gemini protocol
  • c

    cuddly-keyboard-70746

    05/23/2023, 9:21 PM
    https://gemini.circumlunar.space/docs/faq.gmi
  • g

    gorgeous-airport-54386

    05/23/2023, 9:22 PM
    > no subresources, ever
  • g

    gorgeous-airport-54386

    05/23/2023, 9:23 PM
    mostly to do with modal dialogs being used when separate pages would do fine tbh, something i see in this community as well
  • l

    limited-teacher-83117

    05/23/2023, 9:23 PM
    siren song of the modal
  • g

    gorgeous-airport-54386

    05/23/2023, 9:24 PM
    youDontNeedAModalWindow.dev
  • m

    mysterious-toddler-20573

    05/23/2023, 10:18 PM
    modals aren't really web friendly, for sure, but I'm as guilty as anyone of using them
  • g

    great-cartoon-12331

    05/23/2023, 10:19 PM
    i haven't needed them yet but looking to use the new
    <dialog>
    element at some point
  • g

    gorgeous-airport-54386

    05/23/2023, 10:40 PM
    i use it in a private app
  • g

    gorgeous-airport-54386

    05/23/2023, 10:41 PM
    very easy to use
  • n

    nice-cpu-16963

    05/23/2023, 10:42 PM
    Hi! New to htmx here, with a question: I have a form with a bunch of inputs, I'm using htmx on the form and it works nicely, but I would like to submit the full form on keyup on any of the inputs, is that possible ?
  • r

    ripe-action-67367

    05/23/2023, 10:51 PM
    Yes, set hx-trigger to keyup https://htmx.org/attributes/hx-trigger/
  • n

    nice-cpu-16963

    05/23/2023, 10:56 PM
    thanks a lot, and is there a way to get the usual get variables in the url (in the case of a hx-get form ?)
  • n

    nice-cpu-16963

    05/23/2023, 10:57 PM
    actually, this doesn't send the full form, only the changes of that specific input
  • n

    nice-cpu-16963

    05/23/2023, 11:02 PM
    I'll do more trial and error tomorrow thanks anyway!
  • n

    nice-cpu-16963

    05/23/2023, 11:25 PM
    (
    hx-push-url
    does what i want at the form level \o/)
1...113811391140...1146Latest