Welcome Guest, Not a member yet? Register   Sign In
Login validation with jQuery remote
#8

[eluser]CroNiX[/eluser]
I just think it's terribly inefficient to fire off an ajax call to validate each individual field instead of all of them at once. Each request will probably consume at least 5mb of system resources because it requires all of CI to load just to process that one little thing.

Personally I don't waste time (my opinion) with javascript-based validation. I just send the entire form via ajax and print any errors that get returned, all in one go. Then if any of my validation rules change, I don't have to remember to update them in 2 places.

It's a personal preference based on experience, but I run and maintain several fairly large sites that have a lot of traffic (I consider 10k and growing unique daily visitors "fairly large") where every request counts. Maybe this isn't a concern or applicable to your project.


Messages In This Thread
Login validation with jQuery remote - by El Forum - 06-03-2012, 12:52 PM
Login validation with jQuery remote - by El Forum - 06-03-2012, 06:10 PM
Login validation with jQuery remote - by El Forum - 06-03-2012, 11:51 PM
Login validation with jQuery remote - by El Forum - 06-05-2012, 09:50 AM
Login validation with jQuery remote - by El Forum - 06-05-2012, 10:23 AM
Login validation with jQuery remote - by El Forum - 06-07-2012, 07:35 AM
Login validation with jQuery remote - by El Forum - 06-07-2012, 08:51 AM
Login validation with jQuery remote - by El Forum - 06-07-2012, 09:39 AM
Login validation with jQuery remote - by El Forum - 06-07-2012, 10:02 AM
Login validation with jQuery remote - by El Forum - 06-07-2012, 10:14 AM
Login validation with jQuery remote - by El Forum - 06-08-2012, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB