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

    mysterious-toddler-20573

    02/25/2023, 10:21 PM
    I was enraged
  • m

    mysterious-toddler-20573

    02/25/2023, 10:21 PM
    I was offered pry
  • l

    limited-potato-46306

    02/25/2023, 10:21 PM
    @mysterious-toddler-20573 no pressure on saying yes to it - unlike typescript you can still develop without the container 😅 just is an option
  • l

    limited-potato-46306

    02/25/2023, 10:22 PM
    (Sorry for mentioning ts)
  • m

    mysterious-toddler-20573

    02/25/2023, 10:22 PM
    this was all a lot easier when everyone hated hypermedia
  • m

    mysterious-toddler-20573

    02/25/2023, 10:22 PM
    OKOK
  • e

    enough-petabyte-50314

    02/25/2023, 10:22 PM
    seems like its mostly
    www
    that has the unwieldy dependencies so this may be a moot point
  • m

    mysterious-toddler-20573

    02/25/2023, 10:22 PM
    it's sunny and 40 degrees here in MT, I'm going for a walk
  • m

    mysterious-toddler-20573

    02/25/2023, 10:23 PM
    www
    has all the dependencies except the six testing libraries I need to do browser tests
  • m

    mysterious-toddler-20573

    02/25/2023, 10:23 PM
    eleventy
  • m

    mysterious-toddler-20573

    02/25/2023, 10:23 PM
    is what causes the dependency blowout
  • e

    enough-petabyte-50314

    02/25/2023, 10:25 PM
    Eleventy's Docs button is still huge 👏
  • m

    mysterious-toddler-20573

    02/25/2023, 10:25 PM
    me, engaging with the web world outside my comfort zone (which is 1999 HTML), ever:

    https://www.youtube.com/watch?v=F_d4VDDfjpA▾

  • e

    enough-petabyte-50314

    02/25/2023, 10:26 PM
    they did that like 3 years ago or something 😆 funny that it has remained
  • e

    enough-petabyte-50314

    02/25/2023, 10:40 PM
    wait... 🤦‍♂️ my new test was failing because of a typo. It seems
    revealed
    is handling the delay correctly... time to recreate the use case I had the other day that was breaking
  • l

    little-kilobyte-16316

    02/25/2023, 10:46 PM
    What
  • m

    mysterious-toddler-20573

    02/26/2023, 12:04 AM
    A few people now have suggested a development channel to avoid spamming general, so I have created #1079191774976802867 where we can fight about things like build tools, the virtues and deficiencies of object oriented programming, and why JSDoc is better than typescript
  • m

    mysterious-toddler-20573

    02/26/2023, 12:09 AM
    let me restart: can you post the relevant HTML for this? What does the form look like?
  • l

    little-kilobyte-16316

    02/26/2023, 1:06 AM
    https://codeshare.io/qPmxoR
  • m

    mysterious-toddler-20573

    02/26/2023, 1:13 AM
    ok, what does
    processQueue()
    mean?
  • l

    little-kilobyte-16316

    02/26/2023, 1:13 AM
    When prevent default/propagation is commented out, the Dropzone file upload happens, and then the HTMX request. If default/propagation is turned on, the Dropzone upload happens, but the HTMX request doesn't fire. I've tried sending HTMX headers via Dropzone, but that didn't do anything. I don't even know if it's possible to have HTMX handle both the form data submission + file upload at the same time.
  • l

    little-kilobyte-16316

    02/26/2023, 1:14 AM
    Sorry, the
    processQueue()
    Dropzone method, starts the upload. It has to be called manually, or else the files just automatically upload.
  • m

    mysterious-toddler-20573

    02/26/2023, 1:14 AM
    OK
  • m

    mysterious-toddler-20573

    02/26/2023, 1:15 AM
    and do you want to wait for the files to upload before you submit?
  • l

    little-kilobyte-16316

    02/26/2023, 1:18 AM
    Technically they're already uploaded when they get dropped into the form. Dropzone adds them to a queue if they pass validation. But they need to be submitted with the form at the same time for my backend to process/move them/etc.
  • l

    little-kilobyte-16316

    02/26/2023, 1:19 AM
    I think, if I understand Dropzone's F-tier documentation correctly.
  • m

    mysterious-toddler-20573

    02/26/2023, 1:19 AM
    OK
  • m

    mysterious-toddler-20573

    02/26/2023, 1:19 AM
    so it looks to me like
    processQueue()
    returns a promise
  • m

    mysterious-toddler-20573

    02/26/2023, 1:20 AM
    actually
  • m

    mysterious-toddler-20573

    02/26/2023, 1:20 AM
    https://stackoverflow.com/questions/50664941/dropzone-js-awaiting-processqueue-method
1...105010511052...1146Latest