« Using NetVerify web s… | Home | Two months till Germa… »

Show download in a new tab


In a Xojo Webapp you can not just provide files for download, you can also put them on links:

dim p as Picture = LogoMBS(500)
dim w as new WebPicture(p)

w.Filename = "image.png"
file = w

myLink.Target = myLink.kTargetNewWindow
myLink.URL = w.URL

myLink is a WebLink object on the web page. File is a WebLink property defined in the webpage.
The link now opens in a new browser window or a new tab. For a PDF or image file, this will show it directly in the browser and not start a new download.
12 08 16 - 22:14
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.