Hi all!
Just one question regarding link_to_remote. Suppose I want to update
some element on success but another in case of failure. According to
the docs:
link_to_remote("Delete this post",
dict(url=url(action="destroy", id=post.id),
update=dict(success="posts", failure="error")))
where failure will be called when the XMLHttpRequest is completed, and
the HTTP status code is not in the 2XX range.
I don't know how to write a controller that would return for example a
'Bad request 400' status code and at the same time its http response
would include content to be displayed in "error" element.
The abort() method in mighty m object discards the buffer contents, so
it doesn't seem to be the answer.
Thank you in advance.
Regards,
Carlos
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---