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

    refined-waiter-90422

    07/10/2022, 10:36 AM
    In a way its a big advantage because you can pick the best for your workflow, but the patterns aren't always obvious if you're super new.
  • b

    blue-ghost-19146

    07/10/2022, 10:36 AM
    Thatโ€™s niiice^ Could also use oob swaps in this instance, just add them into the success response targeting an #existing-id
  • r

    refined-waiter-90422

    07/10/2022, 10:37 AM
    Thanks, aha. I literally just thought of it. Keepin it simple.
  • b

    blue-ghost-19146

    07/10/2022, 10:38 AM
    Yep same here @refined-waiter-90422 ๐Ÿ˜… so many choices, but thatโ€™s not necessarily a bad thing, like you say!
  • r

    refined-waiter-90422

    07/10/2022, 10:39 AM
    The huge win of htmx is the building blocks are so flexible. Cheers to @mysterious-toddler-20573 for that.
  • r

    refined-waiter-90422

    07/10/2022, 10:41 AM
    Yup oob swaps would be another way.
  • b

    blue-ghost-19146

    07/10/2022, 10:43 AM
    Absolutely. My team are loving using htmx with Django rather than a huge JS framework
  • r

    refined-waiter-90422

    07/10/2022, 10:47 AM
    Yeah. The type of developer on this server is highly inquisitive, it's refreshing. Not tied up with resume driven development.
  • f

    fancy-elephant-10660

    07/10/2022, 10:52 AM
    Well I love using VUE it makes a lot of sense from frontend point
  • f

    fancy-elephant-10660

    07/10/2022, 10:53 AM
    But all the extras you need todo to use VUE + installen 1GB+ node packages that you don't know what they do and obscure errors made me wonder if HTMX is a replacement
  • b

    blue-ghost-19146

    07/10/2022, 11:00 AM
    @fancy-elephant-10660 if you want to talk about how django & htmx can work together in more detail, thereโ€™s a django-htmx channel on this server as well
  • f

    fancy-elephant-10660

    07/10/2022, 11:01 AM
    yes I have seen @blue-ghost-19146 I'll do i future if django related question. Thx for the help
  • c

    colossal-umbrella-30198

    07/10/2022, 11:40 AM
    Hello guys check out a small library that supports Alpinejs, Htmx and much more in python and feels like React JS in python, please give feed backs too https://github.com/bitplorer/uidom
  • r

    refined-waiter-90422

    07/10/2022, 12:26 PM
    cool for people who enjoy that pattern. I'm more of a "use raw html files" guy. I really wish Python took the PHP route and just embedded python directly in HTML... ๐Ÿ‘€
  • r

    refined-waiter-90422

    07/10/2022, 12:28 PM
    There's so much shit I miss from PHP.
  • r

    refined-waiter-90422

    07/10/2022, 12:29 PM
    we have so many peeps here that re-implemented PHP style file-based routing in Python ๐Ÿ˜†
  • r

    refined-waiter-90422

    07/10/2022, 12:30 PM
    just copy/pasting a file to create a new route is insane productivity
  • c

    colossal-umbrella-30198

    07/10/2022, 12:33 PM
    I have written my whole website using uidom library, it feels better than writing viewsets in Django at least ๐Ÿ˜‹
  • r

    refined-waiter-90422

    07/10/2022, 12:33 PM
    Yeah I bet i'd be nice if you're into the pattern.
  • c

    colossal-umbrella-30198

    07/10/2022, 12:34 PM
    you can explore more about uidom by exploring demosite folder ๐Ÿ“‚
  • c

    colossal-umbrella-30198

    07/11/2022, 5:05 AM
    Well I forget to add, you can use raw html too inside uidom, ๐Ÿ˜…
  • a

    ancient-father-3063

    07/11/2022, 5:44 AM
    is there a way to get htmx to trigger off any change in a form field? Including if I use hyperscript to change it?
  • a

    ancient-father-3063

    07/11/2022, 5:44 AM
    I think it only triggers change if the user changes it
  • a

    ancient-father-3063

    07/11/2022, 5:44 AM
    but sometimes I'll have hyperscript set the value of a form field, but I still want it to trigger and do the thing it's supposed to do when a selection is made
  • a

    ancient-father-3063

    07/11/2022, 5:45 AM
    what's the best way to accomplish this behavior
  • r

    refined-waiter-90422

    07/11/2022, 5:49 AM
    You want
    hx-trigger="changed"
  • a

    ancient-father-3063

    07/11/2022, 5:50 AM
    can I use "changed" as a stand alone trigger? or does it have to modify change?
  • a

    ancient-father-3063

    07/11/2022, 5:53 AM
    hmmm, no doesn't work
  • a

    ancient-father-3063

    07/11/2022, 5:54 AM
    Copy code
    html
    <select hx-get="/listofflavors" hx-swap="innerHTML" hx-target="next select" hx-trigger="change changed" id="id_matches-4-theirDeck" name="matches-4-theirDeck">
  • a

    ancient-father-3063

    07/11/2022, 5:54 AM
    So the problem is I have this select element, it updates the next select with a list of appropriate options.
1...739740741...1146Latest