Assuming you don't want the whole page to reload on form submission, you 
should do an Ajax post. In that case, you might consider loading the form 
as an Ajax component. Otherwise, you'll have to explicitly set the action 
of the form to the URL where you want it to post. By default, the action is 
simply set to "#", which means it will post to the URL of the current page 
-- if you want it to post elsewhere, you have to specify the URL where it 
should post.

Anthony

On Friday, May 17, 2013 2:21:38 PM UTC-4, Annet wrote:
>
> Hi Derek,
>
> Thanks for you reply. 
>
> The key is, you want to submit via ajax, and make sure you do a 'return 
>> false'. If there is an error in your javascript, you may see the post 
>> getting sent to the current url or the action setting of the form.
>>
>
> At the moment I have a SQLFORM.factory() form which I return to the view 
> in a dict. So there's no JavaScript involved yet, is there? What do I have 
> to do to submit that form via ajax? Could you provide me with an example?
>
>
> Regards,
>
> Annet
>

-- 

--- 
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.


Reply via email to