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

    brash-house-85887

    08/17/2022, 7:13 PM
    👍 I thought I was going crazy. I'm sure that's still true but...
  • m

    mysterious-toddler-20573

    08/17/2022, 7:15 PM
    lol
  • m

    mysterious-toddler-20573

    08/17/2022, 7:15 PM
    will look into this tonight, pretty sure it's a bug w/ the demo code
  • b

    brash-house-85887

    08/17/2022, 7:17 PM
    Thanks. Doing a htmx demo at work next week and trying to figure out the cleanest, most direct way of doing the demo. Playing around with runkit too.
  • j

    jolly-kite-167

    08/17/2022, 7:29 PM
    i was trying to look at this and when using the demo package, the
    htmx
    object is not exposed? i couldn't use
    htmx.logAll();
    in the console.
  • m

    mysterious-toddler-20573

    08/17/2022, 7:36 PM
    it's codepen, you have to use their special console
  • j

    jolly-kite-167

    08/17/2022, 7:37 PM
    oh wonderful.
  • s

    some-hairdresser-28401

    08/17/2022, 10:37 PM
    How can I hook up the listener by id after load?
  • s

    some-hairdresser-28401

    08/17/2022, 10:39 PM
    tbh I'm a bit afraid to introduce it as a new dependency right now. Not sure if I have the capacity to deal with it at the moment.
  • m

    mysterious-toddler-20573

    08/17/2022, 10:39 PM
    Copy code
    js
     window.addEventListener('load', function(event) {
       document.getElementById("foo").addEventListener("bar",       function(){
              doAThing();
          }) 
    });
  • m

    mysterious-toddler-20573

    08/17/2022, 10:39 PM
    understandable
  • m

    mysterious-toddler-20573

    08/17/2022, 10:39 PM
    but vanillajs is the pits for hooking up event handlers
  • m

    mysterious-toddler-20573

    08/17/2022, 10:39 PM
    it'll work
  • s

    some-hairdresser-28401

    08/17/2022, 10:42 PM
    Thanks, will give it a try tomorrow
  • d

    dry-window-71739

    08/18/2022, 12:52 AM
    https://unpkg.com/browse/hyperscript.org@0.9.7/dist/ I am looking for either eventsource.js or the w9y version of hyperscript, but neither seem to be on unpkg for 0.9.6 or 0.9.7
  • c

    cold-elephant-75958

    08/18/2022, 6:38 AM
    hello all
  • c

    cold-elephant-75958

    08/18/2022, 6:39 AM
    i have a question
  • c

    cold-elephant-75958

    08/18/2022, 6:39 AM
    any idea why when i put a put with htmx features in a template html tag it won't work ?
  • c

    cold-elephant-75958

    08/18/2022, 6:39 AM
    thanks for any potential input
  • b

    blue-ghost-19146

    08/18/2022, 6:40 AM
    In what way doesn’t it work?
  • r

    ripe-action-67367

    08/18/2022, 6:46 AM
    template tags are typically hidden from the page. How do you interact with their content? If you render then with js (like alpine or vue), you have to manually process the nodes after rendering https://htmx.org/api/#process
  • c

    cold-elephant-75958

    08/18/2022, 10:06 AM
    As of line 117, there is a button
  • c

    cold-elephant-75958

    08/18/2022, 10:06 AM
    via htmx the button makes a call to my controller
  • c

    cold-elephant-75958

    08/18/2022, 10:07 AM
    I am testing the call
  • c

    cold-elephant-75958

    08/18/2022, 10:07 AM
    when I click on the button
  • c

    cold-elephant-75958

    08/18/2022, 10:07 AM
    nothing happens
  • c

    cold-elephant-75958

    08/18/2022, 10:08 AM
    but if I remove the same code from within the
  • c

    cold-elephant-75958

    08/18/2022, 10:08 AM
    it works
  • c

    cold-elephant-75958

    08/18/2022, 10:08 AM
    anyone any guess how to tackle this please ?
  • c

    cold-elephant-75958

    08/18/2022, 10:09 AM
    like here, when I put it like this, it works perfectly.
1...781782783...1146Latest