Discussion Forums  >  WebViews and HTML for Mobile

Replies: 10    Views: 114

chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
11/05/12 09:58 AM (13 years ago)

disable context menu?

Is it possible to disable the context menu on Custom URL screens? I'd like to prevent users from being able to copy a given hyperlink to their phone's clipboard by pressing on it for a few seconds.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/05/12 10:33 AM (13 years ago)
Hey Chris, If you have control over the html/css code,use this in your css: a { -webkit-touch-callout: none !important; } David https://buzztouchmods.com
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
11/05/12 10:39 AM (13 years ago)
perfect - thanks!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
11/05/12 10:47 AM (13 years ago)
David - how do you set a signature for Buzztouch? Do you manually type it in each time, or is there a setting I'm missing?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/05/12 10:51 AM (13 years ago)
Your welcome! I manually type it in on all posts... almost second nature doing it for the past year LOL. David https://buzztouchmods.com
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
11/05/12 10:52 AM (13 years ago)
Ah - thanks. That would be a good addition to the site I suppose :) Chris https://www.churchphoneapps.com
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/05/12 12:24 PM (13 years ago)
Just out of curiosity, why would you want to prevent somebody from copying the link? Is it to keep them in-app, or for some other reason?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/05/12 12:31 PM (13 years ago)
Personally I think it would be used to keep them in-app, gives a more native feel and the page may not be designed for use outside of app, as navigation to that page might be native only (so once you get there via web browser, you wont be able to leave or find navigation, thus giving your "app" a bad stigma.) Just a hunch, but that would be MY reasoning! Cheers, David https://buzztouchmods.com
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
11/05/12 12:35 PM (13 years ago)
Two reasons - the first is as you suspected - I don't want someone loading an app-specific webpage from outside the app - it ruins the user experience. The second is security-related. A couple of my links pass a variable across the url that I'd rather not display to the public. I have a backup security measure in place on server-side, but I like the idea of double security. Chris https://www.churchphoneapps.com
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/05/12 12:55 PM (13 years ago)
Yep, that makes total sense! Thanks!
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/05/12 12:59 PM (13 years ago)
heh, I see you now have your own signature ;) Edit: just talked over phone, awesome! thanks again for the insight chris. David https://buzztouchmods.com
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.