If you are using
def download():
return response.download(request,db)
to download the PDF you can do
def download():
return response.download(request,db,attachment=False)
and it will open in place (instead of downloading)
On Apr 18, 10:41 am, Anthony <[email protected]> wrote:
> On Monday, April 18, 2011 11:01:51 AM UTC-4, pbreit wrote:
>
> > How about (be careful with ' and "):
> > <a href="{{=URL('default','index')}}"
> > onclick='window.open("{{=URL("default","other")}}","mywindow");'>click
> > here</a>
>
> You might also have the href point to your PDF (and open in a new window via
> target="_blank"), and then reload the current page by adding:
>
> onClick="window.location.reload()"
>
> Anthony