Yeah! now works, thanks professor :)
On 26 jul, 05:39, mdipierro <[email protected]> wrote: > I am surprised it ever worked. > > DIV(LOAD(request.controller,request.action,args=request.args, > vars=dict(_ajax_add=field),ajax=True),_id='TB_%s' > % key,_class='hidden')) > > should have been > > DIV(LOAD(request.controller,request.function,args=request.args, > vars=dict(_ajax_add=field),ajax=True),_id='TB_%s' > % key,_class='hidden')) > > Please let me know if this fixes the problem. > > On Jul 26, 4:14 am, web2py noob <[email protected]> wrote: > > > Hi, I just tryied the same code with an old 1.80 web2py_src.zip I have > > and can affirm that the Ajax dropbox modal[1] for references doesn't > > work for me (and perhaps someone else) anymore with the last 1.81.5 > > update: > > > Traceback (most recent call last): > > File "/home/dac/web2py/gluon/restricted.py", line 178, in restricted > > exec ccode in environment > > File "/home/dac/web2py/applications/gesfam/controllers/familia.py", > > line 45, in <module> > > File "/home/dac/web2py/gluon/globals.py", line 96, in <lambda> > > self._caller = lambda f: f() > > File "/home/dac/web2py/gluon/tools.py", line 2191, in f > > return action(*a, **b) > > File "/home/dac/web2py/applications/gesfam/controllers/familia.py", > > line 10, in index > > db.familia.vivienda_id.comment = > > ajax_create(db.familia.vivienda_id,title='aquí',value='aquí') > > File "/home/dac/web2py/applications/gesfam/models/db.py", line 113, > > in ajax_create > > vars=dict(_ajax_add=field),ajax=True),_id='TB_%s' % > > key,_class='hidden')) > > File "/home/dac/web2py/gluon/compileapp.py", line 100, in __call__ > > if '.' in function: > > TypeError: argument of type 'NoneType' is not iterable > > > It's there any workaround or just need to wait for another update. > > > Thanks in advance, Regards. > > > [1]http://web2py.com/AlterEgo/default/show/258

