Hi, since my previous email hasn't got any response, I'm still trying
to find a solution to my problem.

The problem is this, I have a form loaded via ajax into a modal, so
far, so good, it gets called for creating a new form as well as
edition, with SQLFORM in the respective controller, but when I fill the
data for new record or modify existing records, data never gets to the
database.

So, fixed it partially with web2py_component in the view, the web2py
component calls the form in the modal-body, and a few lines of js
toggle the modal, in this case the info is submited, but the modal
doesn't close and I would like to know if there's some way to catch the
web2py_component after de post event.

My bad previous email wasn't specifically web2py, but since I'm trying
to find out a solution with a web2py component I would really
appreciate some help.

PS: I'm calling web2py_component like this

 <a class="btn btn-primary" href="#"
 onclick="web2py_component('{{=URL('app','forms')}}',
 target='modal-body')"> 

thanks in advance.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to