https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • Next version of htmx delayed as arguments break out over what constitutes a fruit.
    b

    bland-coat-6833

    04/11/2023, 10:46 AM
    Next version of htmx delayed as arguments break out over what constitutes a fruit.
  • HTMX FOOD FIGHT!!!!!!!!!!!!!
    l

    late-king-98305

    04/11/2023, 3:53 PM
    HTMX FOOD FIGHT!!!!!!!!!!!!!
  • ooo just tried out the new `hx-on`. That's nice! <@725789255590215732>
    r

    refined-waiter-90422

    04/11/2023, 4:31 PM
    ooo just tried out the new
    hx-on
    . That's nice! @mysterious-toddler-20573
  • `rm -rf www/js/frontends/*.js`
    r

    refined-waiter-90422

    04/11/2023, 4:31 PM
    rm -rf www/js/frontends/*.js
  • https://htmx.org/posts/2023-04-11-htmx-1-9-0-is-released/
    m

    mysterious-toddler-20573

    04/11/2023, 4:37 PM
    https://htmx.org/posts/2023-04-11-htmx-1-9-0-is-released/
  • <https://jsfiddle.net/n8avor54> 1.9.0 super demo 🌠
    r

    refined-waiter-90422

    04/11/2023, 4:42 PM
    1.9.0 super demo 🌠
  • 🥹
    f

    freezing-waitress-26396

    04/11/2023, 4:52 PM
    🥹
  • is there a way to send the `hx-target` as a header?
    t

    thankful-computer-7658

    04/11/2023, 4:55 PM
    is there a way to send the
    hx-target
    as a header?
  • `HX-Retarget`
    m

    mysterious-toddler-20573

    04/11/2023, 5:04 PM
    HX-Retarget
  • or do you mean "the thing being targeted"?
    m

    mysterious-toddler-20573

    04/11/2023, 5:05 PM
    or do you mean "the thing being targeted"?
  • If you mean that, there is a request header `HX-Target` which should be the id of the thing being targeted
    m

    mysterious-toddler-20573

    04/11/2023, 5:05 PM
    If you mean that, there is a request header
    HX-Target
    which should be the id of the thing being targeted
  • https://htmx.org/reference/#request_headers
    m

    mysterious-toddler-20573

    04/11/2023, 5:05 PM
    https://htmx.org/reference/#request_headers
  • you meant that there will be a `hx-target` and the value would be what's on my `hx-target` prop on the element right?
    t

    thankful-computer-7658

    04/11/2023, 5:11 PM
    you meant that there will be a
    hx-target
    and the value would be what's on my
    hx-target
    prop on the element right?
  • do I need to make something to have it? currently I'm just seeing `hx-request` and `hx-current-url`
    t

    thankful-computer-7658

    04/11/2023, 5:12 PM
    do I need to make something to have it? currently I'm just seeing
    hx-request
    and
    hx-current-url
  • you shouldn't need to do anything to see the header, maybe it's being filtered?
    m

    mysterious-toddler-20573

    04/11/2023, 6:17 PM
    you shouldn't need to do anything to see the header, maybe it's being filtered?
  • this is the rendered html
    t

    thankful-computer-7658

    04/11/2023, 6:44 PM
    this is the rendered html

    https://cdn.discordapp.com/attachments/725789747212976259/1095419091155693638/Screen_Shot_2023-04-11_at_14.44.19.jpg▾

  • does `[hx-content]` have an id on it?
    m

    mysterious-toddler-20573

    04/11/2023, 6:45 PM
    does
    [hx-content]
    have an id on it?
  • no, thats what the `id` meant in the docs?
    t

    thankful-computer-7658

    04/11/2023, 6:45 PM
    no, thats what the
    id
    meant in the docs?
  • i thought it was just and identification
    t

    thankful-computer-7658

    04/11/2023, 6:46 PM
    i thought it was just and identification
  • I'll test right now
    t

    thankful-computer-7658

    04/11/2023, 6:46 PM
    I'll test right now
  • yeaaaah that solved
    t

    thankful-computer-7658

    04/11/2023, 6:47 PM
    yeaaaah that solved
  • thanks 🙏
    t

    thankful-computer-7658

    04/11/2023, 6:47 PM
    thanks 🙏
  • that's the only way, right? I wouldn't like to use the id for it
    t

    thankful-computer-7658

    04/11/2023, 6:47 PM
    that's the only way, right? I wouldn't like to use the id for it
  • Would it make sense to have a `reselect` header similar to `reswap`, `retarget`, etc? I wanted to select a different element based on a condition, but ended up changing the template to return something different in each case.
    m

    most-jelly-15242

    04/11/2023, 7:23 PM
    Would it make sense to have a
    reselect
    header similar to
    reswap
    ,
    retarget
    , etc? I wanted to select a different element based on a condition, but ended up changing the template to return something different in each case.
  • https://news.ycombinator.com/item?id=35527287 - mention of htmx. Including my comment in there as well 🙂
    r

    ripe-hairdresser-53724

    04/11/2023, 8:19 PM
    https://news.ycombinator.com/item?id=35527287 - mention of htmx. Including my comment in there as well 🙂
  • This looks like an AI-generated framework
    g

    gorgeous-airport-54386

    04/11/2023, 8:25 PM
    This looks like an AI-generated framework
  • htmx ♥️ svelte
    m

    mysterious-toddler-20573

    04/11/2023, 8:27 PM
    htmx ♥️ svelte
  • same energy
    m

    mysterious-toddler-20573

    04/11/2023, 8:28 PM
    same energy

    https://cdn.discordapp.com/attachments/725789747212976259/1095445391597633679/iu.png▾

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

  • 😄
    r

    ripe-hairdresser-53724

    04/11/2023, 8:29 PM
    😄
  • m

    mysterious-toddler-20573

    04/11/2023, 9:02 PM

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

1...109010911092...1146Latest