https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • already got dang'd but it was a magical moment
    m

    mysterious-toddler-20573

    04/11/2023, 9:03 PM
    already got dang'd but it was a magical moment
  • Double dipping
    c

    cuddly-keyboard-70746

    04/11/2023, 10:38 PM
    Double dipping
  • I do find it funny that one of the comments on #8 above was like: "this is an old man yells at cloud" and "people like complex JS frameworks" and talk about Stockholm Syndrome. I don't need "constant innovation", either! I program in powerful-enough but typed languages for a reason, don't take my safety away!
    p

    powerful-football-56791

    04/12/2023, 1:48 AM
    I do find it funny that one of the comments on #8 above was like: "this is an old man yells at cloud" and "people like complex JS frameworks" and talk about Stockholm Syndrome. I don't need "constant innovation", either! I program in powerful-enough but typed languages for a reason, don't take my safety away!
  • 🙂
    m

    mysterious-toddler-20573

    04/12/2023, 3:19 AM
    🙂
  • m

    mysterious-toddler-20573

    04/12/2023, 3:19 AM

    https://cdn.discordapp.com/attachments/725789747212976259/1095548690711707708/image.pngâ–¾

  • Found something weird. I have a few htmx/hyper script/bootstrap modal links setup pretty much identical to the bootstrap example. These work fine, the modal code is inserted into the innerHtml as you would expect. Then I have a page that has a modal link coded the same except for the hx-get ( defined during a for loop in template) but this one replaces the div, so outerHtml. Explicitly setting hx-swap to innerHtml fixes it, but it shouldn't behave this way. Using latest htmx and hyperscript.
    b

    brave-dog-98297

    04/12/2023, 4:18 AM
    Found something weird. I have a few htmx/hyper script/bootstrap modal links setup pretty much identical to the bootstrap example. These work fine, the modal code is inserted into the innerHtml as you would expect. Then I have a page that has a modal link coded the same except for the hx-get ( defined during a for loop in template) but this one replaces the div, so outerHtml. Explicitly setting hx-swap to innerHtml fixes it, but it shouldn't behave this way. Using latest htmx and hyperscript.
  • heya.. is there any ways to push url when you perform a `htmx.ajax`?
    b

    blue-cartoon-81346

    04/12/2023, 5:29 AM
    heya.. is there any ways to push url when you perform a
    htmx.ajax
    ?
  • could I do it by referencing headers, coz I tried but nothing works ```js htmx.ajax('GET', '/some-endpoint', { headers: { 'HX-Push-Url': '/my-new-url' } }); ```
    b

    blue-cartoon-81346

    04/12/2023, 5:39 AM
    could I do it by referencing headers, coz I tried but nothing works
    Copy code
    js
    htmx.ajax('GET', '/some-endpoint', {
         headers: {
              'HX-Push-Url': '/my-new-url'
         }
    });
  • They needed to be competitive
    m

    miniature-lizard-24702

    04/12/2023, 8:59 AM
    They needed to be competitive
  • LADS
    m

    mysterious-toddler-20573

    04/12/2023, 4:12 PM
    LADS
  • https://github.blog/2023-04-12-github-accelerator-our-first-cohort-and-whats-next/
    m

    mysterious-toddler-20573

    04/12/2023, 4:12 PM
    https://github.blog/2023-04-12-github-accelerator-our-first-cohort-and-whats-next/
  • m

    mysterious-toddler-20573

    04/12/2023, 4:22 PM

    https://cdn.discordapp.com/attachments/725789747212976259/1095745887470358599/image.pngâ–¾

  • Oh wow
    o

    orange-umbrella-16693

    04/12/2023, 4:24 PM
    Oh wow
  • htmx next to tRPC 😳
    o

    orange-umbrella-16693

    04/12/2023, 4:24 PM
    htmx next to tRPC 😳
  • Words from the creator of JSON: > Adam: What do you think is the XML of today? > > Douglas: I don’t know. It’s probably the JavaScript frameworks.
    a

    ancient-shoe-86801

    04/12/2023, 4:27 PM
    Words from the creator of JSON: > Adam: What do you think is the XML of today? > > Douglas: I don’t know. It’s probably the JavaScript frameworks.
  • scroll to the bottom of the transcript at https://corecursive.com/json-vs-xml-douglas-crockford/
    a

    ancient-shoe-86801

    04/12/2023, 4:28 PM
    scroll to the bottom of the transcript at https://corecursive.com/json-vs-xml-douglas-crockford/
  • Two frameworks, both alike in dignity...
    g

    gorgeous-airport-54386

    04/12/2023, 4:50 PM
    Two frameworks, both alike in dignity...

    https://cdn.discordapp.com/attachments/725789747212976259/1095752779974328400/image.pngâ–¾

    https://cdn.discordapp.com/attachments/725789747212976259/1095752780234379405/image.pngâ–¾

  • > we thought that was okay, because Java was open and so we could fix it, but then they reneged on the open thing and then we were trapped. man speaks truth
    r

    refined-waiter-90422

    04/12/2023, 5:47 PM
    > we thought that was okay, because Java was open and so we could fix it, but then they reneged on the open thing and then we were trapped. man speaks truth
  • 2.0 in 10 weeks would be ambitious
    m

    mysterious-toddler-20573

    04/12/2023, 6:03 PM
    2.0 in 10 weeks would be ambitious
  • but we are going to at least get started on it
    m

    mysterious-toddler-20573

    04/12/2023, 6:03 PM
    but we are going to at least get started on it
  • Congratulations on the GitHub news, Carson! It’s so great to see people recognizing the amazing work you’ve created — and the awesome community you’ve built around it.
    g

    gorgeous-ghost-95789

    04/12/2023, 8:38 PM
    Congratulations on the GitHub news, Carson! It’s so great to see people recognizing the amazing work you’ve created — and the awesome community you’ve built around it.
  • \> you've \> we've 🥲
    m

    mysterious-toddler-20573

    04/12/2023, 8:40 PM
    \> you've \> we've 🥲
  • g

    gorgeous-airport-54386

    04/12/2023, 8:40 PM

    https://cdn.discordapp.com/attachments/725789747212976259/1095810708207317092/image.pngâ–¾

  • :)
    g

    gorgeous-airport-54386

    04/12/2023, 8:40 PM
    :)
  • htmx exists in a quantum state of complete, stupid, uninteresting, simple, too complicated and unheard of
    m

    mysterious-toddler-20573

    04/12/2023, 8:41 PM
    htmx exists in a quantum state of complete, stupid, uninteresting, simple, too complicated and unheard of
  • this is a compliment btw
    g

    gorgeous-airport-54386

    04/12/2023, 8:41 PM
    this is a compliment btw
  • lol
    m

    mysterious-toddler-20573

    04/12/2023, 8:42 PM
    lol
  • g

    gorgeous-airport-54386

    04/12/2023, 8:42 PM

    https://cdn.discordapp.com/attachments/725789747212976259/1095811170558033920/image.pngâ–¾

  • i think we've got a few things for 2.0, but it won't be a massive change
    m

    mysterious-toddler-20573

    04/12/2023, 8:42 PM
    i think we've got a few things for 2.0, but it won't be a massive change
  • Quick question for the experienced folks. I am trying to use hx-indicator. I have it set to hx-indicator="#htmx-indicator' and then I have a div with an svg embedded with the id "htmx-indicator". I've added custom css to center the image on the page. The problem is that even when it is not visible, it blocks being able to click on a button at the center of the page. How can I remove it from the DOM or place it behind everything else until the htmx request is in flight? thank you!
    o

    orange-ram-33041

    04/12/2023, 9:08 PM
    Quick question for the experienced folks. I am trying to use hx-indicator. I have it set to hx-indicator="#htmx-indicator' and then I have a div with an svg embedded with the id "htmx-indicator". I've added custom css to center the image on the page. The problem is that even when it is not visible, it blocks being able to click on a button at the center of the page. How can I remove it from the DOM or place it behind everything else until the htmx request is in flight? thank you!
1...109110921093...1146Latest