Jquery validate textarea maxlength bug?

While this isn't a client side solution, I was able to handle the problem server side.

While this isn't a client side solution, I was able to handle the problem server side. I basically strip out the "extra" characters which are the "\r" characters. I guess these don't count towards the string length in the browser, or they get combined as one with the "\n" characters.In my case, ASP.

NET MVC with C#: HttpPost public ActionResult SetComment(int id, string comment) { // Yep, the browser can insert newlines as "\r\n" which overflows the allowed number of characters! Comment = comment. Replace("\r", ""); // More code... }.

Drop the server Validation and keep only Client-side Validation. In html new line = 3 char In database new line = 1 char So you have to keep only one at time. Or Change the db char setting.

Only client validation is an open door to all sorts of hacking. – grootjans Jan 4 at 22:20 The only kind of validation you can trust is serverside. If you should drop any validation it should be clientside validation.

– Falle1234 Nov 18 at 8:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions