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

    boundless-vase-80440

    01/19/2023, 9:42 PM
    or alpine...
  • m

    mammoth-family-48524

    01/19/2023, 9:44 PM
    Where did the Alpine and Django channels go?
  • a

    adventurous-ocean-93733

    01/19/2023, 9:44 PM
    LGTM
  • t

    tall-dinner-62086

    01/19/2023, 9:52 PM
    #931549069141225613 #864934037381971988 still there
  • t

    thankful-ice-8687

    01/19/2023, 9:56 PM
    (will rpely in a sec)
  • t

    thankful-ice-8687

    01/19/2023, 10:26 PM
    awesome, i was suspecting this is what i could do with htmx. i just chickened out and went with sveltekit without testing the waters lol i think htmx + golang will be my next upgrade
  • r

    refined-waiter-90422

    01/19/2023, 10:40 PM
    It's a solid stack. Been contributing to gitea (ultra-portable github alternative in go) lately and wish they went with htmx for front-end.
  • r

    refined-waiter-90422

    01/19/2023, 10:42 PM
    May still happen because htmx is so light, it can be used as an add-on. Doesn't take over the entire project.
  • r

    refined-waiter-90422

    01/19/2023, 10:44 PM
    react-era frameworks have pigeon holed the web stack so bad with build steps and crap that it's becoming an amazing feature to be flexible like that.
  • m

    mammoth-family-48524

    01/19/2023, 10:44 PM
    That’s weird! They’ve disappeared from my channel list. The links you posted work, but they don’t stay in the channels don’t stay in the list once I leave the channel 😳
  • t

    tall-dinner-62086

    01/19/2023, 10:44 PM
    did you mute the channels?
  • m

    mammoth-family-48524

    01/19/2023, 10:46 PM
    It doesn’t look like it. I can see where to do muting but looks like it’s off.
  • m

    mammoth-family-48524

    01/19/2023, 10:46 PM
    Weird!
  • m

    mammoth-family-48524

    01/19/2023, 10:46 PM
    All the other channels seem to be in the list
  • t

    tall-dinner-62086

    01/19/2023, 10:48 PM
    If you right-click on the htmx server on your server list, is "hide muted channels" ticked?
  • m

    mammoth-family-48524

    01/19/2023, 10:54 PM
    Nope, unticked
  • m

    mammoth-family-48524

    01/19/2023, 10:55 PM
    Ooh! I worked it out. I had the channel list collapsed (sort of) so it was hiding channels I’ve already read
  • m

    mammoth-family-48524

    01/19/2023, 10:56 PM
    Thanks for helping me @tall-dinner-62086
  • t

    tall-dinner-62086

    01/19/2023, 10:57 PM
    yep that'll do it
  • a

    adventurous-ocean-93733

    01/20/2023, 10:33 AM
    When setting
    hx-target
    to a
    textarea
    , htmx is swapping the
    innerHTML
    but I need it to swap out the value. Does anyone have experience of this?
  • a

    adventurous-ocean-93733

    01/20/2023, 10:44 AM
    TIL that the
    innerHTML
    of
    textarea
    is only the initial value and any value you add to that
    textarea
    can't be updated via
    innerHTML
    . So it's making swapping content into
    textarea
    difficult.
  • r

    ripe-action-67367

    01/20/2023, 10:57 AM
    you can try swapping outerhtml of textarea
  • r

    ripe-action-67367

    01/20/2023, 10:57 AM
    although, probably, that will mess up the focus state
  • a

    adventurous-ocean-93733

    01/20/2023, 11:01 AM
    Thanks for the suggestion, what's coming back isn't a textarea – it's content for the text area. hyperscript to the rescue:
    Copy code
    _="on htmx:afterOnLoad set value of #the-textarea to innerHTML of #the-textarea"
  • b

    blue-toothbrush-6988

    01/20/2023, 11:04 AM
    Hello everybody! I am very new to htmx, can somebody please advise me on one thing?
  • b

    blue-toothbrush-6988

    01/20/2023, 11:05 AM
    On one page i have a search, works perfectly, updating the table : <input id="search" type="search" name="search" class="form-control float-right" placeholder="Search" hx-post="{% url 'stock:search' %}" hx-trigger="keyup changed delay:500ms, search" hx-target="#search-results" hx-include="[name='search']" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' >
  • b

    blue-toothbrush-6988

    01/20/2023, 11:05 AM
    But on the same page i have a table where i want to be able to click on the record and redirect to detail page of the clicked record: {{ hdata.name }}
  • b

    blue-toothbrush-6988

    01/20/2023, 11:06 AM
    But when i click its changing the #search-results and not the whole page... Please advice ❤️
  • a

    adventurous-ocean-93733

    01/20/2023, 11:10 AM
    Is there a reason you can't use a standard
    href
    for this?
    Copy code
    <td><a href="{% url 'stock:detail' %}">{{ hdata.name }}</a></td>
  • b

    blue-toothbrush-6988

    01/20/2023, 11:11 AM
    🤦‍♂️ omg
1...992993994...1146Latest