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

How do you detect a success/failure without JS?


Send an actual error page rather than a 204. It's not perfect, but in cases where the server returning an error is very rare, it's fine. Since there is no state anyway, the user hitting back is fine.

Most JS apps in my experiences fail to handle server errors with any sort of user feedback at all.




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

Search: