473,804 Members | 3,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

toolbar.visible does not operate

DEN
Hello,
I need to remove toolbar and menubar from my current window (not opened
with window.open, it would be too easy!!!).
I've tried to use the window.toolbar. visible=false property,
but it has no effect.
No error message in the javascript console, nor any effect on the
current window.
I've tried Firefox and IE, same effect....
What should I do
Jul 23 '05
12 2675
Grant Wagner wrote:
"Thomas 'PointedEars' Lahn" <Po*********@we b.de> wrote [...]
Grant Wagner wrote:
[...] netscape.securi ty.PrivilegeMan ager.enablePriv ilege('Universa lBrowserWrite') ;
window.toolbar. visible = false;

But:

- if you attempt to do this locally, the user will get a big scary
dialog explaining that a script is about to do something scary and
ask
the user if they really want to let the script do this scary thing
[...]


Instead of the FUDish term "scary", the more reasonable and really
used term "potentiall y harmful" and the like should also be used
here, especially in an explanation for beginners.


I was using the term "scary" deliberately and repeatedly to exaggerate
the fact that the script shown has a serious drawback


As there is no alternative other than not doing it, and it could be
required in some cases, I would certainly not call it a drawback.
(in addition to the fact that it does not work in the default security
environment of Internet Explorer on Internet Web sites).
Which carries not much weight, considering the security flaws
Internet Explorer has presented us with in previous versions.
That drawback is that it requires end-user interaction that will most
likely (hopefully) result in most users choosing to not allow the script
to continue running.
If they decide so, great. I see no harm in that.
Teaching end-users that it is okay to agree to this prompt is a mistake,
and will lead to end-users taking other actions that would be
ill-advised.


Disagreed. Teaching end users to read and attempt to understand each and
every dialog they are exposed to before doing anything else is certainly
the better approach; as you called it "scary": fear is not per se a Bad
Thing. Besides, end users are not subscribed to this newsgroup, are they?
The wording was just inappropriate for a developer's newsgroup.
PointedEars
--
I hear, and I forget; I see, and I remember; I do, and I understand.
-- Chinese proverb
Jul 23 '05 #11
"Thomas 'PointedEars' Lahn" <Po*********@we b.de> wrote in message
news:17******** ********@Pointe dEars.de...
(in addition to the fact that it does not work in the default
security
environment of Internet Explorer on Internet Web sites).
Which carries not much weight, considering the security flaws
Internet Explorer has presented us with in previous versions.


I fail to see how past vulnerabilities have anything to do with a script
sample that will not execute in the default Internet Explorer security
environment without end-user interaction.

Or are you suggesting that the use of script that does not currently
work in the default security environment without end-user interaction,
but may some day work due to a yet to be discovered vulnerability is
proper design?
That drawback is that it requires end-user interaction that will most
likely (hopefully) result in most users choosing to not allow the
script
to continue running.


If they decide so, great. I see no harm in that.


What a strange statement to make. You see no harm in designing and
developing script on which the functionality of your site depends, but
which you hope will never be executed by the target audience?
Teaching end-users that it is okay to agree to this prompt is a
mistake,
and will lead to end-users taking other actions that would be
ill-advised.


Disagreed. Teaching end users to read and attempt to understand each
and
every dialog they are exposed to before doing anything else is
certainly
the better approach; as you called it "scary": fear is not per se a
Bad
Thing. Besides, end users are not subscribed to this newsgroup, are
they?


I do not know who, or how many people we may consider "end-users" may
subscribe to this newsgroup, and neither do you. Any speculation by
either of us would be just that, speculation. But that's entirely
irrelevant.

No one should be encouraging end-users to agree to potentially dangerous
actions.

The situation is analogous to the mytical IT manager who sent out an
E-mail advising everyone not to click on attachments, then attached a
virus scanner which he requested users run to ensure their systems were
not already infected.
The wording was just inappropriate for a developer's newsgroup.
In much the same way that comments such as the following are
inappropriate for a developer's newsgroup?

=== Begin example 1 ===

Dr John Stockton wrote:
[...] Thomas 'PointedEars' Lahn [...] posted :
VK wrote:
(Greenwich Mean Time = GMT = UTC) No, read <http://en.wikipedia.or g/wiki/UTC>.


Once more, Pooh, you are stupidly answering an old article in respect
of
a point which is already adequately covered in subsequent discussion.
[flame]


Get a life.
PointedEars

=== End example 1 ===

=== Begin example 2 ===

ojvm wrote:
thank for help, but i really don't know who to start.


Try yourself.
SCNR

PointedEars

=== End example 2 ===

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #12
Grant Wagner wrote:
"Thomas 'PointedEars' Lahn" [...] wrote [...]
(in addition to the fact that it does not work in the default
security
environment of Internet Explorer on Internet Web sites). Which carries not much weight, considering the security flaws
Internet Explorer has presented us with in previous versions.


I fail to see how past vulnerabilities have anything to do with a script
sample that will not execute in the default Internet Explorer security
environment without end-user interaction.


Since the software is inherently insecure, there is a high probability of
present and future security flaws. Therefore I don't care much about IEs
security "concept". In fact I hope that it will be replaced ASAP
throughout the Web.
Or are you suggesting that the use of script that does not currently
work in the default security environment without end-user interaction,
but may some day work due to a yet to be discovered vulnerability is
proper design?
No.
That drawback is that it requires end-user interaction that will most
likely (hopefully) result in most users choosing to not allow the
script to continue running.

If they decide so, great. I see no harm in that.


What a strange statement to make. You see no harm in designing and
developing script on which the functionality of your site depends,
but which you hope will never be executed by the target audience?


The functionality of the site does not depend on this particular feature.
But if someone wants the feature applied to his UA, it is a Good Thing
that it is asked for before if it is addressed because of the other users
that do not want it.
Teaching end-users that it is okay to agree to this prompt is a
mistake, and will lead to end-users taking other actions that would be
ill-advised.


Disagreed. Teaching end users to read and attempt to understand each
and every dialog they are exposed to before doing anything else is
certainly the better approach; as you called it "scary": fear is not
per se a Bad Thing. Besides, end users are not subscribed to this
newsgroup, are they?


I do not know who, or how many people we may consider "end-users" may
subscribe to this newsgroup, and neither do you.


Exactly, and that was merely a rhetoric question.
Any speculation by either of us would be just that, speculation.
No, from experience alone, there is a high probability that
end-users, especially IE end users, will not read this thread.
But that's entirely irrelevant.
No, it is not. When referring to a matter Wording should be chosen
according to the probable target audience and according to the context.
No one should be encouraging end-users to agree to potentially dangerous
actions.


And nobody suggested that, on the contrary.
The wording was just inappropriate for a developer's newsgroup.


In much the same way that comments such as the following are
inappropriate for a developer's newsgroup?
[...]


Oh, an ad hominem attack.
PointedEars
Jul 23 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
65779
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I remove them? If the browser is Netscape I can use javascript: window.toolbar.visible = false; window.menubar.visible = false; but IE produces the error: "'window.toolbar.visible' is null or not an object".
1
3399
by: Prakash Wadhwani | last post by:
When I start my Application I put the following code in the Main form Load Event which switches off all the ToolBars so that nothing except my form & it's controls are visible to the user. .......................................................... Private Sub Form_Load() CurrentDb.Properties("StartupShowDBWindow") = False '==== Hide the database window ====== 'DoCmd.SelectObject acTable, , True 'DoCmd.RunCommand acCmdWindowHide
1
2040
by: TD | last post by:
I created a new toolbar for my reports and need a button on it that opens (I'm not sure what the offical name of this window is) the Windows printer window where you can select which printer to print to and change the printer preferences, etc. I am using Access 2003. Is there a way to do this? Thanks, TD
2
3336
by: Sveta | last post by:
Hi all! C# question: Does anyone knows how to make a toolbar button image to make visible for a disabled button? When the toolbar button is disabled, only the gray hole is displayed instead of the grayed out image. Thank you.
3
2898
by: Jan Krouwer | last post by:
I have a problem that shows up only on some systems - the toolbar text in buttons is not visible (vb.net 2003 app, 1.1 framework). As a workaround, I changed the textalign property to "right". This solved the problem, but I don't know what's happening. I notice that there is a small "dot" in the first toolbar button that shows up in either of the textalign property choices. Perhaps this is why the text disappears but I didn't put the dot...
1
1441
by: brochu121 | last post by:
Does anyone know of a way to make a toolbar visible in IE through automation? I am not speaking about the InternetExplorer.ToolBar that I have run into on MSDN, but rather want to make a toolbar such as Yahoo's visibilbe through running my script. How would I do this. Thanks, Dave
2
1757
by: solar | last post by:
With my command DoCmd.ShowToolbar "Toolbar1", acToolbarYes i make my toolbar Toolbar1 visible.I want at the same time make all other toolbars on the screen invisible,regardless how they are called.Sometimes i have different toolbars shown and i am interested in a command that does not refer toa specific toolbar, but makes all the toolbats on the screeninvisible.Is it possible ?
4
2461
by: manjesh | last post by:
hi , kindly help to create a toolbar with that new , save , edit, cancel button , if i open each form to operate this buttons ,instead of placing in each form . regards manjesh
6
3905
by: =?Utf-8?B?L2Rldi9udWxs?= | last post by:
Hello, i am using visual studio 2003 enterprise architect version. I am making apps for the .Net framework 1.1. While testing an interface, i discovered something strange. In this application we have a standard toolbar that is at the top of the form window. It contains about 8 buttons that use images from an imagelist. Sometimes we hide buttons thru the code. When a button is hidden, i assumed that it wasn't clickable. It appears
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5515
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.