The easiest method is to put the form in an ajax component:
{{=LOAD('mycontroller', 'myform.load', ajax=True)}}
What do you mean by "renew the data in frontend"? Are you showing a grid on
the same page as the form? If so, you can load the grid in a separate Ajax
component, and add some Javascript that reloads the grid component whenever
the form is submitted.
Anthony
On Thursday, July 4, 2013 7:55:45 AM UTC-4, Dmitri Husti wrote:
>
> Hi,
> I cant figure out how to use FORMS with ajax.
> Howto refresh the FORM in frontend if you dont pass the validation.
> And howto renew the data in frontend if the validation was passed and a
> new row is in
> the database.
> The whole thing with ajax. A small example would be nice.
>
> Best regards
> Dmitri Husti
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.