Welcome Guest, Not a member yet? Register   Sign In
prototype ajax.updater response help
#1

[eluser]sszynrae[/eluser]
hey, I'm pretty new to doing ajax calls, in fact the only thing i really can do is modify Derek Allar's video tutorial. Thankfully, that has worked like a charm by just having an example function in my controller, and echoing out say, a new comment, to my ajax.updater in my javascript file.
However, I want to do apply some server side testing to this, like, say validation. I've managed to echo the validation error message out to my ajax.updater, but it remains blissfully unaware that it's not actually echoing a comment, but an error message, so repeated submits, will just pseudo insert error messages like they were comments.

Can anyone please give me a quick example on the method for making ajax.updater aware of the result from my controller function? I've searched around a bit, but haven't found anything with prototype, and the docs are a bit cryptic for me.


Messages In This Thread
prototype ajax.updater response help - by El Forum - 02-19-2009, 08:43 AM
prototype ajax.updater response help - by El Forum - 02-19-2009, 09:39 AM
prototype ajax.updater response help - by El Forum - 02-19-2009, 11:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB