> that was my attempt too at first. error checking = application logic = > write my own structures etc. > but then think about error handling as a very basic thing that is > already implementet in webserver, ajax functions etc. why not using > this infrastructure? it's straightforward, ready to use...
I certainly do not think about error handling as a very basic thing, I think it is heavily underestimated. The problem for me is that treating simple business logic as server errors might be straightforward, but imHo, it is not clean. Using JSON structures is still using the full capabilities of AJAX, I just wouldn't use webservers way of telling that it has encountered un unrecoverable error while all there is is a small check that fails. This is a non-portable, non-reusable solution (talking about the email checking funtionality, used as example), but I guess for smaller things it will do. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
