BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - catch right mouse click ?
  FAQ FAQ  Forum Search   Register Register  Login Login

catch right mouse click ?

 Post Reply Post Reply
Author
Message
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: Dec 30 2015
Location: Germany Frankfu
Status: Offline
Points: 738
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Topic: catch right mouse click ?
    Posted: Oct 11 2017 at 9:52pm
Is there a standard event, (like mouseover) that could catch the right mouse klick?
As an element: a popup should come up, or some action else.
Not the disabled soure code view.


___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (1) Thanks(1)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Oct 12 2017 at 7:59am
Hi,

You should use Code Blocks. For example, you want to do the same action as if you click a button (open a popup, send form etc.), the button itself may be invisible to visitors.
 - Put a Custom Class "right-target" into the properties of the element/button, hide it
 - On the element which you want to right-click, put a Custom Class "right-trigger"
 - Add a Code Block (Source) type Javasctipt with the code:

$('body').on("contextmenu", ".right-trigger", function(ev){
    $('.right-handler').click();
    ev.stopPropagation();
    ev.preventDefault();
    return false;
});

Back to Top
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: Dec 30 2015
Location: Germany Frankfu
Status: Offline
Points: 738
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Posted: Oct 12 2017 at 10:56am
Thanks, I'll give it a try.
Well, I ecpected to learn Java, PHP & Co sooner or later anyway Big smile
if I survive the aneurysma aorta verticalis op at all.
That would be the 17th language.
But wouldn't that an idea to offer such functionality as 'Standard' ?
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (1) Thanks(1)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Oct 13 2017 at 7:42am
I hope you will get well.

Right-click is rarely demanded, and visitors rarely use it; not to mention that on Mac computers it may be difficult (and even less customary) and on smartphones it is just impossible.
Back to Top
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: Dec 30 2015
Location: Germany Frankfu
Status: Offline
Points: 738
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Posted: Oct 13 2017 at 10:13am
Thank you for your advice.
Yea, smarties species have some special behaviour; I noticed.
I tried to avoid reponsive layouts.
But it requires some pre-arrangement of elements.
So far, my customers appreciate it.
I feel, the trend goes back to the roots. People stay with simple, clean layouts. Even if designers think, it is required to have the most advanced and may be even blinking and moving layout. Users often lose control, and go lost in space.
The latest 'emission', isn't finished yet: http://reliefart.de/index.htm
And some other attempts, as clean and simple as possible: https://digispics.com/externe.html
These are all static sites; sooner or later a dynamic layout may be required, 'll see.

Btw: The last word about that recommended op isn't spoken yet.
I think with 78 years it might be time to go anyway soon w/o any other trouble.
And if one 'opens the can' once - it might end in an disaster. So I take the risk.
Have seen the world, created some interesting technical issues.
Nearly nothing to regret. Feeling really good. It's just enough. Such is life.


Edited by digizar - Oct 13 2017 at 10:14am
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.