Welcome Guest, Not a member yet? Register   Sign In
jquery post & ci form validation
#4

[eluser]Nick Husher[/eluser]
I believe my example does just that. The JSON string comes in as postdata, but because it's a string it will be very difficult to run sophisticated validation operations on it. You need to design a custom validation function that will decode the JSON string and decide if it's a valid object or not. Note that within the validation callback, you can call other controller methods to make your code a little cleaner.


Messages In This Thread
jquery post & ci form validation - by El Forum - 01-21-2009, 08:00 AM
jquery post & ci form validation - by El Forum - 01-21-2009, 10:11 AM
jquery post & ci form validation - by El Forum - 01-21-2009, 12:17 PM
jquery post & ci form validation - by El Forum - 01-21-2009, 02:15 PM
jquery post & ci form validation - by El Forum - 01-22-2009, 03:06 AM
jquery post & ci form validation - by El Forum - 01-22-2009, 09:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB