• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Disable Save As in IE

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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();


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic