On Tuesday, April 26, 2011 11:34:48 PM UTC-4, pbreit wrote: 
>
> Is there any advantage to the "append" approach? (besides being able to 
> trigger a load from somewhere else)

 
If you look at web2py_ajax.html, you can see it inserts jquery.js, 
calendar.css, and calendar.js as the first three linked files before any of 
the existing response.files, so I guess using response.files.append ensures 
your files come after jquery.js. It might also make it a little easier to 
dynamically control (from a controller) which files are included (rather 
than hard-coding or adding logic in the view).
 
Anthony

Reply via email to