[web2py] Re: dowloading attachments with AJAX

2011-08-17 Thread mart
HI Mic! This is fantastic! Thanks for the info! :) On Aug 17, 6:33 pm, Michele Comitini wrote: > Hi Mart! > > Copy sample code in my previous mail. > > to test quicly you cat put the view code somewhere in > /welcome/views/default/index.html > > {{=A(T('be brave!'), _onclick="ajax('%s',[],':eval

Re: [web2py] Re: dowloading attachments with AJAX

2011-08-17 Thread Michele Comitini
Hi Mart! Copy sample code in my previous mail. to test quicly you cat put the view code somewhere in /welcome/views/default/index.html {{=A(T('be brave!'), _onclick="ajax('%s',[],':eval');" % URL('gen_pdf'), _class='button')}} copy the function gen_pdf() in /welcome/controllers/default.py def

[web2py] Re: dowloading attachments with AJAX

2011-08-16 Thread mart
Hi Mic! This is very interesting! :) how does it work? you have "URL('gen_pdf')", what is that referencing? would you have a model/sample app that we could peek at? :) Thanks, Mart :) On Aug 15, 4:47 pm, Michele Comitini wrote: > Suppose you want to make an AJAX call that starts a file down