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

    mysterious-toddler-20573

    07/18/2022, 4:16 PM
    i take that back too: it looks like oob swaps are processed before the hx-select
  • m

    mysterious-toddler-20573

    07/18/2022, 4:16 PM
    i actually did something right, amazing
  • s

    stocky-dentist-80693

    07/18/2022, 4:16 PM
    😂
  • s

    stocky-dentist-80693

    07/18/2022, 4:16 PM
    Hahaha
  • s

    stocky-dentist-80693

    07/18/2022, 4:17 PM
    Basically, my page working as I want it to, but I noticed the docs say it shouldn't work that way.
  • s

    stocky-dentist-80693

    07/18/2022, 4:17 PM
    I just checked my version and I'm still on 1.6.1. I'll upgrade to see if anything breaks 😄
  • s

    stocky-dentist-80693

    07/18/2022, 4:19 PM
    🤷‍♂️ still works!
  • s

    stocky-dentist-80693

    07/18/2022, 4:22 PM
    (
    hx-select-oob
    also works - the caveat being that it needs to be an attribute on
    #results
    , rather than on the menu element itself)
  • s

    steep-lamp-42308

    07/18/2022, 5:38 PM
    hm, i'm confused now. are you saying that this doc is incorrect?:
    Copy code
    Note that out of band elements must be in the top level of the response, and not children of the top level elements.
    https://htmx.org/docs/#oob_swaps I could swear that I observed this behavior.
  • m

    mysterious-toddler-20573

    07/18/2022, 5:38 PM
    I think the docs are out of date
  • m

    mysterious-toddler-20573

    07/18/2022, 5:38 PM
    many such cases
  • m

    mysterious-toddler-20573

    07/18/2022, 5:38 PM
    https://htmx.org/essays/how-did-rest-come-to-mean-the-opposite-of-rest/
  • s

    steep-lamp-42308

    07/18/2022, 5:43 PM
    i should say: what i've been returning is a fragment of elements (no common parent) where each element has an oob swap
  • s

    steep-lamp-42308

    07/18/2022, 5:48 PM
    i've also been lazy and i sometimes include an oob swap attribute in an element that is part of (nested in) another response, just because i use the same code to generate that element whether it is oob or not. so if oob requests will be processed when nested, i need to do that differently.
  • a

    ancient-shoe-86801

    07/18/2022, 7:08 PM
    I remember that this was a hot topic of discussion for a while here:

    https://youtu.be/RvQM4lVuXL0?t=1481▾

  • a

    ancient-shoe-86801

    07/18/2022, 7:08 PM
    (I put the timestamp a few seconds before the hot topic 🙂 )
  • i

    icy-scooter-3369

    07/18/2022, 9:10 PM
    Hi everyone. I'm new here! I'm learning HTMX and love this project
  • i

    icy-scooter-3369

    07/18/2022, 9:15 PM
    Now I'm trying HTMX without CDN. Just Downloaded htmx.min.js and used tag, like documentation says, but can get it to work. With CDN, works fine. Don't know yet whatil is wrong
  • m

    mysterious-toddler-20573

    07/18/2022, 9:19 PM
    https://htmx.org/essays/how-did-rest-come-to-mean-the-opposite-of-rest/
  • m

    mysterious-toddler-20573

    07/18/2022, 9:19 PM
    #4 on 🟧
  • m

    mysterious-toddler-20573

    07/18/2022, 9:20 PM
    guessing it isn't loading properly via your server side framework, which one are you using?
  • a

    ancient-shoe-86801

    07/18/2022, 9:20 PM
    are you seeing the js file being properly fetched by the browser? Are you familiar with the Network tab on the browser Developer tools?
  • i

    icy-scooter-3369

    07/18/2022, 9:23 PM
    I'm using Django. The server return 200 when GET the js file
  • m

    mysterious-toddler-20573

    07/18/2022, 9:23 PM
    I bet you can get some help in the #864934037381971988 channel
  • i

    icy-scooter-3369

    07/18/2022, 9:23 PM
    Sure, thanks 👍😁
  • w

    witty-garage-37227

    07/18/2022, 10:31 PM
    QQ: Does htmx have something akin to
    Alpine.start()
  • m

    mysterious-toddler-20573

    07/18/2022, 11:07 PM
    can you link to some docs on it?
  • m

    most-flag-2080

    07/18/2022, 11:14 PM
    https://github.com/hotwired/turbo/releases/tag/v7.2.0-beta.1
  • m

    most-flag-2080

    07/18/2022, 11:15 PM
    looks like ur transition guide to htmx is out of date
  • m

    most-flag-2080

    07/18/2022, 11:15 PM
    huge release
1...750751752...1146Latest