PDA

View Full Version : Removal of misc bars in opened IE 6 window


ocb
08-12-2003, 10:31 AM
I'm developing a web page which must be opened from a page on a server which doesn't allow JavaScript.
Fortunately "my" page is located on another (JavaScript-accepting IIS 5) server, thus allowing me to resize the new window (self.resizeTo(700,700)).
However I receive error messages from IE 6.0 when trying to hide all the misc. bars (tool, menu etc.):
"self.menubar is null or not an object"

The code is below:

self.resizeTo(700, 700); // OK
self.menubar.visible=false; // error
self.toolbar.visible=false; // error
self.locationbar.visible=false; // error
self.personalbar.visible=false; // error
self.statusbar.visible=false; // error

Somebody know how to solve this problem?

Kind regards,
Ole Chr. Birkeland

Bonkom
08-12-2003, 11:05 AM
I don't know if this is the best way to get arround it but you could add in another page between the two on your javascript server that has onload functions to open your page you want to display with no toolbars etc and then close that page

Bonkom :pimp:

ocb
08-14-2003, 04:19 AM
Thanks for your reply. Seems like your suggestion is the most likely solution. I've implemented it with success. :)

Ole Chr. Birkeland

agent002
08-14-2003, 02:00 PM
A window cannot control its own browser bars, such as toolbar, menubar, statusbar etc. These arguments can be defined only when opening a new window.

ocb
08-15-2003, 04:04 AM
I may be wrong, but I think that's not entirely true. According to DevEdge (Netscape) http://devedge.netscape.com/search/app/?config=devedge&restrict=&exclude=&words=UniversalBrowserWrite and PCMag http://www.pcmag.com/article2/0,4149,33211,00.asp ...you need to use a digitally signed script and have UniversalBrowserWrite privileges (for Netscape). Behavior in Microsoft Internet Explorer is a murkier issue. Microsoft's documentation makes no mention of such a restriction...
These pages mention e.g. that resizing a window below 100x100 px requires the abovementioned privileges and dig. signed script, but that IE isn't consistent. In my own tests, IE 6.0 allowed the window to resize itself to 0x0 px.

As far as I understand after reading more about this issue, a window is able to control its own browser bars, although it would require a bit more than simply using the settings (i.e. self.toolbar). However, since I've not tried it myself, I can't say for certain.

Kind regards,
Ole Chr. Birkeland