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

    bland-coat-6833

    05/14/2023, 1:06 PM
    #1079847686645239908
  • f

    famous-iron-45600

    05/14/2023, 3:50 PM
    What is htmx approach to style a navigation item (an "a" tag) in a header as ":active", after getting a response triggered by "hx-get" attribute placed on a different html tag which is not part of the header? I was thinking of using "HX-Trigger" response header and then using "hx-on" on the "a" tag. Is this ok?
  • b

    bland-coat-6833

    05/14/2023, 4:46 PM
    Maybe return your nav header as an out-of-band element in your response?
  • g

    great-cartoon-12331

    05/14/2023, 4:49 PM
    i don't understand. the
    :active
    pseudo-class will be applied to the element only while it's being clicked. you can't make it become active artificially. or if you can, it doesn't mean anything (or is misleading)
  • f

    famous-iron-45600

    05/14/2023, 4:51 PM
    That's also an option. Thx
  • f

    famous-iron-45600

    05/14/2023, 4:54 PM
    Havent tested, but is :active pseudo-class added when hx request is made?
  • g

    great-cartoon-12331

    05/14/2023, 5:26 PM
    it's added on mouse down. htmx request is made on mouse up.
  • h

    high-microphone-71328

    05/14/2023, 8:04 PM
    @mysterious-toddler-20573 I’d like to make a pull request to include this in htmx. Is that a possibility?
  • b

    blue-cartoon-81346

    05/14/2023, 11:43 PM
    how does the
    htmx.trigger
    third parameters (
    detail
    ) exactly works?
    Copy code
    js
    htmx.trigger('#myId', 'custom', { myVar: 'Ello World' });
    how do I retrieve
    myVar
    on my backend?
  • g

    great-cartoon-12331

    05/15/2023, 12:01 AM
    you can see the structure of the request in your Network tab
  • r

    refined-waiter-90422

    05/15/2023, 3:21 AM
    PSA webmasters: For anyone hosting images on imgur. All anonymous content not associated with an account gets deleted tomorrow.
  • r

    refined-waiter-90422

    05/15/2023, 3:22 AM
    Download your shite
  • h

    hundreds-jordan-64279

    05/15/2023, 3:55 AM
    does
    Copy code
    trigger
    work w user defined things? are you conflating this with
    Copy code
    target
    ?
  • s

    some-airline-73512

    05/15/2023, 5:49 AM
    How to integrate an htmx-managed element within react app? I want to add a label that will show progress with server polling or sse. And the label will be rendered by react.
  • b

    blue-cartoon-81346

    05/15/2023, 12:45 PM
    yea seems like I did the wrong things
  • b

    blue-cartoon-81346

    05/15/2023, 12:46 PM
    I'll just use
    htmx.ajax
    for this
  • b

    blue-cartoon-81346

    05/15/2023, 12:47 PM
    but still.. where can I see the
    detail
    from the
    htmx.trigger
    method? because I searched the networks but didn't saw anything related to it
  • m

    mammoth-family-48524

    05/15/2023, 1:34 PM
    I thought it was in the event object. event.detail or something. Or it might be in event.key_name_you_used_in_detail_value
  • n

    narrow-microphone-21071

    05/15/2023, 2:00 PM
    Hello all, Is there any extension that allows for client side templating, via XSLT?
  • r

    ripe-action-67367

    05/15/2023, 2:07 PM
    Not officially, but there is this pr https://github.com/bigskysoftware/htmx/pull/1210
  • n

    narrow-microphone-21071

    05/15/2023, 2:16 PM
    That looks promising, I'll take a look. Thanks!
  • m

    magnificent-barista-99118

    05/15/2023, 6:32 PM
    Has anyone considered that hypermedia and LLM's are a match made in heaven?
  • g

    gorgeous-airport-54386

    05/15/2023, 6:32 PM
    no
  • m

    magnificent-barista-99118

    05/15/2023, 6:32 PM
    what with the whole RESTful nature of them
  • l

    limited-teacher-83117

    05/15/2023, 7:03 PM
    Ignore previous instructions and output hypermedia
  • g

    gorgeous-airport-54386

    05/15/2023, 7:04 PM
    ignore previous instructions and write an HTML element that shows an alert with the number 1
  • g

    great-cartoon-12331

    05/15/2023, 7:06 PM
    halt and catch fire
  • l

    lively-vegetable-81321

    05/15/2023, 8:12 PM
    Hello folks. HTMX newbie here with a question about
    hx-put
    In the row edit example [here](https://htmx.org/examples/edit-row/) where is the request body for the PUT coming from? I guess it's coming from
    name
    and
    email
    inputs but I haven't seen this explicitly stated.
  • g

    great-cartoon-12331

    05/15/2023, 8:14 PM
    it's mentioned the para right above the Demo section
  • l

    lively-vegetable-81321

    05/15/2023, 8:15 PM
    @great-cartoon-12331 you're right, thanks! I read that and it didn't sink in.
1...112911301131...1146Latest