there's no callback available on web2py.js for it. either code your own widget or override event_handlers() in your own js appropriately.
On Thursday, February 11, 2016 at 6:55:16 PM UTC+1, lucas wrote: > > hey everyone, > > so under the sqlform.custom.begin....sqlform.custom.end with the view, and > more specifically, under the sqlform.custom.widget of db type 'integer' > where the widget is of class="integer" there is javascript/jQuery code > attached to those inputs that only allow digits and the negative sign. > that is how i like it to work. > > on top of that, i would like to add an onkeyup="jfunction()" that if a c > key is pressed, it can call out to a javascript/jQuery function i place > under the head block, grabs and passes that id of that widget, pulls up a > side div in the left_sidebar, and then still runs the javascript/jQuery > code that would normally run as if i didn't interrupt it in the first place > without the onkeyup event. > > how can i do that properly? essentially, i want the side div that pops up > to be a calculator type that can place its final value back in the original > integer input that the c was typed in. make sense? thank you in advance, > lucas > -- 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.