Sending Back Ajax variable

Posted by matthewb on Stack Overflow See other posts from Stack Overflow or by matthewb
Published on 2010-04-22T02:17:52Z Indexed on 2010/04/22 2:23 UTC
Read the original article Hit count: 331

Filed under:
|
|

Hello,

I am trying to use jquery to do a client side validation to do a check and return with a error or success.

I know how to echo text/html back as the response, but here's what I am trying to do.

On Error, send back a message, so the user can re-submit a form. On Success, re-load the page.

I am not sure how to get it to send a variable which I think will let me do either condition in jquery.

Any suggestions??

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX