def month_input(): return dict()def month_selector(): if not request.vars.month: return '' pattern = request.vars.month.capitalize() + '%' selected = [row.name for row in db(db.month.name.like(pattern)).select()] return ''.join([DIV(k, _onclick="jQuery('#month').val('%s')" % k, _onmouseover="this.style.backgroundColor='yellow'", _onmouseout="this.style.backgroundColor='white'" ).xml() for k in selected]
)
Hi,I know I asked this before. I know people are very busy but could someone help here.From this web2py page: http://www.web2py.com/books/default/chapter/29/11/jquery-and-ajax?search=xml%28%29I got this code but does not work with python 3.6. Any help out there???, pleaaaase
def month_input(): return dict()def month_selector(): if not request.vars.month: return '' pattern = request.vars.month.capitalize() + '%' selected = [row.name for row in db(db.month.name.like(pattern)).select()] return ''.join([DIV(k, _onclick="jQuery('#month').val('%s')" % k, _onmouseover="this.style.backgroundColor='yellow'", _onmouseout="this.style.backgroundColor='white'" ).xml() for k in selected]
)
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/3huLbs5mmkY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.