0

I have an Ajax call, and the server sends me an HTTP 412 error when the user forgets to fill some field.

I can treat the error calling a function to show to the user the error, but I don't want the error to appear on the browser console. How to do this?

Hannele
  • 9,301
  • 6
  • 48
  • 68
Luciano Borges
  • 817
  • 3
  • 12
  • 31
  • possible duplicate of [prevent unhandled jquery ajax error](http://stackoverflow.com/questions/16481598/prevent-unhandled-jquery-ajax-error) – Paul Richter Nov 11 '13 at 17:41
  • Why don't you just **validate the form** before sending it to your php file? – Adam Azad Nov 11 '13 at 17:43
  • 2
    I will do this. I want to have the client validation and the server validation too. I'm creating a REST Service that should validate the data send to the server. – Luciano Borges Nov 11 '13 at 17:48

0 Answers0