mobile-website

How to Detect Mobile Browser Capability

拈花ヽ惹草 提交于 2019-12-04 06:34:10
问题 I have three different versions of a mobilized website, and as the market is flooded with more and more phones, I'm struggling to keep up with knowing where to push them. I'm wondering if anyone has faced a similar issue, of how to detect the browser type, and forward to the appropriate version of the mobilized website (where it be text, simple html, advanced html and javascript). I would be very interested in hearing the other solutions that other's have tried. Basically the text version is

Is it possible to add Sharing button for Snapchat?

五迷三道 提交于 2019-12-04 05:55:34
I am creating a mobile version of website. I have added many of the social sharing buttons (links) on my website like - Facebook, Linked In, Twitter. Specially for mobile I have added button to share on WhatsApp. Now I am thinking to enable similer link for Snapchat. Is it possible to provide a link on my site to post a snap of stories in snapchat ? I have tried to find out for any API to achive, but doesn't found any thing. From the snapchat blog link following, I found that there is no API available provided by snapchat. http://blog.snapchat.com/post/99998266095/third-party-applications-and

Android: How to create a launcher

心已入冬 提交于 2019-12-04 04:36:08
I've never developed for Android before, so please consider me 100% dumb when you answer :) I would like to create an application launcher that will open the default web browser to a given url. In other words, I want to make an icon with my website logo, and when you click on it, it opens the site in your default web browser. Could someone direct me towards a tutorial/documentation page to achieve this? Or if it's really simple, maybe show me some code here? Thanks for your time! P If I understand what you need correctly, you could just create a simple app with just 1 activity and stick this

Force Numeric Keyboard for Mobile Device

霸气de小男生 提交于 2019-12-04 03:33:39
This is not a "mobile" website. It is regular HTML/CSS. Is there a way I can force mobile devices to popup with the numeric keyboard when they focus on my textboxes? We've had the best luck with using a combination of type="number" and pattern="\d*" . We've seen success on iOS and Android devices, although I don't have a list of OS versions to share here. <input type="number" pattern="\d*" name="year"> Its called "-wap-input-format". You can use it in your css or in style element such as <input type="text" style="-wap-input-format: 'N'"/> See http://www.developershome.com/wap/wcss/wcss

Classic View/Mobile View Switch?

泄露秘密 提交于 2019-12-03 17:38:10
I'm building a version of my company's website with the jQuery Mobile framework. While it'd be fairly easy to do a javascript redirect to get users of mobile devices to our mobile site, I don't want to stop people from being able to view the classic website either. What's the best way to accomplish this? Our normal website is at: us.companyname.com/ Our mobile website will be at: us.companyname.com/mobile There are some limitations, as we don't hold the domain name, our UK counterparts do, so getting anything done at the companyname.com level takes some patience. Basically, if anyone from

jQuery Mobile popup is not opening on .popup('open')

隐身守侯 提交于 2019-12-03 15:12:02
I am trying to use jQuery Mobile 1.3.1's popup to warn the user when login credentials are false. I started with a basic template from jquerymobile's documentation, but I couldn't make it work with $('#popupBasic').popup('open'); If I use it this way; <div data-role="page"> <div data-role="header" data-tap-toggle="false"> </div><!-- /header --> <div data-role="content"> <a href="#popupBasic" data-rel="popup">Tooltip</a> <div data-role="popup" id="popupBasic">I will change this text dynamically if this popup works</div> </div><!-- /content --> </div><!-- /page --> It works well when I click on

Faking max-device-width

我的梦境 提交于 2019-12-03 10:34:39
To implement mobile website it would be useful to set max-device-width in my browser. I know plugins to fake the user-agent. It this also possible for the max-device-width? I would prefer to use a regular browser like Firefox, IE, Opera, ... instead of all kind of mobile browser emulators or even different smartphones. Thanks, Ropo Chrome allows you to set device metrics, which are used in the media queries calculation for device width. To do that, open Developer Tools, click the gear icon on the lower right corner, and go to the Overrides tab. Edit Jan. 17, 2014 : Chrome now has an Emulation

How to test for mobile webkit

Deadly 提交于 2019-12-03 10:04:12
问题 I'm looking to build a new website and want to take a responsible "mobile-first" approach. One tenet of this methodology is to only load what you need, and to avoid including large wasteful libraries and frameworks until you actually need them. For this I intend to use modernizr2 to test for features and then load only required files and libraries. On the javascript side, I'm really interested in using something like zepto.js (http://zeptojs.com/) which is a tiny javascript library (2-5k)

em vs px… for mobile browsers

喜夏-厌秋 提交于 2019-12-03 06:44:13
问题 For desktop browser all modern browser uses Zoom functionality so we can use PX but if same site can be seen on mobile then would px not be good for zooming in mobile browsers. or use of px is also fine for mobile browsers. even if we don't care for IE 6 , should we use em in place of px still if we are not making different site for mobile, same site will be seen on both desktop and mobile phones (iphone, blackberry, windows mobile, opera mini, android etc? 回答1: px won't be a real actual

Is there something similar to iOS's canOpenURL to check URL schemes for mobile browsers? [duplicate]

流过昼夜 提交于 2019-12-03 06:02:28
This question already has answers here : Check if URL scheme is supported in javascript (10 answers) Possible Duplicate: iPhone Safari: check if URL scheme is supported in javascript? I'm using pic2shop to provide barcode scanning for a mobile web app. For iOS, one can check [canOpenURL] to see if a particular scheme is valid (tel://, pic2shop://). Is there anything in mobile browsers (iOS, Android, etc) that provides the same functionality? You may try placing that URL in an iframe and wait for some seconds. If you are not being redirected to an app, it means that it's not registered.