I\'m using an ajax request to send comments to DB. Succesful response is marked by
1. OK
The problem actually is that the response from the
If you're using jQuery
you can use jQuery.trim(responseData) in your AJAX success callback, to get rid of the white spaces
see also here http://api.jquery.com/jQuery.trim/
hope it helps