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

    refined-waiter-90422

    05/05/2023, 10:38 PM
    In all fairness I think HN has warmed up to htmx on average
  • m

    mysterious-toddler-20573

    05/05/2023, 10:41 PM
    there is a great, silent majority of HN users that love htmx
  • m

    mysterious-toddler-20573

    05/05/2023, 10:41 PM
    i am not a crook
  • r

    refined-waiter-90422

    05/05/2023, 10:46 PM
    A bit of nostalgia, but i distinctly remember seeing intercooler around 2013 and thinking " i really want to use this someday ".. now here we are. Glad you have been fighting the good fight all this time @mysterious-toddler-20573
  • r

    refined-waiter-90422

    05/05/2023, 10:50 PM
    Even in that form the concept was pretty novel.
  • r

    refined-waiter-90422

    05/05/2023, 10:56 PM
    Probably from an HN post actually
  • a

    adventurous-ocean-93733

    05/05/2023, 10:58 PM
    Most of the best ideas have half the people hate it and half the people love it. If 100% of the people kinda like it then I'd be more concerned.
  • m

    mysterious-toddler-20573

    05/05/2023, 10:58 PM

    https://www.youtube.com/watch?v=tYzMYcUty6s▾

  • m

    mysterious-toddler-20573

    05/05/2023, 10:59 PM
    i think about this youtube a lot
  • m

    miniature-lizard-24702

    05/05/2023, 11:19 PM
    Why am I reminded of this song from hearing that
  • m

    miniature-lizard-24702

    05/05/2023, 11:19 PM
    https://m.youtube.com/watch?t=1m&v=n1Zg4BYbG8g&pp=ygUga2lsbCBsYSBraWxsIGRvbid0IGxvc2UgeW91ciB3YXk%3D
  • r

    ripe-manchester-46395

    05/06/2023, 12:43 AM
    Has anyone implemented https://github.com/gothinkster/realworld/ in htmx/hyperscript? I found https://github.com/harabat/django-htmx but the author says they are rewriting it, so I figured I'd ask about other examples. Even so, it'd be cool to see this on the official examples page! https://htmx.org/server-examples/ 😄
  • f

    flaky-energy-47039

    05/06/2023, 4:37 AM
    Thats the point, that example sends all form content after blur of email field.

    https://cdn.discordapp.com/attachments/725789747212976259/1104265629541863434/IMG_20230506_073549.jpg▾

  • a

    adventurous-ocean-93733

    05/06/2023, 6:20 AM
    It did really well quickly and then slowed down a lot. I think we’ve all seen the phenomenon of a post doing incredibly well sitting in the top five, maybe even #1, then getting walloped and sometimes disappearing completely for some users. Yesterday I learned that HN has an “overheated discussion detector” (informally known as flamewar detector) that punishes posts that get a lot of comments. So with this in mind, I wonder if it might make sense for 1cg and this community to give an htmx post an hour or two to build momentum before diving into answer comments / defend it.
  • v

    victorious-artist-2344

    05/06/2023, 7:55 AM
    I had a quick glance and wondered what’s this Frontend/backend split nonsense.
  • a

    adamant-exabyte-92636

    05/06/2023, 9:25 AM
    Well hellooooo htmx folks! Been a minute 😁 👋
  • a

    adamant-exabyte-92636

    05/06/2023, 9:27 AM
    Glad to see @mysterious-toddler-20573 is still memeing his way through life, whilst @gorgeous-airport-54386 is happily snarking along as usual 🙂
  • e

    eager-ocean-77779

    05/06/2023, 10:37 AM
    out of curosity, does HTMX have an equivalent of https://unpoly.com/up-hungry ? I assume morphing is used instead?
  • r

    refined-waiter-90422

    05/06/2023, 11:09 AM
  • r

    refined-waiter-90422

    05/06/2023, 11:12 AM
    You can also
    hx-select
    and
    hx-target
    an entire area, to do all elements in an element at once (ex: whole page)
  • m

    mysterious-toddler-20573

    05/06/2023, 11:43 AM

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

  • m

    mysterious-toddler-20573

    05/06/2023, 11:44 AM
    if the validation is done w/ a GET it shouldn't include all the parameters
  • m

    mysterious-toddler-20573

    05/06/2023, 11:45 AM
    (tbh, I doubt it matters: latency is going to be much more significant than bandwidth)
  • f

    flaky-energy-47039

    05/06/2023, 1:43 PM
    I will try it with GET. It is just weird to send thousands of words of article content to validate some date.
  • w

    witty-account-33479

    05/06/2023, 2:08 PM
    @gorgeous-ghost-95789 thank you. I did try hx-on='htmx:load: ...'. The thing that was disappointing about the htmx events was that they only fire on the root of the htmx returned tree (or fragment, not sure on the terminology). Perhaps this is naive / wishful thinking but I was hoping that I could specify all the behavior by targeting the id of the relevant span, which is deep inside a complex htmx response.
  • b

    bitter-machine-55943

    05/06/2023, 2:57 PM
    How do I return multiple fragments in one request?

    https://cdn.discordapp.com/attachments/725789747212976259/1104421727355797565/D0275866-877B-4A1D-ADC7-744F1E26F96A.jpg▾

  • q

    quick-lamp-41411

    05/06/2023, 2:59 PM
    https://htmx.org/examples/update-other-content/
  • w

    witty-account-33479

    05/06/2023, 3:06 PM
    @bitter-machine-55943 my understanding is that you use out-of-band swaps. The first fragment goes into the target. The subsequent fragments target whatever existing node has matching
    id
  • b

    bitter-machine-55943

    05/06/2023, 3:07 PM
    Ah, so that’s what
    hx-swap-oob
    is for
  • b

    bitter-machine-55943

    05/06/2023, 3:12 PM
    How do I return multiple events in the response header when I don’t want extra info? In the docs it shows:
    HX-Trigger:newContact
    HX-Trigger: {"event1":"A message", "event2":"Another message"}
    But can I do 2 events like this, or what’s the syntax?
    HX-Trigger: newContact1 newContact2
1...111411151116...1146Latest