0

I am using the following code,

$(document).delegate('div[data-role*="page"]', 'pageshow', function () {
    $(document).delegate('#imageId', 'taphold', function (evt) {
    });
});

It works but also show me a Save Dialog prompt. Tried,

img  {
  -webkit-touch-callout: none !important; 
}

and return false but nothing works. tested on Android 4.1 Google Chrome and Default Browser

Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322
  • What are you trying to achieve here ? And works? coz i didnt get u at all. – Sathya Raj Dec 25 '12 at 06:38
  • @SathyaRaj, Let's say you want to use a Key in your web app. But what if the same key is used by browser. For example, right click. We you easily disable the browser right click. Similarly, when tap hold your on a picture in Andriod, it will shows you a Save Dialog, I want to disable this browser feature. Because I am using this feature. – Imran Qadir Baksh - Baloch Dec 25 '12 at 06:45
  • $('#imageId').disableSelection(); can u try this ? – Sathya Raj Dec 25 '12 at 07:41
  • @SathyaRaj, It's for Jquery UI instead of Jquery Mobile – Imran Qadir Baksh - Baloch Dec 25 '12 at 07:45
  • have you tried using js like this http://stackoverflow.com/questions/3413683/disabling-the-context-menu-on-long-taps-on-android from what i get is you want disable the default android action and use your functionality like preventDefault(); rite? I 2 hav not done this before.. hope this might helps. – Sathya Raj Dec 25 '12 at 07:58
  • @SathyaRaj, it works but now the taphold is not triggering – Imran Qadir Baksh - Baloch Dec 25 '12 at 09:16

0 Answers0