I need to reload a page when a component form is submitted, the book
says that |"ajax_trap=False| indicates that forms must be submitted
normally, thus reloading the entire page". Using |"ajax_trap=False" |the
page is reloaded, but the form action is not executed (there is no new
entry in the db table). There is my code:
db.py:
...
db.define_table('mytable',Field('myfield','string'))
default.py:
...
def test_component():
form = crud.create(db.mytable)
return dict(form=form)
...
default/test_component.load:
{{=form}}
default/index.php:
{{
=LOAD('default','test_component.load',ajax_trap=False)
}}
||
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
Nacional de Salud. La persona que envia este correo asume el compromiso de usar
el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/
--
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.