473,788 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabling right click without annoying popup

I know this is an annoying thing on some sites.

I have set some images in an online gallery to have their own java po
up window that is set to be the same size as the image.

I would like to set ONLY the pop up window so it does not allow th
user to right click.

Now I did a search, and found some options, but when you right click
it gives the user an annoying pop up saying stuff like "you cant d
this".

I have seen a site recently where nothing came up at all, but the righ
click was disabled.

If anyone knows how to do this, please let me know.

Cheers,

Jason
-
dukelet

Jul 23 '05
20 2156
On Wed, 21 Jul 2004 07:55:42 -0500, kaeli
<ti******@NOSPA M.comcast.net> wrote:
In article <dl************ *************** *****@4ax.com>,
pa*********@No basspam.ac.uk enlightened us with...

You might like to note that according to an official from the UK
eGovernment initiative (AFAIR run by the Office of the Deputy Prime
Minister), failing to comply with W3C WAI rules is illegal in the UK.
There has been no case law as yet, but it is worth bearing in mind
that the Government thinks that the guidance it has given (to adhere
to WAI) has the force of law, and I presume that if the courts decided
otherwise they'd bring in legislation to enforce it. It wouldn't
surprise me if the current problems with the "Odeon" web-site
developed into a test case.

I live in the States, but I'm curious - do you know if the UK law
applies to:
1. personal (non-business, owned by private citizens) pages with .uk
domains?
2. any pages outside .uk domains?

If yes to 2, how could they possibly hope to enforce it? They'd be out
of their jurisdiction, wouldn't they?

Just wondering.

This might be worth noting on my site when I put up scripts that don't
meet the guidelines.
IIRC, anything that disables the contextmenu is bad and anything that
does something with mouse events must also do it for key events, right?

--

As far as I am aware (and I am very aware I am not an expert in this
field) it applies to any web page that is providing a service, whether
paid for or not. Of course, it only applies to pages hosted in the UK,
but similar rules apply over the whole EC. The principle is that
information or services available to an able bodied person _must_ also
be available to disabled persons. I think the basic context is that of
Human Rights. This is easy enough to comply with in some contexts -
for example, all images should have ALT text describing the
information content of the image. In others (and I was at a meeting of
mapping and GIS people!) it is clearly very difficult.

The person who gave the presentation suggested there were three levels
of compliance with the WAI - one "A" which about 70-80% of sites
manage, 2 "A", which about 20% of sites manage and 3 "A" which almost
none manage. His opinion was that the level to strive for was 2 "A". I
don't know if that is meaningful to persons who know the WAI better
than I.

If I understood the context properly, there was also a
"reasonableness " judgement. For example, it is unreasonable to ask
that a general location map be made accessible to a blind person -
there is no generally available technology that a blind person could
use to "visualize" the map - even the idea of visualization may be
foreign to a person blind from birth. However, the web-site should
make available (for example) directions from public transport nodes to
the place located by the map. And sites which (for example) show the
nearest hotels to your location should have this information available
in forms accessible to screen-readers. I did ask how you were expected
to make (say) the "Eroica" Symphony accessible to a profoundly deaf
person and got a wry answer!

Paul
Jul 23 '05 #11
In article <g2************ *************** *****@4ax.com>,
pa*********@Nob asspam.ac.uk enlightened us with...
As far as I am aware (and I am very aware I am not an expert in this
field) it applies to any web page that is providing a service, whether
paid for or not.
But don't ALL pages provide a "service", even if that service is just to
inform or entertain?
How might they define "service"?

If I understood the context properly, there was also a
"reasonableness " judgement.


This makes sense, but would be hard to make concrete.

Thanks for the info.

--
--
~kaeli~
Those who jump off a bridge in Paris... are in Seine.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #12
On Wed, 21 Jul 2004 09:13:19 -0500, kaeli
<ti******@NOSPA M.comcast.net> wrote:
In article <g2************ *************** *****@4ax.com>,
pa*********@No basspam.ac.uk enlightened us with...
As far as I am aware (and I am very aware I am not an expert in this
field) it applies to any web page that is providing a service, whether
paid for or not.


But don't ALL pages provide a "service", even if that service is just to
inform or entertain?
How might they define "service"?

If I understood the context properly, there was also a
"reasonableness " judgement.


This makes sense, but would be hard to make concrete.

Thanks for the info.

--


Agree to both points! Which is why this is regarded as such a big deal
by corporate web-masters over here. It is, of course, very unlikely
that someone running a small personal set of pages would be bothered.
However, it is a big deal for government web-sites, or for large
corporations.

Paul
Jul 23 '05 #13
kaeli wrote:
pa*********@Nob asspam.ac.uk wrote:
As far as I am aware (and I am very aware I am not an expert in this
field) it applies to any web page that is providing a service,
whether paid for or not.


But don't ALL pages provide a "service", even if that
service is just to inform or entertain?
How might they define "service"?


Information and entertainment are explicitly covered:-

<quote cite="(UK) DDA, PART III-DISCRIMINATION IN OTHER AREAS">
19.Discriminati on in relation to goods, facilities and services.
....
(2) For the purposes of this section and sections 20 and 21-

(a) the provision of services includes the provision of any goods
or facilities;

(b) a person is "a provider of services" if he is concerned with
the provision, in the United Kingdom, of services to the
public or to a section of the public; and

(c) it is irrelevant whether a service is provided on payment or
without payment.

(3) The following are examples of services to which this section and
sections 20 and 21 apply-

(a) access to and use of any place which members of the public
are permitted to enter;

(b) access to and use of means of communication;

(c) access to and use of information services;

(d) accommodation in a hotel, boarding house or other similar
establishment;

(e) facilities by way of banking or insurance or for grants,
loans, credit or finance;

(f) facilities for entertainment, recreation or refreshment;

(g) facilities provided by employment agencies or under section
2 of the Employment and Training Act 1973;

(h) the services of any profession or trade, or any local or
other public authority.
....
</quote>
If I understood the context properly, there was also a
"reasonableness " judgement.


This makes sense, but would be hard to make concrete.


Reasonableness is always subject to interpretation, but there is also a
criteria of expense (equally unclear):-

<quote cite="(UK) DDA, PART III-DISCRIMINATION IN OTHER AREAS">
21.Duty of providers of services to make adjustments. -

(1) Where a provider of services has a practice, policy or procedure
which makes it impossible or unreasonably difficult for disabled
persons to make use of a service which he provides, or is
prepared to provide, to other members of the public, it is his
duty to take such steps as it is reasonable, in all the
circumstances of the case, for him to have to take in order to
change that practice, policy or procedure so that it no longer
has that effect.

....

(4) Where an auxiliary aid or service (for example, the provision of
information on audio tape or of a sign language interpreter) would-

(a) enable disabled persons to make use of a service which a
provider of services provides, or is prepared to provide,
to members of the public, or

(b) facilitate the use by disabled persons of such a service,

it is the duty of the provider of that service to take such steps
as it is reasonable, in all the circumstances of the case, for
him to have to take in order to provide that auxiliary aid or
service.

(5) Regulations may make provision, for the purposes of this section-

(a) as to circumstances in which it is reasonable for a provider
of services to have to take steps of a prescribed description;

(b) as to circumstances in which it is not reasonable for a
provider of services to have to take steps of a prescribed
description;

(c) as to what is to be included within the meaning of "practice,
policy or procedure";

(d) as to what is not to be included within the meaning of that
expression;

(e) as to things which are to be treated as physical features;

(f) as to things which are not to be treated as such features;

(g) as to things which are to be treated as auxiliary aids or
services;

(h) as to things which are not to be treated as auxiliary aids
or services.

(6) Nothing in this section requires a provider of services to take
any steps which would fundamentally alter the nature of the
service in question or the nature of his trade, profession or
business.

(7) Nothing in this section requires a provider of services to take
any steps which would cause him to incur expenditure exceeding
the prescribed maximum.

(8) Regulations under subsection (7) may provide for the prescribed
maximum to be calculated by reference to-

(a) aggregate amounts of expenditure incurred in relation to
different cases;

(b) prescribed periods;

(c) services of a prescribed description;

(d) premises of a prescribed description; or

(e) such other criteria as may be prescribed.

(9) Regulations may provide, for the purposes of subsection (7),
for expenditure incurred by one provider of services to be
treated as incurred by another.

(10) This section imposes duties only for the purpose of determining
whether a provider of services has discriminated against a
disabled person; and accordingly a breach of any such duty is
not actionable as such.
</quote>

Richard.
Jul 23 '05 #14
In article <cd************ *******@news.de mon.co.uk>,
Ri*****@litotes .demon.co.uk enlightened us with...

<quote cite="(UK) DDA, PART III-DISCRIMINATION IN OTHER AREAS">


Do you have the URL handy to this site, assuming it is online?
I'd like to look over the whole thing.

Thanks!

--
--
~kaeli~
A little rudeness and disrespect can elevate a meaningless
interaction to a battle of wills and add drama to an
otherwise dull day.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #15
On Wed, 21 Jul 2004 16:23:09 +0100, "Richard Cornford"
<Ri*****@litote s.demon.co.uk> wrote:


Richard.

Thanks, Richard!

I note that the concept of "reasonableness " is common in UK law, so
there are probably piles of case law that establishes rules on how to
determine what is reasonable!

Paul
Jul 23 '05 #16
kaeli wrote:
Richard Cornford wrote:

<quote cite="(UK) DDA, PART III-DISCRIMINATION IN OTHER AREAS">


Do you have the URL handy to this site, assuming it is online?
I'd like to look over the whole thing.


<URL: http://www.legislation.hmso.gov.uk/a...95/1995050.htm >

Richard.
Jul 23 '05 #17
In article <cd************ *******@news.de mon.co.uk>,
Ri*****@litotes .demon.co.uk enlightened us with...
kaeli wrote:
Richard Cornford wrote:

<quote cite="(UK) DDA, PART III-DISCRIMINATION IN OTHER AREAS">


Do you have the URL handy to this site, assuming it is online?
I'd like to look over the whole thing.


<URL: http://www.legislation.hmso.gov.uk/a...95/1995050.htm >

Thanks a ton!

--
--
~kaeli~
Black holes were created when God divided by 0.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #18
In article <cd************ *******@news.de mon.co.uk>,
Ri*****@litotes .demon.co.uk enlightened us with...
kaeli wrote:
Richard Cornford wrote:

<quote cite="(UK) DDA, PART III-DISCRIMINATION IN OTHER AREAS">


Do you have the URL handy to this site, assuming it is online?
I'd like to look over the whole thing.


<URL: http://www.legislation.hmso.gov.uk/a...95/1995050.htm >

Richard.


If anyone is interested in the US version, which as far as I know is
totally optional but really, really appreciated by people with
disabilities, I found it here.
Web Accessibility Guidelines (US): <URL: http://www.w3.org/TR/WCAG10/ >

--
--
~kaeli~
A little rudeness and disrespect can elevate a meaningless
interaction to a battle of wills and add drama to an
otherwise dull day.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #19
On Wed, 21 Jul 2004 14:47:43 +0100, Paul Cooper wrote:
In article pa*********@Nob asspam.ac.uk enlightened us with...

...failing to comply with W3C WAI rules is illegal in the UK.
... ..I think the basic context is that of Human Rights.


The UDoHR? The closest I can see in the declaration are..
<http://www.athompson.i nfo/rights/declaration.jsp #21.2>
If the interenet can be interepreted the equivalent of 'public'
<http://www.athompson.i nfo/rights/declaration.jsp #27.1>

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #20

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

Similar topics

4
9675
by: Lijun Yang | last post by:
Hey, I am able to disable the right mouse button on images for netscape and IE but it won't work for Opera. Here is the code: // start of the code var clickmessage="Sorry, you don't have permission to right-click." function protectImages () {
8
2035
by: George Hester | last post by:
In a page I have when the user left-clicks the page a Input box for a form gets the focus. But if the user right-clicks the page the Input box is not getting the focus. I'd like the Input box to get the focus no matter where on the page the user clicks be it right-click or left-click. Right now there is no context menu when the user right-clicks. Do you think that's the problem? Any ideas how to get this right-click left-click Input box...
1
1597
by: thomasp | last post by:
I am two days into trying to add some javascript to a webpage, so I know very little about it or any other programing language, so please bear with me. I have managed to get onMouseover and onMouseout event programed to show a popup tip when the user moves the mouse over one of the input fields or buttons, but this can get annoying on some of the forms. What I think would be a better solution is to write code that would allow the user to...
4
2575
by: Prateek | last post by:
Hi All, I have created an ASP.NET page that basically consists of a table having text boxes in all cells. The table is created using client side java script. There are some calculations being done when user changes text in any text box and moves to the next text box. This is done in the Text Changed event in java script. The problem that I am facing is that, if the user moves from one text box to another using tab key, the performance...
13
22735
by: lightzizo | last post by:
All, How can I disable or remove the close button in the screen. thanks
12
2273
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation errors show up in your error-list, you can disable this functionality by selecting the Tools->Options menu item in VS or Visual Web Developer. Select the TextEditor->Html->Validation tree option in the left-hand side of the
5
1956
by: hp_1981 | last post by:
Hi Is there anyway avoiding users to save my web pages? this idea came to my mind when I tried to save a web page, but in the middle of saving progress something like the following error occurred: "unable to save the page...". on the other hand, once, I saved a web page successfully, but when I opened it the characters were completely unreadable. unfortunately I can't remember the url now but if you know any way to restrict users,
5
1334
by: TC | last post by:
I don't use the Form Designer. Is there any way to disable it completely? I find it annoying that every time I create a new form, or double-click on an existing one, Visual Studio uses the Designer by default. It would be nice if I could turn that off. -TC
4
4278
by: vickeybird | last post by:
I want to know if it is possible to detect if Pop up Blocker is enabled without trying to open a Pop Up windows. I'm trying to create a web analytics script and visible Pop up in case of disabled PopUp Blocker is not being accepted.
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10118
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8995
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
7519
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
6750
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();...
1
4074
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
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2897
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.