On Monday, September 8, 2014 7:50:41 AM UTC-4, Leonel Câmara wrote: > > Set ajax=False in your LOAD. Otherwise LOAD is loaded via javascript and > that's why you get that 'loading...'. >
Though note that in that case, the components will not load via Ajax when the page is viewed live. If you want Ajax behavior during normal page viewing but non-Ajax when saving contents to a file, you can set a flag: In index.html: {{=LOAD(..., ajax=globals().get('use_ajax', True))}} And in your code: f.write(response.render('index.html', dict(var1=var1, var2=var2, use_ajax= False)) Anthony -- 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.