Hi Christoph,

On Mon, May 4, 2009 at 6:15 PM, Christoph Zwerschke <[email protected]> wrote:
>
> The JQuery AjaxForm Widget recipe in our TG 2.0 docs at
> http://www.turbogears.com/2.0/docs/main/ToscaWidgets/Cookbook/JQueryAjaxForm.html
> uses the validate decorator with error handler as if it was dealing with
> a normal form. The result is that the error page now appears nested
> inside the same page since it is treated as a normal Ajax response.

You are right. I even tried passing a success parameter for handling
the response instead of passing the target div to display the output.
But it still seems to behave the same way.

>
> Did validation with Ajax ever work that way or was it intended to work
> that way? Do I miss something? Is there an alternative method?

No. I think it would have to be handled by the calling javascript
code. Although I dont find any onfailure or a similar property in the
api here http://malsup.com/jquery/form/#api :(
Any idea on what would be the best way to handle errors here?

>
> I think this recipe should be fixed before TG 2.0 is released.

Ok I will remove the error_handler param from @validate.

thanks
Sanjiv

>
> -- Christoph
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to