Hello I have the following question
On my page I have a drop down menu where user selects some texts from db and it is then inserted into into ace editor. the user then saves the script using bootstrap modal with a new name. After he enters the new name of the text it is saved, but the drop down menu list is not updated. here is my code this populates drop down <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"> {{for item in skripte:}} <li role="presentation"><a role="menuitem" tabindex="-1" href="#">{{=item}}</a></li> {{pass}} </ul> my controler/editor.py for editor.html is def editor(): uid = auth.user_id #print uid record = db((db.script.sc_user == db.auth_user.id) & (db.script.sc_user == uid)).select(db.script.sc_name) #print record skripte = [] for rec in record: skripte.append(rec.sc_name) form=SQLFORM.factory(db.script.sc_name) return dict(skripte = skripte, form = form) thank you -- 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/groups/opt_out.