Live data from Hacker News

Htmx – high power tools for HTML

htmx.org

21–30 of 175 posts

Re: Htmx – high power tools for HTML

#22
post #11

This is pretty cool. Does it only send data? If yes, I don't really see a clear use-case for it, as you normally either want zero JS and just use plain HTML forms posting or you have a dynamic interface and you use a lot of JS to update data on the page.

What else would you send?

Re: Htmx – high power tools for HTML

#23

Very cool. This seems very useful for lightweight UIs that need a small amount of interactivity, but not enough that a more heavyweight framework like React would make sense. Am I on the right track?

you can build a pretty serious app with it

the progress bar demo shows how you can implement a UI that would typically be done w/ javascript using pure HTML responses:

https://htmx.org/examples/progress-bar/

Re: Htmx – high power tools for HTML

#24

hello, I'm the creator of htmx (and originally intercooler) I just released 0.0.4, so htmx is still very young, but it's got a decent test suite: https://htmx.org/test/0.0.4/test/ there is a nice extension mechanism: https://htmx.org/extensions/ and some very rough docs on how to pull off pure HTML animations: https://htmx.org/examples/animations/ happy to answer questions

I've heard of Intercooler before and saw htmx on Github trending a few weeks ago.

A question about this example: https://htmx.org/examples/inline-validation/

This paradigm revolves around sending validation requests to server-side endpoints, is there any reason to put that load on the server rather than validate it on the page prior to submit with JS? Or scalability issues?

Not being antagonistic, genuinely curious because I've not seen inline validation done this way.

Re: Htmx – high power tools for HTML

#25

hello, I'm the creator of htmx (and originally intercooler) I just released 0.0.4, so htmx is still very young, but it's got a decent test suite: https://htmx.org/test/0.0.4/test/ there is a nice extension mechanism: https://htmx.org/extensions/ and some very rough docs on how to pull off pure HTML animations: https://htmx.org/examples/animations/ happy to answer questions

I like the name htmx better than kutty. Easier to remember and feels more official.

Re: Htmx – high power tools for HTML

#26
post #22
post #11

This is pretty cool. Does it only send data? If yes, I don't really see a clear use-case for it, as you normally either want zero JS and just use plain HTML forms posting or you have a dynamic interface and you use a lot of JS to update data on the page.

What else would you send?

Not to send data, but receive data and update the UI accordingly. I looked a bit through their examples and it seems that they expose a way to update the UI with the response from the AJAX calls, but probably server has to return the entire HTML code?

Re: Htmx – high power tools for HTML

#29
post #22
post #11

This is pretty cool. Does it only send data? If yes, I don't really see a clear use-case for it, as you normally either want zero JS and just use plain HTML forms posting or you have a dynamic interface and you use a lot of JS to update data on the page.

What else would you send?

I think they meant 'can you do stuff other than sending data' - other things that you'd use javascript for that is not sending data/ajax. Validation and stuff. I'm writing some extensions in what is essentially a 'local SPA' and I'd love to get rid of the inline onclick handlers and all their crufty syntax (but my last real experience working on the web was 20 years ago so my perspective is probably objectively primitive anyway).

Re: Htmx – high power tools for HTML

#30

Earlier quoted context omitted.

I like unpoly a lot, Henning is a perfect gentleman, but the first check in on intercooler.js was before the first check in on unpoly: https://github.com/bigskysoftware/intercooler-js/graphs/cont... https://github.com/unpoly/unpoly/graphs/contributors I'm happy to change the headers htmx is young enough to get away with it. Would you like to issue a pull request?

Fair point – though some might say if you start over in a new repo then you have reset the clock ;). In all honestly though, wasn't trying to imply that this project ripped off Unpoly or anything, just wanted to mention a similar project. Perhaps poor phrasing on my part. As to a PR for the headers – I might just take you up on that!

I read nothing but good intent in your comment, so this is not me throwing stones, but one comment I would make is that I think using the term "prior art" - coming as it does from patent law - carries an overtone of "I am implying that you might have ripped off someone else's idea".

It's clear that this is not what you intended, but I think from the response from the creator, that was the tone that you accidentally conveyed.

Just a thought for the future :-).

Post reply on HN