Having something like this
{{=LOAD('controller','action.load',vars={},args=[],ajax=True)}}
in the layout.html
and something like this
form=SQLFORM.factory(
Field(...),
Field(...),
Field(...),
formstyle='table2cols',submit_button='Vyhľadať')
if form.accepts(request.vars, session):
redirect(URL(r=request,
f='2action',vars={'typ':typ}))
in action controlller.
It almost works, but instead of redirection to '2action', it displays
2action page in the space where previously the form was. URL is not
changed.
Is this expected behaviour?
How to correctly do real redirection to 2action page?
Julius