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

    hundreds-camera-24900

    01/12/2023, 8:38 PM
    idk how you can be so Zen about it
  • h

    hundreds-camera-24900

    01/12/2023, 8:38 PM
    I get annoyed just reading the screen shots
  • l

    late-king-98305

    01/12/2023, 8:43 PM
    https://tenor.com/view/boo-boo-this-man-mad-angry-gif-16849857
  • b

    bumpy-kangaroo-60192

    01/12/2023, 8:55 PM
    i have discovered that once again, the problem was that i didn't know what was happening
  • g

    gorgeous-airport-54386

    01/12/2023, 8:56 PM
    the only bug in all of programming
  • b

    bumpy-kangaroo-60192

    01/12/2023, 8:56 PM
    i figured it out in the course of implementing a terrible workaround
  • b

    bumpy-kangaroo-60192

    01/12/2023, 8:57 PM
    the first step was accidentally fixing the problem and being confused for a while
  • t

    thankful-addition-60522

    01/12/2023, 9:40 PM
    > unddit
  • o

    orange-umbrella-16693

    01/12/2023, 9:55 PM
    what'd be the best way to dynamically add clientside script behaviors to NEW elements say I want to make the discord server members sidebar, and onclick I want to show that generic loading square next to the user that was pressed, to be replaced with the htmx response should I: - hook some htmx event and via javascript re-register event listeners if an element is added/changed? - define that in attributes like
    onclick
    with inline javascript and have that execute a javascript function instead (isn't this a big security and performance concern?) - something else entirely? maybe with
    htmx.closest()
  • h

    handsome-room-10543

    01/12/2023, 10:49 PM
    Anyone used HTMX to boost all the links of a static Jekyll site? Feels like low hanging fruit but I have nfi how to go about it.
  • h

    handsome-room-10543

    01/12/2023, 10:49 PM
    (surprised there is no ruby-htmx channel)
  • r

    refined-waiter-90422

    01/12/2023, 10:55 PM
    <body hx-boost="true">
  • r

    refined-waiter-90422

    01/12/2023, 10:56 PM
    and yeah
    ruby-htmx
    should be a thing 😆
  • m

    mysterious-toddler-20573

    01/12/2023, 10:56 PM
    always has been
  • m

    mysterious-toddler-20573

    01/12/2023, 10:56 PM
    IN MY MIND
  • a

    adventurous-ocean-93733

    01/12/2023, 10:57 PM
    I raised this very thing an hour ago: https://github.com/bigskysoftware/hypermedia-systems/issues/38
  • a

    adventurous-ocean-93733

    01/12/2023, 10:57 PM
    Come on @mysterious-toddler-20573, turns out there's a whole bunch of closet Sinatra guys on HN too
  • m

    mysterious-toddler-20573

    01/12/2023, 10:58 PM
    \> finds project \> reads thouroughly \> creates useful, informed and thoughtful issues \> stays around to help fix c'mon bro this is open source u are not doing this right
  • a

    adventurous-ocean-93733

    01/12/2023, 11:00 PM
    Man, I nearly recreated the https://hypermedia.systems contacts app in Sinatra today
  • a

    adventurous-ocean-93733

    01/12/2023, 11:01 PM
    Also a big Django fan though
  • a

    adventurous-ocean-93733

    01/12/2023, 11:02 PM
    Literally hundreds of Ruby guys on this Discord feeling dirty because there was no Ruby channel, you are all free now! #1063229945544966326
  • t

    thankful-addition-60522

    01/13/2023, 6:45 AM
    Copy code
    > Waits 128+ hours
    > 0 responses
  • t

    thankful-addition-60522

    01/13/2023, 7:50 AM
    i feel dirty knowing nobody ported sinatra on php and it being actively maintained
  • b

    bland-coat-6833

    01/13/2023, 9:21 AM
    Some fella saying that server-side is better than SPA: https://overcast.fm/+GnKYQRAyo/48:04 He only worked on healthcare.gov so what does he know?
  • c

    colossal-laptop-66232

    01/13/2023, 10:53 AM
    Hi all. Need help 🙂 I want to trigger htmx request after a form filled completely. How to do it? Example:
    Copy code
    <form action="" method="get">
        <input type="text" name="Name" id="name">
        <input type="text" name="Age" id="age">
        <input type="text" name="City" id="city">
    </form>
        <button type="submit" disabled>Click!</button>
    When the form is openned - submit is disabled, and it should change its state to active only after all form fields are filled.
  • t

    tall-dinner-62086

    01/13/2023, 11:03 AM
    You're gonna need some javascript or hyperscript for that
  • c

    colossal-laptop-66232

    01/13/2023, 12:20 PM
    Thanks @tall-dinner-62086 , I hoped htmx have such functions)
  • t

    tall-dinner-62086

    01/13/2023, 12:21 PM
    htmx is for client-server interaction, not client-side interaction
  • b

    bland-coat-6833

    01/13/2023, 12:42 PM
    You can set the
    required
    attribute on your fields and that should disable submit until they are filled in: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required
  • r

    ripe-action-67367

    01/13/2023, 12:53 PM
    There is a pattern of server-side validation. When inputs are changed, you submit form to the server's validation endpoint. This endpoint then returns the form with validation state, and you could apply the same pattern to show-hide the button.
1...982983984...1146Latest