Can you show more of your code? I don't see why your second version should work if the first one didn't. Was the original code inside a web2py view (so the URL would get rendered before the HTML was sent to the browser)? Anthony
On Thursday, August 4, 2011 5:58:49 PM UTC-4, Richard wrote: > No, I think it a Datatables parsing issue since Datatables TableTools > is waiting for a URL... I don't know why... > > Richard > > On 4 août, 17:56, Anthony <abas...@gmail.com> wrote: > > On Thursday, August 4, 2011 5:36:13 PM UTC-4, Richard wrote: > > > > > Hello, > > > > > I try to do this : > > > > > $(document).ready(function() { > > > $('table.sortable').dataTable( { > > > "sDom": '<"H"Tfr>t<"F"ip>', > > > "oTableTools": { > > > "sSwfPath": "{{=URL('static','plugin_added/DataTables-1.8.1/extras/ > > > TableTools/media/swf/copy_cvs_xls_pdf.swf')}}" > > > > Is the line break after "extras/" in your original code? If so, that > should > > be causing a syntax error in the web2py view rendering. If you remove > that > > line break, web2py should fill in the URL properly. If it still doesn't > > work, it probably has something to do with not setting up DataTables > > properly. > > > > Anthony