>
>             INPUT(_type="text", _class="form-control", _name="tip",
>                   _onchange="this.form.submit();", 
> _oninput="this.onchange();"),
>

The problem is that above, this.form is the native DOM form element (not a 
jQuery object), so the this.form.submit() is calling the form's native 
"submit" method, not the jQuery "submit" method. The browser's native 
"submit" method bypasses the jQuery "submit" handlers, so the "submit" 
handler set in trap_form in web2py.js never gets called. Instead, try 
changing this.form.submit() to jQuery(this.form).submit(). That will wrap 
the form in a jQuery object and call the jQuery "submit" method, which will 
trigger the trap_form handler, which will submit the form via Ajax.

Anthony

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