3 ms·
An event is fired and you can handle it in javascript, as with usual AJAX requests.
by carsongross 10y ago
An event is fired and you can handle it in javascript, as with usual AJAX requests.
- elmigranto 10y agoSo you have to write JS. But I guess there would be a single event handler that shows all the error messages and server would push down HTML describing errors, e.g. validation. Why not make it part of the lib then, so "no js" thing stands? :)
- unethical_ban 10y agoHm, I guess it would be interesting to have some kind of error code handling. <button ic-post-to="/query" ic-on-http-404="/errortemplate"> or similar.
- carsongross 10y agoOh, that exists: http://intercoolerjs.org/attributes/ic-post-errors-to.html http://intercoolerjs.org/attributes/ic-post-errors-to.html