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

    freezing-waitress-26396

    09/28/2022, 4:13 AM
    There's definitely a use case for administrative purposes like managing data in a slick and responsive way. While I hate developing WordPress plugins, htmx can massively increase the user experience if a plugin's settings or management pages in wp-admin were using htmx
  • p

    proud-librarian-99598

    09/28/2022, 6:26 AM
    Ah, good idea. Thanks, I'll try that.
  • m

    melodic-advantage-28381

    09/28/2022, 8:25 AM
    Hey! Sorry for the delay, my presence on the internetz has been quite sparse since DjangoCon. To be honest I'm not sure the slides are really useful without the demo and the code, but here they are: https://docs.google.com/presentation/d/1jW7vTiHFzA71m2EoCywjNXch-RPQJuAkTiLpleYFQjI/edit?usp=sharing
  • m

    melodic-advantage-28381

    09/28/2022, 8:26 AM
    I don't know when the talk itself will be available on YT, but I'll post it here for sure 😉
  • m

    mysterious-toddler-20573

    09/28/2022, 1:11 PM
    By the way, I am officially calling this The Mother of All htmx Demos
  • m

    mysterious-toddler-20573

    09/28/2022, 1:11 PM
    ™️
  • m

    mysterious-tomato-195

    09/28/2022, 1:34 PM
    Is there a success quivalent for
    responseError
    ? I tried searching a bit but I only found a few messages without resolution from last year
  • m

    mysterious-toddler-20573

    09/28/2022, 2:32 PM
    htmx:afterRequest is what I would look at
  • m

    mysterious-toddler-20573

    09/28/2022, 2:32 PM
    you might need to look at the xhr in the detail to determine if the request was successful or not
  • m

    mysterious-tomato-195

    09/28/2022, 2:35 PM
    I see, it's what I have now, but I thought I was missing something obvious
  • i

    important-van-94053

    09/28/2022, 2:39 PM
    Thanks! I assume the YouTube replay will include the demo. I’ll watch it then!
  • s

    stocky-school-57923

    09/28/2022, 4:23 PM
    I'm loading a table inside a div with fixed width and height. The table overflows the div so one can scroll down to see more rows in the table. Each table row has a sparkline (charts.js) which loads by hx-trigger="revealed". However, it doesn't load on reveal in the table div itself. I have to first reveal the row in the table div, then scroll the parent view for the reveal to trigger. Can anyone help me on how I get the reveal to work stand-alone inside the table div?
  • h

    hundreds-camera-24900

    09/28/2022, 4:31 PM
    you want to load the sparkline before it scrolls into view?
  • h

    hundreds-camera-24900

    09/28/2022, 4:31 PM
    are you loading the rows as they're scrolled into view
  • h

    hundreds-camera-24900

    09/28/2022, 4:31 PM
    or do they load all up front
  • s

    stocky-school-57923

    09/28/2022, 4:35 PM
    No, I want them to load when they come into view. hx-trigger="revealed" is meant to do this.
  • s

    stocky-school-57923

    09/28/2022, 4:35 PM
    except the reveal doesn't trigger when the reveal happens inside a scrollable "child" div.
  • a

    ancient-shoe-86801

    09/28/2022, 4:49 PM
    waiting for the YT video to share at work
  • a

    ancient-shoe-86801

    09/28/2022, 5:02 PM
    so, I just went through the whole thread of https://discord.com/channels/725789699527933952/996832027083026563/1024691495225282701 (yes, he made a thread, not just that one message), and I have to say that he has a point. Should a good developer know how to get it from unpkg (which is linked from the home page)? Yes. Should a good developer figure out that they can also go to the GitHub repo and get it from the dist directory? Yes. But is is also true that you have to make things as easier as possible for lazy or not-so-good developers if you want a project to have great success. If you just want to download a file, unpkg add some hops to that. And having to go to the repo and fish it is also extra clicks and effort. So maybe it wouldn't be a bad idea to replace (or complement) the unpkg link with a basic file download.
  • m

    mysterious-toddler-20573

    09/28/2022, 5:15 PM
    Agreed!
  • m

    mysterious-toddler-20573

    09/28/2022, 5:22 PM
    I'd like to have a simple way to set up htmx projects for common server side environments too
  • m

    mysterious-toddler-20573

    09/28/2022, 5:23 PM
    otoh, downloading a file from a CDN isn't rocket science
  • g

    gorgeous-airport-54386

    09/28/2022, 5:23 PM
    what's that? you want a simple way to set up htmx projects for niche experimental runtimes? on it https://github.com/dz4k/deno-htmx-starter/
  • m

    mysterious-toddler-20573

    09/28/2022, 5:24 PM
    😑
  • m

    mysterious-toddler-20573

    09/28/2022, 5:25 PM
    what we really need is someone ( @ancient-shoe-86801 ) to take the lead on getting the https://htmx.org/server-examples/ page cleaned up and then linked directly from the home page
  • m

    mysterious-toddler-20573

    09/28/2022, 5:25 PM
    or, like, anyone who knows anything about information architecture would be good too
  • m

    mysterious-toddler-20573

    09/28/2022, 5:25 PM
    essays are not buried in a tiny link on talk
  • m

    mysterious-toddler-20573

    09/28/2022, 5:25 PM
    lol
  • m

    mysterious-toddler-20573

    09/28/2022, 5:25 PM
    lmao
  • a

    ancient-shoe-86801

    09/28/2022, 5:27 PM
    https://tenor.com/view/chuckles-im-in-danger-ralph-wiggum-the-simpsons-gif-14149962
1...839840841...1146Latest