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

    some-airline-73512

    12/14/2022, 3:19 PM
    If htmx supported HX-Reselect, I could implement this using:
    Copy code
    javascript
        res.setHeader('HX-Retarget', '#neg-count')
        res.setHeader('HX-Reselect', '#neg-count')
        res.setHeader('HX-Reswap', 'outerHTML')
  • t

    tall-dinner-62086

    12/14/2022, 3:31 PM
    Looks like someone got hacked
  • g

    gorgeous-airport-54386

    12/14/2022, 3:36 PM
    Handled. They had no other messages on the server
  • t

    tall-dinner-62086

    12/14/2022, 3:37 PM
    Just a long time lurker
  • w

    wonderful-school-81222

    12/14/2022, 5:18 PM
    hx-push-urlPartial vs Full Page Rendering
  • w

    worried-hair-75253

    12/14/2022, 5:28 PM
    swapping a partial in every 2 seconds which is a div containing a table and the div has a y overflow + hidden so that the div is a consistent size the table has a scrollbar if it exceeds that size. I'd like to preserve the scroll position of the table after the swap. anyone ever done something like this? seems there is nothing available in HTMX to track this so I assume I'll need a bit of JS. I have done this before for the document (in asp.net webforms) but not on just a table element scroll position.. something like the scrollTop attribute of the TBODY child of the Table I assume, just not getting it right away here..
  • m

    mysterious-toddler-20573

    12/14/2022, 5:38 PM
    you could trigger an event with this content
  • m

    mysterious-toddler-20573

    12/14/2022, 5:39 PM
    If you target the innerHTML of the DIV, it should preserve scroll state I believe
  • w

    worried-hair-75253

    12/14/2022, 5:46 PM
    hmm. the div is part of the UI swap (it is the content of a dashboard widget wrapper) but I will look into testing swapping just the table as innerHTML and see how that goes. as always, thank you for the quick reply!
  • m

    mysterious-toddler-20573

    12/14/2022, 5:47 PM
    no prob, yeah, if you can target the inside content it should preserve the scroll state
  • m

    mysterious-toddler-20573

    12/14/2022, 7:05 PM
    no idea why it was submitted or got a bunch of votes, but here we are
  • w

    wonderful-school-81222

    12/14/2022, 7:10 PM
    Because HTMX is awesome?
  • m

    mysterious-toddler-20573

    12/14/2022, 7:10 PM
    controversial, but a possibility!
  • r

    ripe-action-67367

    12/14/2022, 7:11 PM
    There is also
  • m

    mysterious-toddler-20573

    12/14/2022, 7:12 PM
    respect for your elders
  • r

    ripe-action-67367

    12/14/2022, 7:51 PM
    htmx top 1
  • m

    mysterious-toddler-20573

    12/14/2022, 8:17 PM
    https://tenor.com/view/we-did-it-gif-6236810
  • b

    busy-tomato-43957

    12/14/2022, 9:30 PM
    congrats on top 1
  • s

    shy-napkin-38132

    12/14/2022, 9:33 PM
    burning down all my vue code brb
  • b

    busy-tomato-43957

    12/14/2022, 9:33 PM
    maybe what htmx needs next is a call for blog posts about people's experiences using htmx. from that thread it seems like there are plenty of people using it in interesting use-cases, but their experiences aren't posted anywhere
  • m

    mysterious-toddler-20573

    12/14/2022, 9:33 PM
    \> 10 positive comments \> 12 reasonable questions \> 2 negative comments
  • m

    mysterious-toddler-20573

    12/14/2022, 9:33 PM
    why am I like this?
  • b

    busy-tomato-43957

    12/14/2022, 9:35 PM
    you've got the meme game on lockdown
  • s

    shy-napkin-38132

    12/14/2022, 9:36 PM
    finishing up

    https://www.youtube.com/watch?v=LRrrxQXWdhIβ–Ύ

    … "corse grained hypermedia interaction" is one of these 'ah ha' perspectives
    m
    • 2
    • 4
  • m

    mysterious-toddler-20573

    12/14/2022, 9:38 PM
    they say play to your strengths
  • s

    shy-napkin-38132

    12/14/2022, 9:39 PM
    i dont fully have my head wrapped around "this is a hypermedia interaction" vs not, other than google maps and other high fidelity web apps, but i could see spotify web ui done in htmx, for example
  • s

    shy-napkin-38132

    12/14/2022, 9:39 PM
    youtube, sure. chat apps, maybe not
  • s

    shy-napkin-38132

    12/14/2022, 9:39 PM
    so that's next. i know where to find the essays to read πŸ˜‰
  • b

    boundless-vase-80440

    12/14/2022, 9:40 PM
    why not chat apps? πŸ™‚
  • s

    shy-napkin-38132

    12/14/2022, 9:41 PM
    1000 users updating a room simultaneously?
1...948949950...1146Latest