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

    dry-motherboard-2391

    04/13/2023, 6:25 PM
    I see you offer including a mention on the home page, how do we set that up?
  • m

    mysterious-toddler-20573

    04/13/2023, 6:26 PM
    yep, corporate sponsors get a logo on the front page: email me at htmx@bigsky.software and we'll get it set up
  • d

    dry-motherboard-2391

    04/13/2023, 6:29 PM
    Done, cheers!
  • a

    ancient-shoe-86801

    04/13/2023, 7:51 PM
    just got this on my inbox:

    https://cdn.discordapp.com/attachments/725789747212976259/1096160877339738323/image.png▾

  • m

    mysterious-toddler-20573

    04/13/2023, 8:37 PM

    https://cdn.discordapp.com/attachments/725789747212976259/1096172319124230174/ODU5NDc4.png▾

  • r

    refined-pillow-25368

    04/13/2023, 9:05 PM
    Are Modals something you guys would solve with server side rendering or something that you would solve with something like alpine.js
  • m

    mysterious-toddler-20573

    04/13/2023, 9:23 PM
    client side, and I'd consider using something like inline editing instead for many cases: https://htmx.org/examples/click-to-edit/
  • m

    mysterious-toddler-20573

    04/13/2023, 9:24 PM
    modals introduce client-side state you have to manage and don't feel super "web"-ish to me in many cases, obviously they are very popular however so I am not dogmatic about them
  • f

    freezing-waitress-26396

    04/13/2023, 9:32 PM
    I agree, when I can avoid modals, I do
  • e

    echoing-lion-55988

    04/13/2023, 9:37 PM
    I am using modals for generic error responses from htmx requests. When server returns >400, it sends header with hx trigger event and additional error details. I’ve got dialog which listens for such event and toggles itself. It’s using alpinejs.
  • e

    echoing-lion-55988

    04/13/2023, 9:39 PM
    As @mysterious-toddler-20573 pointed out, it’s not really webish, but my project is on very early development stage and it made me not think about how to handle error messages on the UI side. The dialog is always there and waiting for the error event.
  • e

    echoing-lion-55988

    04/13/2023, 9:39 PM
    Powerful stuff
  • b

    busy-action-85810

    04/13/2023, 10:48 PM
    Thanks! Yep, that did the trick (had over complicated the issue by not relying on the inherent nature of the actual HTML form).
  • c

    cuddly-keyboard-70746

    04/14/2023, 1:14 AM
    "vibrant ecosystem that is constantly innovating" oh please, hype train wagon is all you got. Those guys will look back and regret loosing years chasing trends.
  • m

    mysterious-toddler-20573

    04/14/2023, 2:56 AM
    We’ve all got to learn at our own pace. I get it. If you don’t have early web experience it can be really hard to see alternatives
  • p

    powerful-businessperson-32714

    04/14/2023, 3:11 AM
    Finally I can ask some questions!
  • p

    powerful-businessperson-32714

    04/14/2023, 3:31 AM
    Hey! So I'm actually starting out, decided to specialize in front-end and looking to create a stack(html css javascript) before I start learning. I'm deeply interested minimalism and this article really made me very interested in htmx/hyperscript. https://github.com/readme/featured/open-source-minimalism I have no clue where to start but I thought I'd share my idea with you guys. What would you recommend if you starting out in web development? Where would htmx/hyperscript fit in? An alternate route I've been considering is Svelte/tailwindCSS/typescript I don't use any of this technology but I greatly appreciate the innovation that's been created! P. S. Here's to being a future htmx developer!
  • m

    mysterious-toddler-20573

    04/14/2023, 4:49 AM
    Hi there, welcome! If you are really interested in getting into front end as a career, I would unfortunately have to recommend that you pick up React. It is going to be far, far easier for you to get a job with that on your resume. Svelte is also popular, but I would maybe look at Vue if you aren't interested in React. htmx really isn't very hard when compared with those tools, so once you have a job all sorted out you can come back and look at it, but, from a career standpoint, at this point it is very niche. Not to discourage you looking in to htmx, but we all have to be practical and put food on the table!
  • b

    brainy-ice-92385

    04/14/2023, 5:19 AM
    React in the streets, but htmx... 👀
  • a

    adventurous-ocean-93733

    04/14/2023, 6:43 AM
    I’d start out by reading Part 1 of https://hypermedia.systems/ because it’ll give you a great foundation for understanding everything else and prevent you being brainwashed by SPA stuff
  • l

    loud-airport-49705

    04/14/2023, 9:53 AM
    i'm generally not a web developer, but currently looking at putting together a simple dashboard that would receive and display a list of kv pairs. this sounds a bit backwards for what i understand htmx is (my dom is defined by the universe of keys sent from the server, rather than what's in my html). is htmx the wrong tool for this?
  • I m having a little problem with browser
    k

    kind-horse-44515

    04/14/2023, 12:31 PM
    I'm having a little problem with browser history that I don't quite understand how to fix. I have a site where you play a game and when the other player takes a turn, the game state will refresh (via htmx sse events). I don't want these refreshes to add browser history though. Right now you have to hit "back" for every turn before you can get out of the game. You can see what I mean here https://gameplay.fly.dev
    r
    • 2
    • 7
  • s

    sparse-musician-64201

    04/14/2023, 12:53 PM
    does it matter if you use named or data only events?
  • r

    rapid-lunch-78326

    04/14/2023, 1:31 PM
    this line changed my life
    Copy code
    hx-vals="js:{focused_element_name: document.activeElement.name}"
  • l

    limited-teacher-83117

    04/14/2023, 1:51 PM
    🙂 one of my favorite things about this library is that you can usually fix your problem by returning to HTML, not moving away for it. sorry about the regression!
  • r

    refined-waiter-90422

    04/14/2023, 2:20 PM
    I've had this happen to me as well a number of times. It's very refreshing.
  • m

    mysterious-toddler-20573

    04/14/2023, 2:28 PM
    retvrn

    https://cdn.discordapp.com/attachments/725789747212976259/1096441905119764500/58uwcw.png▾

  • a

    aloof-farmer-99917

    04/14/2023, 4:06 PM
    So I'm cosplaying a full-stack dev at work because I wanted to get a more holistic view on one project. Wiring up an existing vue frontend to a new backend. The hoops frontend devs jump through because they don't feel like asking for a new method or a parameter are impressive and scary, and I lost an hour trying to figure out why they did what they did until I noticed they somehow invented AND filter logic given only OR filter, in a fragile way which I immediately broke. Seems like the biggest drag on productivity isn't exactly the complexity of tooling, but rather a somewhat arbitrary line along which people have to fracture a project and the whole organization of the work…
  • a

    aloof-farmer-99917

    04/14/2023, 4:07 PM
    I should try to partisan htmx into this corp 🙂
  • m

    mysterious-toddler-20573

    04/14/2023, 4:18 PM
    many such cases
1...109310941095...1146Latest