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

    mysterious-toddler-20573

    12/25/2022, 4:42 PM
    https://twitter.com/htmx_org/status/1607057623496658944
  • t

    tall-dinner-62086

    12/25/2022, 7:27 PM
    Did you tag the wrong hyperview on that?
  • m

    mysterious-toddler-20573

    12/25/2022, 7:36 PM
    Probably! Posting in between family activities!
  • m

    mammoth-family-48524

    12/25/2022, 10:24 PM
    @mysterious-toddler-20573 Merry Christmas! šŸŽ„ I’ll check the book out. Is there any particular feedback you were after?
  • m

    mysterious-toddler-20573

    12/25/2022, 11:43 PM
    General editing prof reading making sure I’m not talking out of my rear etc. šŸ˜€
  • a

    adventurous-ocean-93733

    12/26/2022, 7:36 AM
    The book looks great, a really solid start to it – I’ll dig in. What’s the best way to give proof reading feedback (eg typos)? Is there a git repo?
  • m

    mysterious-toddler-20573

    12/26/2022, 11:41 AM
    we are figuring this out as we speak
  • m

    mysterious-toddler-20573

    12/26/2022, 11:41 AM
    šŸ™‚
  • b

    boundless-vase-80440

    12/26/2022, 2:37 PM
    grug eager to correct grug
  • m

    mysterious-toddler-20573

    12/26/2022, 4:49 PM
    soon
  • m

    mysterious-toddler-20573

    12/26/2022, 7:06 PM
    https://github.com/bigskysoftware/hypermedia-systems
  • m

    mysterious-toddler-20573

    12/26/2022, 7:06 PM
    repo is now public
  • m

    mysterious-toddler-20573

    12/26/2022, 7:09 PM
    @adventurous-ocean-93733 @mammoth-family-48524 @boundless-vase-80440 šŸ‘†
  • a

    adventurous-ocean-93733

    12/26/2022, 8:16 PM
    That's an inconvenient shortened description I see on Discord: "GitHub - bigskysoftware/hypermedia-systems: A book on building Hype..." Would be a better description for a book about JS framework.
  • b

    boundless-vase-80440

    12/26/2022, 8:46 PM
    PR submitted for CH00
  • g

    gorgeous-airport-54386

    12/26/2022, 9:23 PM
    > I wonder now well htmx marries with this low level web stack called Reticulum. The dev of that has insisted on static pages being optimal for security because dynamic SPAs open up certain vulnerabilities or something > https://reticulum.network/ > [...] > I remember there being a lot of talk in Reticulum’s matrix about how a hypermedia protocol on top of Reticulum could and should work, because it doesn’t really have one at the moment > There’s an opportunity there > [...] > Fair warning that Mark, Reticulum’s dev, is very opinionated along security lines
  • m

    mysterious-toddler-20573

    12/26/2022, 9:23 PM
    merged!
  • g

    gorgeous-airport-54386

    12/26/2022, 9:28 PM
    > #reticulum:matrix.org if they want to jump in
  • c

    cool-match-83608

    12/27/2022, 6:28 AM
    Hello Everyone
  • c

    cool-match-83608

    12/27/2022, 6:35 AM
    Anybody ever tried form validation in Thymeleaf in a modal ? Thanks for any potential input.
  • c

    cool-match-83608

    12/27/2022, 9:24 AM
    Found a Solution, thanks though everybody !
  • a

    adamant-queen-9985

    12/27/2022, 1:54 PM
    Hi!, I am trying to understand how post requests are sent when the element is a list item. So I want to have a list of items with a clickable event which expands the list element with a sublist on click. For the sake of simplicity, I am testing a simple post request like the one below
    Copy code
    html
    <li data-hx-post="post-endpoint" data-hx-trigger="click" name="elem">somepath</li>
    from the [docs](https://htmx.org/docs/#parameters) I'd say that url-enconde parameters will be sent as "elem=somepath". The backend is prepare for this and if I lunch a simple curl
    Copy code
    bash
    curl 'http://localhost:3000/post-endpoint' -X 'POST' --data-urlencode "elem=somepath"
    It works perfectly. But If I click on the list element the POST request is sent, but it is unable to parse the parameters. I am fairly new to web programming, so at this point I don't know If I am misunderstanding htmx, or my backend is broken or both at the same time... (probably the last one). Any help would be appreciate šŸ™‚
  • m

    mysterious-toddler-20573

    12/27/2022, 9:33 PM
    You will need to use hx-vals to send a value up: only inputs are sent up by default
  • s

    stocky-school-57923

    12/28/2022, 7:51 PM
    Hi everyone. I have a filtering form in a sidebar that filters products in the main view. The filters include several multiple select inputs for product type, size etc. Currently, the post request is triggered by a filter button. Is there anyway I can listen for changes in the form so that i can fire POST request "continuously" as the form is changed?
  • a

    adventurous-ocean-93733

    12/28/2022, 7:59 PM
    Just getting started with htmx myself but I think you’re looking for the
    from:
    modifier on a trigger. Maybe someone can post a better example but from the hypermedia.systems guide: > regardless of what element has focus, we will take advantage of event bubbling and a feature that the hx-trigger attribute supports: the ability to listen to other elements for events. So, something like this: hx-trigger="click from:#yourformā€
  • s

    stocky-school-57923

    12/28/2022, 8:05 PM
    Perfect, worked like a charm!
  • a

    adventurous-ocean-93733

    12/28/2022, 8:06 PM
    Great to hear. It might not be the most efficient way to do it, so someone more expert than me might chime in with a better way but in the meantime glad we got it working!
  • s

    stocky-school-57923

    12/28/2022, 8:08 PM
    Allthough, it also fires when i click on non-clickable elements inside the form, e.g. headings etc. But i think i can live with that.
  • a

    adventurous-ocean-93733

    12/28/2022, 8:13 PM
    You may also be able to use a class selector for this trigger, so it’ll fire whenever inputs given a certain class get a click. If that’s the case then you could set the inputs with
    class=ā€œupdatefieldā€
    . Eg hx-trigger="click from:.updatefieldā€ Haven’t tested this.
  • a

    adventurous-ocean-93733

    12/28/2022, 8:20 PM
    Just checked docs and you can listen for
    change
    on the select inputs so: hx-trigger="change from:.updatefieldā€
1...960961962...1146Latest