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

    miniature-lizard-24702

    11/09/2022, 9:52 PM
    do not allow others to perceive you as a threat, stay hidden
  • m

    miniature-lizard-24702

    11/09/2022, 9:53 PM
    and slowly siphon off the competition before they even realise you're shoulder to shoulder with them
  • m

    miniature-lizard-24702

    11/09/2022, 9:53 PM
    then strike!
  • t

    thankful-apartment-66679

    11/09/2022, 10:28 PM
    hbo's silicon valley vibes
  • g

    green-activity-6102

    11/09/2022, 10:51 PM
    one of the guidelines on the site: > Wish to pursue open source work full-time are you prepared to step away from teaching if that's what they ask you to do? ๐Ÿ˜ฌ
  • m

    mysterious-toddler-20573

    11/09/2022, 11:37 PM
    I'm not, it looks like it's 10 hours a week though.
  • g

    green-activity-6102

    11/09/2022, 11:47 PM
    ah okay cool
  • t

    thankful-addition-60522

    11/10/2022, 8:48 AM
    1cg is still n/a ๐Ÿ˜ฆ
  • b

    boundless-leather-51644

    11/10/2022, 9:27 AM
    Hi
  • f

    fresh-van-39038

    11/10/2022, 9:28 AM
    Hello, I have a general question with Hx, when you delete an element from a list which is also currently opened in the view and url. Do you stick to Hx and detect that the current element has been deleted to get again and push a new url. Or do you just stick to simplicity and redirect the full page.
  • f

    fresh-van-39038

    11/10/2022, 9:28 AM
    It comes to a more general question, how far should you go with Hx
  • b

    boundless-leather-51644

    11/10/2022, 9:29 AM
    What do you suggest to do to fill a list of
    <option>xxxx</option>
    from HTTP Get response ?
  • t

    tall-dinner-62086

    11/10/2022, 9:31 AM
    Just return a list of
    <option>
    tags. Or return the whole
    <select>
    element and
    hx-swap="innerHTML"
  • b

    boundless-leather-51644

    11/10/2022, 9:31 AM
    Thanks. That was my idea too ๐Ÿ˜‰
  • t

    tall-dinner-62086

    11/10/2022, 9:33 AM
    This sounds like a personal preference / project requirement thing. You can definitely handle it with htmx in any way you want to. You could just show a message alerting the user that the current element has been deleted and will be gone when they leave the page, or you could force the page to change and then alert the user as to why that happened.
  • b

    boundless-leather-51644

    11/10/2022, 10:04 AM
    Is it possible to perform a HTMX Get when the page is loaded to by example fill a
    <select/>
    ?
  • t

    tall-dinner-62086

    11/10/2022, 10:05 AM
    Yes,
    hx-trigger="load"
  • b

    boundless-leather-51644

    11/10/2022, 10:05 AM
    Gotcha ๐Ÿ™‚
  • t

    tall-dinner-62086

    11/10/2022, 10:05 AM
    for additional options
  • f

    fresh-van-39038

    11/10/2022, 10:57 AM
    when using
    Copy code
    hx-get="/notes"
    hx-trigger="refreshNoteList from:body"
    hx-vals='js:\{id: event.detail.value}'
    hx-vals is also added to child elements, I haven't found a way to avoid it
  • f

    fresh-van-39038

    11/10/2022, 10:57 AM
    it's a problem when the child element is also doing a hx-get but don't want those vals
  • f

    fresh-van-39038

    11/10/2022, 10:58 AM
    I've tried hx-disinherit="*"
  • f

    fresh-van-39038

    11/10/2022, 10:58 AM
    and hx-val="" it didn't work
  • f

    fresh-van-39038

    11/10/2022, 11:00 AM
    a bug maybe?
  • l

    lemon-musician-92269

    11/10/2022, 1:36 PM
    Are there any htmx+hyperscript component libraries available? no problem paying
  • g

    green-army-74971

    11/10/2022, 1:42 PM
    hey, is there a way to activate/deactivate htmx on elements programmatically/after page load? i see that there's
    hx-disable
    , but only its value when the page is loaded in seems to have any effect; toggling it after the fact doesn't seem to.
  • g

    green-army-74971

    11/10/2022, 1:48 PM
    i'm trying to prevent double clicks on certain buttons, i.e. second clicks on effect-having POST links by impatient customers while the first request is already in flight. temporarily deactivating the button seems like the best way to do it (but open to other suggestions). thx!
  • m

    most-activity-91725

    11/10/2022, 1:57 PM
    I think in your particular case, this is what you want:
    hx-trigger="submit queue:none"
  • m

    most-activity-91725

    11/10/2022, 1:58 PM
    (Or whatever your existing event isโ€”`click`, etcโ€”plus the
    queue:none
    modifier)
  • m

    most-activity-91725

    11/10/2022, 1:59 PM
    https://htmx.org/attributes/hx-trigger/
1...898899900...1146Latest