OK so I could never figure out how to use this widget on itself, I ruptured
a few brain cells in the process and just decided to learn jquery. In case
anyone is ever in my position here is my working solution
1)scrap the second lazy_options_widget and just use the default web2py
select box.
Here is an example of what I'm trying to do...
Don't forget to install the plugins
*IN CONTROLLER*
def index():
form = SQLFORM(db.product)
if form.accepts(request.vars, session):
session.flash = 'submitted %s' % form.vars
redirect(URL('index'))
return dict(form=for
I've tried everything, I'm sure its just something easy I'm missing or its
possibly just some needed javascript to trigger the ajax call. Anyone out
there wanna take a look, maybe give me a hint?
http://dev.s-cubism.com/plugin_lazy_options_widget
--
Resources:
- http://web2py.com
- http://web
The first two args for the widget seem to reference the fields class
"suggest_selected"
in the source of the plugin they are referred to as on_key and off_key.
There is also a trigger option however I cant figure out what that does...
--
Resources:
- http://web2py.com
- http://web2py.com/book
4 matches
Mail list logo