How to close or disable users Explorer Menu and Address Bars using lightswitch?

已答复 How to close or disable users Explorer Menu and Address Bars using lightswitch?

  • 2011年10月1日 21:37
     
     

    Hi, Thanks in advance,

    I have a requirement when my application running i have to disable user's explorer Menu Bars and Address Bars. can i Do in Lightswitch?


    :- VidyaVigna

全部回复

  • 2011年10月2日 10:37
     
     已答复

    Are you talking about the Menu and Address bars in Internet Explorer?

    Why not use the "Out of Browser" desktop deployment option?


    Simon Jones
  • 2011年10月2日 13:45
     
     
    Small doubt in your explanation.... When we are going to "Out of Browser" Desktop Deployment... is Client system installed with .net framework.? or others?
    :- Hemanth
  • 2011年10月2日 13:56
     
     

    Desktop deployment is by standard "Click Once" and requires only Silverlight 4 on the target PC. Users get as much of the assemblies as they require depending on whether you choose 2 or 3 tiers.  

    Any other prerequites can be selected in the Publish wizard as can the location from which they are downloaded.

    You put the install package wherever the users can get access and you just publish new versions to the same place. The package is checked whenever the users launch the application and any updates installed automatically.


    Simon Jones
  • 2011年10月3日 4:17
     
     
    hi. Simon Jones
    I don't want to any downloads and installation to end user...
    my main requirement is to hide the Internet explorer Address Bar and Menu Bars

    :- Hemanth
  • 2011年10月3日 7:29
     
     

    In IE, the user can hide the Address Bar and Menu Bar by pressing F11 for "Full Screen" mode. I don't think there is a way for Silverlight to specifically hide the address bar when running in the browser.

    Can I ask why why you want to hide the Address Bar and Menu Bar?

    And also why you don't want anything downloaded to the user?

    Understanding your requirements and reasoning better may help someone figure out a way to satisfy the requirements.

     


    Simon Jones
  • 2011年10月3日 8:42
     
     已答复
    Himavanth,

    When you deploy a LightSwitch web application, the application itself is hosted on a page called default.htm.

    A possible approach is to create another web page that uses javascript to open default.htm.

    The Javascript window.open method allows you to specify arguments to turn off the address and menu bars. More details on this syntax can be found here.

    http://www.javascript-coder.com/window-popup/javascript-window-open.phtml

    Just to clarify your point about not wanting the user to perform any downloads or to do any installations, the Silverlight 4 runtime needs to be installed on the client in both web and out of broswer modes. If Silverlight is not installed, the user will be promted to download and install it.

    Tim