HOW TO DISABLE THE SAVEAS OPTION OF A BROWSER?

Hi all,
Nice to be back again folks.....
Well I need to develop an Applet (perhaps even a swing) which when loaded by any browser would disable the SaveAs option of the browser's File menu.
I tried using the Frame class of java.awt package, the code is:
import java.awt.*;
import java.applet.*;
public class WinAppl extends Applet
int mc;
String str="NO OF MENUS: ";
Font fnt=new Font("Arial",Font.BOLD,12);
MenuBar mb;
Frame frame=new Frame("SNODX");
Window window;
public void init()
frame.setBackground(Color.red);
frame.setForeground(Color.black);
this.setFont(fnt);
mb=frame.getMenuBar();
if(mb!=null)
mc=mb.getMenuCount();
str+=mc;
else
str+="ZERO";
public void paint(Graphics g)
g.drawString(str,50,50);
but when this applet is loaded ALL the menus of the browser disappear .i.e when this frame applet is loaded by the browser only the title bar of the browser and a red colored window appear, no menus. I dont want all the menus to be hidden, just the SaveAs option of Browser's File Menu to be disabled.
Thanks in advance.
True to my nature I am posting this question in some of the other Java forums as well. And as usual sorry for the multiple postings.
snodx

Applets usually have absolutely no control over the browser they are running in (with the exception of loading other web pages and other very high level stuff). You won't be able to write an applet that disables entries in the menu bar. And even if you could it wouldn't really help you because most browsers write everything they download to disc (to the cache) where it can be recovered by anybode.
Last but not least: there are lots of tools for mirroring web sites that will allow users to download and save anything that is accessible for browsers.
However, you may be able to disable the menu bar and perhaps even change entries in some browsers like ie by activeX controls or javascript. Still this is not a very friendly way for a website to behave...

Similar Messages

  • How to disable the select options button, while audio is playing in the question template in captivate 8?

    How to disable the select options button, while audio is playing in the question template in captivate 8?

    Apologies for late reply.
    I mean "On Question screens audio keeps on playing even after we have selected an option or options depending on the question type and clicked Submit. How do we stop the audio on selecting an option?"

  • Disable the save option in axAcroPDF1 control in c# winforms

    In my c# winform application i want
    to display pdf in axAcroPDF1 control.I am able to do that.But i dont want the save option.Any body knows how to disble the save option in axAcroPDF1 control...????

    Nothing can be done with this issue.

  • How to disable the Save button For a pdf?

    Hi,
    I have a requirement that when you open the livecycle developed pdf, the Save option available in the toolbar (Save As icon) and File menu of the Reader should be disabled. A button will be provided in the form separately to provide the Save functionality. Can anybody help me reg. this? Is there any setting available for this in Adobe Pro or any other tool?
    Regards,
    Maria

    It's not really difficult to disable the save button. But it depends on the context from where you want to delete it. even if you disable the save button the user has the option to print screen and create a fresh pdf. So your question has some philosophical aspects to deal with. Please mail me at [email protected] incase of further quries. I've understood your problem and have got a solution but it's not somewhat legitimate to do. I can share it with you through email.

  • How to disable the print option in A. Reader (using JavaScript)

    I need be able to disable the print option from JavaScript code. I know that the print option can be disabled in the
    "File > Form preferences > PDF Security" option in the main menu but i need to do this from a script into the document (
    preferably using the JavaScript language).
    Thanks in advance!
    Dan

    HI!
    I have the same problem =)
    I have fixed this issue using the "app.fs.isFullScreen = true;" statement.
    Doing this you don't see toolbar anymore.
    You can use "hideToolbarButton" instruction and, maybe, you can obtain a more interesting result.
    Below there is a very interesting document:
    http://partners.adobe.com/public/developer/en/acrobat/sdk/5186AcroJS.pdf
    I'm sorry for my poor english :-)
    Bye,
    Roberto (from Italy)
    Ps= Do you know how I can obtain a list of required fields in a form?
    thank's!

  • How to disable the print option in A. Reader (in JavaScript)

    I need be able to disable the print option from JavaScript code. I know that the print option can be disabled in the
    "File > Form preferences > PDF Security" option in the main menu but i need to do this from a script into the document (
    preferably in JavaScript language).
    Thanks in advance!
    Dan

    HI!
    I have the same problem =)
    I have fixed this issue using the "app.fs.isFullScreen = true;" statement.
    Doing this you don't see toolbar anymore.
    You can use "hideToolbarButton" instruction and, maybe, you can obtain a more interesting result.
    Below there is a very interesting document:
    http://partners.adobe.com/public/developer/en/acrobat/sdk/5186AcroJS.pdf
    I'm sorry for my poor english :-)
    Bye,
    Roberto (from Italy)
    Ps= Do you know how I can obtain a list of required fields in a form?
    thank's!

  • How to disable the save icon in the Acroread plugin

    I am able to tweak some parameters related to printing using the following file on my LINUX box
        .adobe/Acrobat/9.0/Preferences/reader_prefs
    However, I cannot find any documentation about available settings/parameters for this file.
    So not sure how, if even possible, I can remove certain buttons/options from the plugin ...as I would like at a minimum to
    prevent users from saving files they are viewing to the system running the browser they are using.
    Can I disable the icon that allows for "Save a copy..."?

    Long click on this notification a sub menu having field "App info" would appear goto App Info. You can goto there by "Manage Apps">"Skype" also. 
    Uncheck Option "Show Notifications" A dialog will open. Don't worry about notifications for now just click OK. Now the notification icon skype has also been removed. 
    Now simply check "Show notification again". After doing this you would get notifications but skype icon would not be shown in the status bar anymore.
    Issue: this is just a trick you need to repeat this every time sign out and sign in again. Mostly you don't do that so no need to worry.

  • How to disable the "close" option of the Explorer from an applet

    Hi, i'm developing a little applet an i would like to know if it is posible to disable the options of maximize, minimize and close of the Internet Explorer from the applet code. If it is posible how?
    Thanks.

    If you disable the close funstion, the user would need to reboot their machine to close the browser. Even if it is possible, it seems dangerous.

  • How to disable the sizing option in docking container

    Hi experts,
    I have created a grid in a docking container ( cl_gui_docking_container ) which will appear on the selection screen, docking at the bottom. The requirement is to disable the resizing functionality of the grid when I use the sizing arrow with the mouse on dragging. Ideally I am able to expand the grid vertically covering the selection parameters. This option has to be disabled. Please suggest any options for the same.

    CREATE OBJECT r_dock_container
        EXPORTING
       side                        = cl_gui_docking_container=>dock_at_right
          extension                   = 780
          caption                     = 'Materials'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF
    I think extension my help..  

  • How to disable the Search option in UWL header?

    Hello,
    I am trying to removed the search option in the standard UWL iView by setting the "Allow Search" property of the standard iView to "No". However this doesn't remove the search option in the UWL header. Is this right property to configure? If anybody has already been sucessful, please share the information.
    Regards,
    Shankar

    Hi Shankar,
    Per <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/0a/ad68c125ae496f8c04a25090bd2e3c/frameset.htm">SAP Documentation</a> on UWL Configuration,what you have done is correct. It may be an OSS issue.
    Regards,
    Suresh Datti

  • How to disable the save as feature in secured pdf

    Hello ! i have a small issue i recently create a secured pdf file with enable comment option.so save and save as will enable. but i need to disable save as feature because anyone can save it to another format. so then secured feature will disable. please give me a good answer if anyone knows. it'll really help me.

    But of course read carefully and BELIEVE AND UNDERSTAND the warning when you set security

  • How to disable the saveAs dialog or set default path?

    Hi Scripters,
    i have big task doing for "enable for commenting in adobe reader"
    i have using js code for menu actions is working fine, but after the menuactions the dialog box will shown in "Save As", how to the dialog will disappear or set as default path or save as the same file
    below my JS menuactions code
    app.execMenuItem("Open");
    var mys = this.path;
    app.execMenuItem("Annots:ReaderEnable");
    this.path;
    regards
    CSM_PHIL

    Hi George,
    thanks for your reply,
    However, i need to saveas the file with same name that all.
    if i the this line: app.execMenuItem("Annots:ReaderEnable"); the dialog box will shown in saveAs the same file with replace yes.
    this is possible or not?
    regards
    csm_phil

  • I have managed some how to disable the select option on the track

    kpad on my macbook pro, is ther any way I can reselect the one finger option?

    Sure you can. Try:
    Project > Table of Contents, click the Setting button
    (lower left), and -- in the Run Time Options part of the pop-up,
    clear the "show search" checkbox. and hit OK.
    Joe

  • How can I Hide(not Disable) the Save As and Exit options in the File menu of Excel Documents in SharePoint 2013?

    Hi,
    I want to hide(not disable) the "Save As" and "Exit" options in the File Menu of Excel Documents in SharePoint 2013.When I make changes in the excelribbon.css file of xlviewer.aspx,all the options under File menu are getting hidden but
    I want to hide only these two options while retaining the others.
    Kindly suggest me a method to achieve this.
    Looking forward to your reply at the earliest.
    Thanks in advance.
    Regards,
    Sanjana

    Hi Sanjana,
    To hide the “Save As” and “Exit” options in xlviewer.aspx page in SharePoint, I recommend to use the code below(however it is not recommended):
    <style>
    div.cui-menusection li.cui-menusection-items:nth-child(2)
    display:none !important;
    div#m_excelWebRenderer_ewaCtl_menuJewelSaveAs{
    display:none !important;
    div#m_excelWebRenderer_ewaCtl_msJewelSecondary{
    display:none !important;
    </style>
    As “:nth-child()” selector is supported in IE 9 and later versions, please use IE 9 or later versions’ IE browser.
    http://www.w3schools.com/cssref/sel_nth-child.asp
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • UCM - WEBDAV - How to Disable the New Folder option in the action popup

    I am trying to implement WebDav functionality. I don't want the users to create folders in the folder mapped to a security group. As long as the user has privilege to contribute to the security group he/she can checkin documents but they should not be able to create folder under it. I did not find documentation as to how to disable the new folder option in the context action menu that pops up on mouse right click. Is there any way we can do that?
    Thanx.
    Edited by: user10991492 on Nov 1, 2010 11:24 AM

    This is the boilerplate text often used in connection to networks in general. It is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe:
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files.
    Working across a network in general is not supported by Adobe.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
        Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.  It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.

Maybe you are looking for

  • Unable to install SQL Server 2012 on Windows 8.1

    hi Gurus, I have been trying to install SQL 2012 and unable to do that! I have done it before on another laptop and I am really not clear why it is not working now. Toshiba 64 bit Windows 8.1 12 GB memory thanks in advance ebro

  • How can I fix these problems? So, I can use the Mozilla Firfox browser.

    I unable to navigate on Firefox because I keep getting this error message:" A script on this page, or it may have stopped responding. You can stop the script now or you can continue to see if the script will complete". What do I need to do to stop ge

  • Change of LDB from PNP to PNPCE

    HI All,    I have a HR program where LDB PNP is used. Now I need to change the LDB from PNP to PNPCE. Can any one please tell me what are the mandatory change I need to do in the program after changing the LDB. Thanks & Regards, Arnab

  • Add animation logo to project

    Hi everyone, I'm a newbie in AE, today I downloaded a project name Head in the clouds (http://www.youtube.com/watch?v=p8ftOwjdmJ8), it show a camera go through clouds with 3 layer of text, the camera had been set move slowly each time a text layer ap

  • Session reload

    I have a 2 files A and B file A is a form that sends form details to JSP File B. File B uses an include usebean tag to call bean to validate the form. If error in form { forward back to form File A in form A use the session of the include usebean tag