3 ms·
This is all handled in an extension: https://htmx.org/extensions/response-targets https://htmx.org/extensions/response-targets I don’t know what kludge you’re
by thom 3y ago
This is all handled in an extension:
https://htmx.org/extensions/response-targets https://htmx.org/extensions/response-targets
I don’t know what kludge you’re referring to, it requires you to add basically two attributes to your HTML, it’s really no hardship at all.
- traceroute66 3y ago> This is all handled in an extension And why should I need to load an extension to handle a 400-series ? That's just nuts. The kludge is loading the following JS snippet on your page: if(evt.detail.xhr.status >= 400 && evt.detail.xhr.status <= 499 ) { evt.detail.shouldSwap = true; }
- thom 3y agoEvery web framework has error handling features. These are HTMX’s. It’s two HTML attributes and you’re done, if you don’t want any of the additional functionality.