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

    ripe-action-67367

    07/29/2022, 4:17 PM
    Could you provide a reproducible example, like samples of your HTML and ajax response? Not necessarily with styling, just the markup with htmx
  • l

    late-king-98305

    07/29/2022, 7:50 PM
    When you get your issue resolved, and have some time, I'd like to hear about your experience with Rust and htmx. It's on my to-learn list (and the genesis of the #937504709449764944 channel).
  • t

    thankful-sugar-81945

    07/29/2022, 8:20 PM
    How would I go about sending an authentication header through "hx-post"?
  • t

    thankful-sugar-81945

    07/29/2022, 8:23 PM
    Ah I found this: https://htmx.org/events/#htmx:configRequest
  • a

    ancient-shoe-86801

    07/30/2022, 1:09 AM
    I am so puzzled by this behavior;
  • a

    ancient-shoe-86801

    07/30/2022, 1:10 AM
    it keeps alternating between fast and slow 🤔
  • a

    ancient-shoe-86801

    07/30/2022, 1:10 AM
    (each request just runs 4 selects against a DB and returns HTML with a few select and input elements)
  • h

    hundreds-camera-24900

    07/30/2022, 1:11 AM
    try spacing out the requests
  • a

    ancient-shoe-86801

    07/30/2022, 1:11 AM
    doesn't make a difference. I triggered them by hand clicking on a button
  • a

    ancient-shoe-86801

    07/30/2022, 1:12 AM
    I wonder if the flask development server is acting wonky
  • a

    ancient-shoe-86801

    07/30/2022, 1:14 AM
    mmm, the 'Waiting for server response" time is actually consistent between calls
  • a

    ancient-shoe-86801

    07/30/2022, 1:14 AM
    around ~120ms on each
  • a

    ancient-shoe-86801

    07/30/2022, 1:17 AM
    oh, the fast ones do not have the DNS lookup and initial connection
  • w

    witty-garage-37227

    07/30/2022, 5:51 AM
    QQ: Anybody know why
    div _="on load ... />"
    works but
    <div @load=... />
    on alpinejs doesn't, do I need the the
    alpine-morph
    extension for that to work?
  • m

    many-rain-31921

    07/30/2022, 6:34 AM
    ok will try to do that
  • m

    many-rain-31921

    07/30/2022, 6:37 AM
    ok, I can do that. The stack is simple for now: axum as server, tera for templating. htmx + alpine.js for ui enhancements
  • r

    ripe-action-67367

    07/30/2022, 7:28 AM
    alpine js you say... Is your table rendered with alpine by any chance?
  • m

    many-rain-31921

    07/30/2022, 1:29 PM
    nope, plain html with bootstrap / tabler.io
  • s

    salmon-church-58191

    07/30/2022, 5:27 PM
    Hi! I originally was worried that HTMX would choke on a paginated, typeahead search table... until I found out improving just that thing was in fact part of the origin story for HTMX! Creating search tables are a real challenge for me (hence I used to download bloated libraries for them)... but now I'm ready to tackle it. Does anyone know of an example out there to get me going?
  • s

    salmon-church-58191

    07/30/2022, 5:29 PM
    HTMX is so damn cool, by the way. Actually enjoying front-end dev again.
  • s

    salmon-church-58191

    07/30/2022, 5:29 PM
    (and I'm reading back through this channel as well... tables are being discussed)
  • s

    salmon-church-58191

    07/30/2022, 5:38 PM
    I should have mentioned the key part: I'm hoping eventually to make the table editable by clicking into a cell if a user enables edit mode (probably by clicking on a pencil).
  • s

    salmon-church-58191

    07/30/2022, 6:23 PM
    But I'm happy with a non-editable example, of course, to get going with.
  • m

    mysterious-toddler-20573

    07/30/2022, 7:02 PM
    heya patrick, I'm not aware of any examples of this, but it seems doable within reason, we can help you out as you progress through it. Sounds kind of like a mix of active search: https://htmx.org/examples/active-search/
  • m

    mysterious-toddler-20573

    07/30/2022, 7:02 PM
    and edit row
  • m

    mysterious-toddler-20573

    07/30/2022, 7:02 PM
    https://htmx.org/examples/edit-row/
  • s

    salmon-church-58191

    07/30/2022, 8:31 PM
    I had an actual surge of emotion when I saw this. 'we can help you out as you progress through it'. I have a lot of feelings around my coding frustrations at times... and it's been a long journey. And htmx actually is part of the new happy path... seeing things happen without 300 lines of boilerplate (or 3000 in the case of React) is part of the recovery process. 🥲
  • m

    mysterious-toddler-20573

    07/31/2022, 3:41 PM
    https://twitter.com/htmx_org/status/1553751351393505285
  • l

    late-king-98305

    07/31/2022, 5:39 PM
    🦆
  • l

    late-king-98305

    07/31/2022, 5:40 PM
    ^^ I had a whole question typed out, and to clarify it, I read the docs one more time, and there was my answer. So - thank you all for being my ducks, whether you were aware of it or not!
1...765766767...1146Latest