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

    white-art-78549

    10/21/2022, 5:47 AM
    it would be interesting to see the comparison of network calls between an htmx website and a react website
  • r

    ripe-action-67367

    10/21/2022, 6:40 AM
    As a warning, that would heavily depend on the application and how it was implemented. FWIW, react app could be offline only and never even send anything to the server, whereas htmx is guaranteed to make at least one request for any substantial page update.
  • r

    ripe-action-67367

    10/21/2022, 6:45 AM
    On the other hand, if you take some complex react app that does not use SSR, you will most likely see dozens of requests made on the first load, whereas with htmx you (most likely) just render everything on the server
  • h

    hundreds-dusk-97323

    10/21/2022, 8:05 AM
    Hi all can someone give tips hx-get not working element if that element append javascripts that possible solve ?
  • r

    ripe-action-67367

    10/21/2022, 11:27 AM
    htmx.processNode(node)
  • b

    boundless-leather-51644

    10/21/2022, 4:11 PM
    Hi
  • b

    boundless-leather-51644

    10/21/2022, 4:17 PM
    I struggle to fix a form submit issue. Do you know why I got here a HTTP error 415 from htmx ?
  • m

    mysterious-toddler-20573

    10/21/2022, 4:24 PM
    that looks to be a server-side issue
  • m

    mysterious-toddler-20573

    10/21/2022, 4:24 PM
    do your server logs show anything?
  • b

    boundless-leather-51644

    10/21/2022, 4:25 PM
    No log error reported by quarkus java app
  • b

    boundless-vase-80440

    10/21/2022, 4:39 PM
    Just a guess but check if The server supports the content type defined in the request. In this case it probably is application/x-www-form-urlencoded
  • b

    boundless-vase-80440

    10/21/2022, 4:42 PM
    as an example this is what I have to do in Express to support form data content type:
    app.use(bodyParser.urlencoded({ extended: true }));
  • b

    boundless-vase-80440

    10/21/2022, 4:45 PM
    in Quarkus, you are probably missing a dependency for a provider...
  • b

    boundless-vase-80440

    10/21/2022, 4:48 PM
    maybe this will help you: https://quarkus.io/guides/resteasy-reactive
  • m

    mysterious-toddler-20573

    10/21/2022, 5:32 PM
    https://twitter.com/htmx_org/status/1583508879618428928
  • m

    mysterious-toddler-20573

    10/21/2022, 5:33 PM
    lil' bit of an orange site boost there guys
  • s

    sparse-psychiatrist-6723

    10/21/2022, 5:33 PM
    I probably am doing something dumb, but I am having trouble with the class-tools extension. When I do multiple operations in a run (separated by comma), it seems like only my last operation works. "add myclass:1s, remove myclass:2s appears to only run the remove. If I only put the add myclass:1s by itself it will work. Any ideas? Or maybe I should try to use hyperscript for something like this?
  • s

    sparse-psychiatrist-6723

    10/21/2022, 5:36 PM
    Oh, disregard, I should have searched the github issues before posting. Found issue #917 is a bug
  • b

    big-engine-22348

    10/21/2022, 5:48 PM
    very happy for you, you deserve it ❤️
  • s

    sparse-psychiatrist-6723

    10/21/2022, 6:12 PM
    was easy to do with hyperscript. Oh no, I am starting to get hooked by hyperscript now! 🙂 Really reminds me of AppleScript I did in the past. Really like it. Thanks for the great libraries!
  • b

    boundless-leather-51644

    10/21/2022, 6:16 PM
    Thanks. I fixed the issue after I removed the JSON content type of the @Produces/@Consumes
  • s

    sparse-psychiatrist-6723

    10/21/2022, 6:17 PM
    happily!
  • b

    boundless-leather-51644

    10/21/2022, 6:17 PM
    How can the new record created be added to the the table instead of having the json string of all the records displayed within the tags - see https://github.com/halkyonio/primaza-poc/blob/36e4cdc1dc18c47f7373ce4eb9d1c9549eb02384/servicebox-app/src/main/resources/templates/ClaimCustomResource/list.html#L5-L26 ?
  • m

    mysterious-toddler-20573

    10/21/2022, 6:23 PM
    maybe better to ask in #940241072959922176 ? This seems backend-specific...
  • b

    boundless-leather-51644

    10/21/2022, 6:40 PM
    Thanks. Will do
  • p

    proud-minister-85295

    10/21/2022, 6:46 PM
    I've used React (way back) then moved to Vue, then after the Composition API addition I moved to Alpinejs (love it)... now looking at HTMX, I understand the basic concepts/idea but have some questions
  • p

    proud-minister-85295

    10/21/2022, 6:51 PM
    Lets say I'm building a classic CRUD app, should all views, partials etc be delivered via XHR, i.e. when you delete 1 row from the data-table, do you then re-request and render the whole data-table again from the server, or when you want to edit a record, do you request the whole form from the server and when validating request it again?
  • p

    proud-minister-85295

    10/21/2022, 6:52 PM
    I just need to get my head around the best practice paradigm and workflow, if anyone can please explain
  • b

    brainy-ice-92385

    10/21/2022, 7:06 PM
    We're all working to get our heads around it. You can support any of those ideas in htmx, so which one sounds right to you?
  • p

    proud-minister-85295

    10/21/2022, 7:07 PM
    From SPA/Hybrid experience, you only mutate/change what actually needs to change, so in the example of the data-table, you can add/remove and don't have to reload/re-render the whole data-table, you can mutate element 1 or 1001 and only it will be effected without a server call (unless you updating in real time) but then you only send the minimal data. You can consume the same REST data API used by all your other applications regardless the client type i.e. browser, mobile app, electron etc. because the API is not concerned with the view/presentation, and I think this is where I have trouble understanding HTMX fully, do you need an API which purely respond with HTML (and embedded htmx), but what about other situations where you need Json or something else back?
1...865866867...1146Latest