Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"Sava as" option

 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

How can I give "save as" option for Microsoft office documents, when they are opened in browser using servlets.
Kindly note that "save" icon comes by default for pdf documents but not for microsoft documents in browser.

Thanks,
 
Doyle Matt
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm how about including a javascript on it
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any content-type that is supported by browser will open in browser itself
for rest all it will prompt a message to save the file.

even if you have pdf plugin installed on your browser then it will also open in web browser
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies.
When I'm using following line of script, M/S word is opening without top tool bar with "save as" option.
winobj = window.open(url,"win","top=0,left=0,resizable=no,toolbar=yes,location=no,directories=no,dependent=no,scrollbars=no,status=no,width=700,height=500");

But with following line "save as" is also coming.
winobj = window.open(url);

What to do if I want to use the first one with "save as" option.
 
Maybe he went home and went to bed. And took this tiny ad with him:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!