mobile

Anyone familiar with mobile visibility and zurbs foundation

送分小仙女□ 提交于 2019-12-09 03:25:35
问题 I am trying to hide a div on both a tablet device and a desktop. I am using zurbs foundation http://foundation.zurb.com/docs/layout.php to do so. However when I try to apply the classes hide-on-tablets & hide-on-desktops the second one overrides the first one somehow and the hide-on-tablets shows up on a tablet. I can create my own media queries and hide them on both but I figure I should take advantage of classes or what's the point of having all the code. You can view it on my site at http:

Is Titanium appcelerator worth it for developing camera based application on ipad, iphone and android? [closed]

烈酒焚心 提交于 2019-12-09 00:03:29
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I want to build a mobile/tablet application whose core feature will be taking pictures with the camera , viewing pictures and receiving notifications. Also I want to target iphone, ipad and android platforms. Titanium appcelerator piqued my interest because of its cross

Extend jQuery's .on() to work with mobile touch events

守給你的承諾、 提交于 2019-12-08 23:45:12
问题 I am attempting to use the jQuery mobile events without the rest of jQuery mobile. https://github.com/jvduf/jquery-mobile-events/blob/master/jquery.mobile.events.js That snippet enables them all, and works fine, but not with the .on() event handler. E.g: $('a').on('tap',function(){ console.log('Hi there!'); }); However it does work with .live(), but that is now depreciated. So my question; is there a a way to extend the .on() functionality to include the tap event and others? Full list below:

Mobile browsers don't fire up resize event when hiding address bar

倾然丶 夕夏残阳落幕 提交于 2019-12-08 21:41:16
问题 I have two sections on my website, whose height I set to window.innerHeight . When the resize event is fired the height is updated. This works perfectly on my desktop, but on my android phone I get some problems. In Chrome for android, if you scroll down so that the address bar gets hidden and the window size changes, Chrome fires a resize event and the height is updated. Firefox and the default android browser don't fire this resize event after hiding the address bar. If I change the

how to automatically close mobile select box when an option change event is fired?

左心房为你撑大大i 提交于 2019-12-08 21:40:48
Testing on Android 4.0.2 if I open a select menu and pick an option the change event fires ok but I have to click the done button of the menu to close the it. Is it possible to trigger this when an option has been selected? so far I've tried adding .focus() and .blur() to the body to shift focus but with no success. This is the snippet of code I've been testing: $('select').on('change', function(e){ console.log( $(this).find("option:selected").data('id') ); $('body').blur(); e.preventDefault(); }); Also jsfiddle: http://jsfiddle.net/dnRZc/5/ Try this it worked for me. $('select').on('change',

Android ListView: get Overscroll distance

爷,独闯天下 提交于 2019-12-08 21:31:33
问题 Is there anyway to determine the exact number of pixels that a user has overscrolled by in an Android ListView? When the user tries to scroll up past the first list item, and the overscroll/bounce animation kicks in, I need to detect the overscroll distance. Basically I'm going to do something in that space, like a fold in animation, similar to the Clear app on iPhone . I've tried calling getScrollY() and getTop() on my ListView, and its items (using getChildAt(0).getTop ), but everything

What percentage of mobile browsers support CSS media queries?

风流意气都作罢 提交于 2019-12-08 21:21:09
问题 I'm developing a new website with mobile support, and I want to try using "responsive design"/"adaptive design"/CSS media queries. I'm wondering if there's a recent report of mobile browsers that support media queries. If not, what is a reasonable approximation? 回答1: I use this site all the time when I need to check out cross-browser support: caniuse.com This site says support for media queries (across all browsers) is at 78.37% Support for mobile browsers is at 100%. 回答2: About 80%. You don

SalesForce on iOS login without using the SalesForce Webview?

让人想犯罪 __ 提交于 2019-12-08 21:20:47
问题 I'm creating an iPhone application that uses salesforce as it's server-side data component, I need to access the database from the application to retrieve data for whichever user logs into the app, to do this I need to authenticate with Sales force. I'm using the Rest API Template that was available in XCode after installing SalesForce, but I keep getting this: Is there any way I can login to salesforce programmatically ? I'd like our use of Salesforce to be 'behind the scenes' so to speak,

Is Marmalade SDK more relevant or commonly used for Game Development?

拈花ヽ惹草 提交于 2019-12-08 19:51:16
问题 I am absolutely new to Mobile App Development and was looking for an appropriate platform to start off with. I came across a project where people are looking to implement self-help advertising for a switch and home automation company into a mobile app. They want an iPhone App initially but also want to deploy on Android and other platforms subsequently. A similar app is this one. After investing a fair amount of time in researching about various SDKs and Developer Programs, Marmalade caught

HTML5; detect presence of physical keyboard in Javascript

一笑奈何 提交于 2019-12-08 19:16:13
问题 What is the most reliable way to detect if a user has a physical keyboard? An idea is that since there is no physical keyboard window.onkeydown could be undefined (instead of null ). But because of the virtual keyboard I'd suppose it to not be the case. I didn't test though. My goal is to have input[type='number'] of an Online Timer to be replaced with wheel pickers if the user doesn't have a keyboard. 回答1: I see two approaches. The first approach would be to listen to every mouse and