Welcome Guest, Not a member yet? Register   Sign In
Simple question about displaying errors/messages
#6

[eluser]Higher Ground Studio[/eluser]
I ajax all forms like that but the way that I set this up is when I return success or error messages I send the message in json.

I first send a signifier, usually using numbers (1 for success, 2 for error, 3 for warning...etc.), then the message.

Depending on the scalability need with the app I send the message formatted or unformatted and use js to format (I usually send html formatted though). Then when jquery gets the json returned it then knows what type of message that it received. I guess with this you could have a system that then does inline error messages or tool tips.

If you have any further questions about this just ask me.


Messages In This Thread
Simple question about displaying errors/messages - by El Forum - 07-17-2010, 03:35 AM
Simple question about displaying errors/messages - by El Forum - 07-18-2010, 10:00 PM
Simple question about displaying errors/messages - by El Forum - 07-19-2010, 01:16 AM
Simple question about displaying errors/messages - by El Forum - 07-19-2010, 03:22 AM
Simple question about displaying errors/messages - by El Forum - 07-19-2010, 10:38 AM
Simple question about displaying errors/messages - by El Forum - 07-19-2010, 12:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB