Hi, does anyone know how to solve the loading... issue?
After updating web2py from 2.5.1 to current I get 'loading...' instead of list of files. I already tried: - Replacing .js files with the new ones - change order of including files in web2py_ajax.html - exchanging gluon/compileapp.py with the old version of this file (old LOAD function) from the release 2.5.1. (This works, but I need to fix it on the level of application) The project is available on sourceforge: http://sourceforge.net/p/yeastmap/code/ci/default/tree/ Below are the relevant functions: In the view (): <h2>Files</h2> {{=LOAD('default', 'filelist', ajax=True, target = 'list')}} In the controller: def filelist(): ''' list available files ''' data = db(db.yeastmap.active == True).select() lis=[LI(DIV('create new', _onclick="web2py_component('%s','show_data'); $('#file_menu, #config_menu, #filter_menu').html('');$('.active').removeClass('active');"%URL(request.application, 'default', 'edit_yeastmap'), _class="button"), BR(), BR())] for d in data: if not auth.is_logged_in() and not check_access(d.id): continue filename, filep = db.yeastmap.data.retrieve(d.data) record_versions = db(db.yeastmap_archive.current_record == d.id).select() lis.append( LI( DIV(filename, _class="box", _id=d.id), BR(), SPAN(' created by ', '%(first_name)s %(last_name)s '%d.created_by, _class="meta-info"),DIV(' last edit ',prettydate(d.created_on), ' version ', len(record_versions)+1, _class='meta-info'), )) return TAG['']( SCRIPT('init_files();', _type="text/javascript"), UL(lis, _id="file_list") ) in the view: function init_files(){ $('.box').click(function(){ $('.active').removeClass('active'); $(this).addClass('active'); web2py_component('{{=URL(r=request,f='menu')}}/'+$(this).attr('id'),'file_menu'); web2py_component('{{=URL(r=request,f='config')}}/'+$(this).attr('id')+'?fkt=file','config_menu'); $('#show_data').html(''); $('#filter_menu').html(''); }); } I will be grateful for help, best, Magdalena -- 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.