Il 21/09/15 15:03, Manuele Pesenti ha scritto:
> def _index():
> form = FORM(
> DIV(
> INPUT(_type="text", _class="form-control", _name="tip",
> _onchange="this.form.submit();",
> _oninput="this.onchange();" # COMMENT OUT THIS LINE
> ),
> SPAN(
> TAG.button(
> "Run",
> _type="submit",
> _class="btn btn-default"),
> _class="input-group-btn"),
> _class="input-gourp"),
> _class = "form-inline",
> )
> if form.accepts(request,session):
> session.flash = "Success!"
> return dict(form=form, vars=BEAUTIFY(form.vars))
def index():
form = LOAD(request.controller, "_index.load", ajax=True)
return dict(form=form)
ups... I'd forgotten the code of the main controller function.
M.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.