Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Greying out 'View Source' in Browser Menu?

Reply
Thread Tools

Greying out 'View Source' in Browser Menu?

 
 
k
Guest
Posts: n/a
 
      07-19-2004
A programming the internet class has been asked if it is possible to
'grey out' the View Source option in a browser menu. Multiple
respondents think it is possible but not sure how to do it. I have
seen the 'Print' option greyed out at some sites...

Can you provide or recommend a specific way of achieving this?
 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      07-19-2004
k wrote:

> A programming the internet class has been asked if it is possible to
> 'grey out' the View Source option in a browser menu.


No, it isn't. I haven't heard of any way of doing this (not counting the bug
in IE which causes it to not work of the cache is full) for any browser,
let alone a cross browser solution.

http://dorward.me.uk/www/hide/

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      07-19-2004
k wrote:

> A programming the internet class has been asked if it is possible to
> 'grey out' the View Source option in a browser menu.


Sounds like you need to get a new "teacher" for that class.

--
Cheers
Richard.


 
Reply With Quote
 
Ivan Marsh
Guest
Posts: n/a
 
      07-19-2004
On Mon, 19 Jul 2004 04:19:38 -0700, k wrote:

> A programming the internet class has been asked if it is possible to
> 'grey out' the View Source option in a browser menu. Multiple
> respondents think it is possible but not sure how to do it. I have seen
> the 'Print' option greyed out at some sites...
>
> Can you provide or recommend a specific way of achieving this?


What's the point? In order for your browser to display the page it has to
download the page to your hard disk cache. You can view the source with
any text editor.

--
i.m.
The USA Patriot Act is the most unpatriotic act in American history.

 
Reply With Quote
 
Mark Preston
Guest
Posts: n/a
 
      07-20-2004
k wrote:

> A programming the internet class has been asked if it is possible to
> 'grey out' the View Source option in a browser menu.


(a). If its a class, you are being asked to think about it. What does it
mean by "browser"? Does it mean the small-footprint browser I wrote for
myself for fast-searching across multiple search engines? It is a real
enough browser - but it has no "view source" option at all.

So how would you "grey out" what does not exist?

> Multiple respondents think it is possible but not sure how to do it.
> I have seen the 'Print' option greyed out at some sites...
>


Challenge them to prove it. Then write your own using something simple
like the IE control in ActiveX... but don't put a "view source" option
on your browser either. Then ask them to show you their "method" using
MSIE, Firefox, Mozilla, Opera and Konqueror... then yours.

> Can you provide or recommend a specific way of achieving this?


In case you have missed the point... there is no "standard style" for a
browser, there are no "standard menu options" and there are no "standard
control tools" either. It is not even remotely possible simply because
you have no idea whatsoever what the word "browser" means in this context.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Try this Latest Firefox browser at http://browser.friendsrus.net subs2me@gmail.com Firefox 9 12-28-2005 09:20 AM
Re: Browser plug-in to interact with browser DKM Java 15 06-12-2005 02:11 AM
Browser information not being sent to the Domain Master Browser Russell Stamper Cisco 1 10-12-2004 08:14 PM
Browser levels, PDAs and browser sniffing Lauchlan M ASP .Net 2 08-17-2003 04:58 PM
Greying Form Input Fields Rob Dixon Javascript 3 07-04-2003 05:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57