Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


yes, responses are expected to be in HTML

but you can use the client-side-templates plugin if you want to run responses through a client-side template engine:

https://htmx.org/extensions/client-side-templates/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: