This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disable Save As in IE

 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Does anyone know if its possible to get my JSP/Servlet to disable the Save As feature in Microsoft Internet Explorer - currently I am using IE5
Thanks in advance,
D
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the time the servlet or JSP generated code gets to the browser, it is just HTML (or nowadays, maybe XML). A browser scripting language is JavaScript and with it you can pop up a separate window with the toolbars that you need.
I don't see why you cannot generate Javascript code in the servlet that would open sucha a window.
waitMainWindow=window.open("","mainwait","status=no,toolbar=no,location=no,
menu=no,width=500,height=200,left=30,top=30,screenX=30,screenY=30");
var text = "";
text += "<HTML><HEAD><TITLE>PAGE TITLE</TITLE><BODY BGCOLOR=#000000>";
text += "PAGE BADOY HERE"
text += "</BODY></HEAD></HTML>";
waitMainWindow.document.write(text);
waitMainWindow.document.close();


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic