Welcome Guest, Not a member yet? Register   Sign In
JQuey & Form Validation
#1

[eluser]jstine[/eluser]
Hi all,

So, I'm having a problem retrieving CI error messages to my form that I'm posting via JQuery Ajax.

Basically, I use a JQuery Ajax post to post the data to my function. I then run the validation and if it returns false I try to echo the errors with

Code:
echo validation_errors();

In my ajax function I have the success set to take the response and present it to the user via a alert box, but even when there are errors the alert box just pops up with no error information. If I change my "echo validation_errors();" to "echo "hello";" the alert displays the "hello" as expected when there are errors.

Does anyone have any ideas why echo validation_errors(); doesn't work here and what I can do to fix it? I've been pulling my hair out!

Thanks in advance.


Messages In This Thread
JQuey & Form Validation - by El Forum - 02-15-2011, 05:49 PM
JQuey & Form Validation - by El Forum - 02-15-2011, 07:32 PM
JQuey & Form Validation - by El Forum - 02-16-2011, 11:49 AM
JQuey & Form Validation - by El Forum - 02-16-2011, 03:08 PM
JQuey & Form Validation - by El Forum - 02-18-2011, 09:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB