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

    mysterious-toddler-20573

    11/22/2020, 8:32 PM
    https://htmx.org/events/#htmx:afterOnLoad
  • m

    mysterious-toddler-20573

    11/22/2020, 8:32 PM
    all this stuff in the
    detail
    property... it should be on the event directly as a property... no?
  • m

    mysterious-toddler-20573

    11/22/2020, 8:33 PM
    i have no idea where I picked this idea up now...
  • m

    mysterious-toddler-20573

    11/22/2020, 8:33 PM
    🤔
  • m

    mysterious-toddler-20573

    11/22/2020, 8:34 PM
    ah: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail
  • m

    mysterious-toddler-20573

    11/22/2020, 8:35 PM
    OKOK, so not so crazy
  • m

    mysterious-toddler-20573

    11/22/2020, 8:35 PM
    OK, I'm coming back off the ledge here
  • m

    mysterious-toddler-20573

    11/22/2020, 8:36 PM
    However, I do need to update hyperscript so you can call out properties directly on the event rather than in the details property
  • m

    mysterious-toddler-20573

    11/22/2020, 8:43 PM
    https://github.com/bigskysoftware/_hyperscript/issues/25
  • m

    mysterious-toddler-20573

    11/22/2020, 8:43 PM
    thank you all for listening
  • m

    mysterious-toddler-20573

    11/23/2020, 1:43 PM
    infinite scroll - vue.js vs htmx: https://twitter.com/htmx_org/status/1330869230368030720
  • m

    mysterious-toddler-20573

    11/23/2020, 5:47 PM
    Does anyone know of a good service that I can use to set up web endpoints for things like testing file upload?
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:09 PM
    We could write one.
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:09 PM
    I had a similar problem testing SSE data, so I made that sse placeholder site. I'd be happy to expand something like that to other use cases.
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:10 PM
    I only took it down because the free trial expired and I didn't want to give MS my credit card info. But I'll be happy to chip in a few bucks to host something small on Azure.
  • m

    mysterious-toddler-20573

    11/23/2020, 6:10 PM
    I'm looking at this: https://www.file.io/
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:11 PM
    Oh, well that's easier 🙂
  • m

    mysterious-toddler-20573

    11/23/2020, 6:11 PM
    but I wonder if its worth investing in some infrastructure here
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:11 PM
    I think some demo material might be useful.
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:12 PM
    If it helps, just let me know what the API should look like, I'm happy to make something 🙂
  • m

    mysterious-toddler-20573

    11/23/2020, 6:26 PM
    unfortunately it looks like file.io doesn't support arbitrary origins
  • m

    mysterious-toddler-20573

    11/23/2020, 6:26 PM
    :/
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:27 PM
    Well, accepting file uploads from unknown sources does sound kinda sketchy. Maybe you could still use it, just require that people enter their own API key into the demo to use it...
  • m

    mysterious-toddler-20573

    11/23/2020, 6:28 PM
    https://devnull.org
  • m

    mysterious-toddler-20573

    11/23/2020, 6:28 PM
    dev/null as a service
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:28 PM
    Love it.
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:29 PM
    Hey, while you're here.. How do-able is something like this? Is it even a good idea?
    <div hx-post="/my-server" hx-body="myFunctionThatReturnsJSONData()">
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:30 PM
    I've been looking for was to simplify
    hx-vars
    or to make it more dynamic. What do you think about calling out to a JS function to generate a request body?
  • m

    mysterious-toddler-20573

    11/23/2020, 6:30 PM
    something like:
    Copy code
    html
    <div hx-post="javascript:myFunctionThatReturnsJSONData()">
  • g

    gorgeous-ghost-95789

    11/23/2020, 6:31 PM
    Sure, but would still need to specify the URL to
    post
    to
1...737475...1146Latest