Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting Hyperlink Content Type  RSS feed

 
Andy Holm
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to create a hyperlink that opens a dialog box asking whether the user would like to save a file on their computer. I undertand this can be done by changing the content type to something like application/data. How do I specify that on a hyperlink?

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. You'll need to serve the file data via a servlet within which you can set the response headers appropriately.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!