Hello guys,

I have a page where users can post comments on the enteries. When ever
the user posts a comment the flow goes to usual Comments controller's
add function, if the call to add succeeds then i update the comments
area with the new posted comment using script aculo'ish effects. Now
if have written this submission as an AJAX updater. The action of add
of the controller can output two things

1. the new posted comment (if the call succeeds).
2. an error message(if the call fails)..

if the case is 1 then i need to update the comments area, which goes
well by now
But if the case is 2, then i need to show an error just above the
comments text area.

Now my problem here is that how do i know in my view that which case
is it(1 or 2). Do I set some variable as error or so? if this is the
case then how do i know in my onComplete handler of Ajax.updater that
the errror was set?

I hope i were clear.

Thanks in Advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to