Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

hiding the details of the browser

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends,
I have written an application which invokes the browser with the specified address.Now what I want is the resulting page that opens should not contail the browser features of address bar,scroll bar and even buttons.I know there is function in java script window.open with various arguments.But this function opens another window.I want to apply this function to the same html page in which I am writing.Something like onLoad() but I am not getting the desired result.Can u help me.
Thanks in advance.
Regards,
Kavita.
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I ran into this problem once before also, and if you have an app that opens a browswer, there is not much you can do. You can have it call a page, that immediatly opens the window without the buttons and toolbars, and then on that page close the parent window, but again you will have problems becuase there is a security feature on one of the browswers (Netscape I think) that will not let you close the parent window without showing an alert box. And you can't determine which browser becuase it will be the users default browser.
I never found a solution to this. I think the only solution would be to open up that API to the browsers and play with the selelctions that way, which is a pretty complicated and not worth it solution. The other choice is to leave the toolbars and header info, and a third choice is to have a page that redirects you with javascript to open the page the way you want, but then you will still have the one page opened up in the background.
Bill
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes,
We are also having the same problem for which, we are
calling a new window with
window.open('Urlname',toolbar=0,status=0).
This opens a browser with no menus or address links.
All the best
S Chandra Mohan
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kavita Ghia:
There is a way to have the same page come with no statusbar, titlebar, ect.; however, there are many complications.
Let me try to explain. For some reason you are trying to control a window that is already being used. For this reason you need to access a function called:
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
This is the exact function that you will want to use. However, here comes the complicated part...
You need to have a jar file that will creates an object for security. This is called an OBJECT-SIGNING CERTIFICATE. You need a tool to create this certificate. It is called an object-signing tool.
Once you create the jar file then you can use the code from below:
<script language="javascript" archive="myJar.jar" id="1">
<!--
function noSee()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
self.menubar.visible=false;
self.toolbar.visible=false;
self.locationbar.visible=false;
self.personalbar.visible=false;
self.scrollbars.visible=false;
self.statusbar.visible=false;
}
-->
</script>
Where you have 'archive="myJar.jar" ' is how you call the jar file.
Once you have all these components down then you will be able to have the results that you are looking for.

Hope this helps.
~Ray
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ray,
I am very interested in your recommendation. Your suggestion wil work to remove the toolbar, menubar, and addressbar from the current browser without any interaction from the user? If so, please address the following questions. I don't understand what you mean by 'having a jar file that will create an object for security'. What should I put in the jar?
You also mention that you need a tool to create the certificate. What is this tool? Where can I get it? What do I do with it?
Will this work with both Netscape and IE?
Thank you for your help!
 
reply
    Bookmark Topic Watch Topic
  • New Topic