> I thought so too when I saw this, but the { success: ..., :failure: ... }
> hash to Ajax.Updater isn't the options, it's the container, and it's
> perfectly valid!
On Jun 13, 11:55 am, "Frederick Polgardy" <
f...@polgardy.com> wrote:
> TJ-
>
> I thought so too when I saw this, but the { success: ..., :failure: ... }
> hash to Ajax.Updater isn't the options, it's the container, and it's
> perfectly valid! Apparently you can pass this as the first parameter to
> Updater (it will convert a single string param to this format, making your
> element the success container by default), and it will update one element or
> the other depending on whether the call succeeded or failed:
>
> Ajax.Updater = Class.create(Ajax.Request, {
> initialize: function($super, container, url, options) {
> this.container = {
> success: (container.success || container),
> failure: (container.failure || (container.success ? null : container))
> };
> ...
> }, ...
>
> };
>
> So the Updater call doesn't appear to be the problem. I think we need to
> see what's coming back from the PHP script.
>
> -Fred
>