mobile

Mobile Safari iOS 6.0 fixed positioning while keyboard showing

让人想犯罪 __ 提交于 2019-12-22 05:58:37
问题 If you have a fixed position div set to the bottom of the screen, this div does not stay at the bottom while the virtual keyboard is shown. It would move up as the height of the page increases. This problem does not occur in iOS 5 as the div continues to stay at the bottom like it should. Any help? 回答1: Could you simply hide the fixed div while the keyboard is active? $("#text_field").focus(function(){ $("#fixed_div").hide(); }); $("#text_field").blur(function(){ $("#fixed_div").show(); });

Automatically refresh list view on change - knockoutjs & JQuery Mobile

别来无恙 提交于 2019-12-22 05:37:25
问题 I am using knockoutjs (very new to it) with JQuery Mobile. I have a listview which I bind filtered results to. After I load my data the first time I have to call $('ul').listview('refresh'); in order for JQM to restyle my list, this works great. However when I filter my list, it is rerendered and looses the style again and I can't figure out where to call the refresh again. My html is as follows: <p>Filter: <input data-bind="value: filter, valueUpdate: 'afterkeydown'" /></p> <ul data-role=

Firefox OS Background services

那年仲夏 提交于 2019-12-22 05:36:14
问题 I want to build and application through which an user can input some settings and the application will start a background service to perform some tasks based on those settings. I want to run the application and the background service only in the Simulator (I know that it requires "certified" mode for running a background service, but I am not thinking right now for posting the app on Firefox Marketplace). Can someone provide me with some links or tutorials on how to build and run a background

Google Play - update an unpublished app for existing users but not new users?

好久不见. 提交于 2019-12-22 05:29:31
问题 I have an unpublished app on Google Play which I want to update for my existing users, but not let new users download it. The Google Play documentation seems to be saying that this can be done by simply uploading an updated apk (and not re-publishing the app): Unpublished Apps Existing app users will still be able to receive app updates, even if you unpublish your app. If you don't want new users to find and download your app but still want to provide updates to your existing users, set your

How to make Google Maps to request again for location permissions?

随声附和 提交于 2019-12-22 04:56:31
问题 I'm using Google maps in my mobile web app, but it I've noticed that sometimes when maps prompts for location permissions, users accidentally tap on "Deny" instead of "Allow" and they need to reload the page to be correctly located. Is there a way to, i.e., have some JS call that users can trigger, let's say by tapping a button for example, to change their choice on giving location access permissions or make the browser re-prompt for them? Thanks in advance for any help :) 回答1: This is not

ASP.NET Cookieless Session URL Issue ONLY in mobile safari

感情迁移 提交于 2019-12-22 04:42:37
问题 We're hosted on AppHarbor and using their memcacher add-on, setup as described in their documentation: <sessionState cookieless="false" regenerateExpiredSessionId="true" mode="Custom" customProvider="MemcachedSessionProvider" xdt:Transform="Insert"> <providers> <add name="MemcachedSessionProvider" type="MemcachedProviders.Session.SessionStateProvider,MemcachedProviders" dbType="none" /> </providers> </sessionState> We're seeing an issue that can be reproduced ONLY by: Following a twitter

Bootstrap XS version not working on phone and tablet

微笑、不失礼 提交于 2019-12-22 04:34:06
问题 I am designing my site (danielrojas.net) with Bootstrap and have created a separate layout for the XS viewports. It works beautifully when I resize my desktop browser (Chrome) and when I try it on Responsinator.com or similar. However, on my actual Android phone and tablet (both using Chrome, tested using the built-in browser as well), the standard version is shown, no matter what. I have included the magic viewport META tag: <meta name="viewport" content="width=device-width, initial-scale=1"

Change value of flip toggle dynamically with jQuery Mobile

二次信任 提交于 2019-12-22 04:22:24
问题 I'm working with jQuery Mobile, and I save some settings in a cookie. When the settings page is reloaded, I read the cookie to set all the values. I'm having trouble setting the flip toggle switch. Most elements just have to trigger the keyup or changed events, but I'm not sure how the flip toggles gets its value from the select box. Any ideas? 回答1: After you change the value of the switch you have to refresh it for the animation to toggle: $('#Switch2').val('on').slider("refresh"); 回答2: It

Change value of flip toggle dynamically with jQuery Mobile

情到浓时终转凉″ 提交于 2019-12-22 04:21:49
问题 I'm working with jQuery Mobile, and I save some settings in a cookie. When the settings page is reloaded, I read the cookie to set all the values. I'm having trouble setting the flip toggle switch. Most elements just have to trigger the keyup or changed events, but I'm not sure how the flip toggles gets its value from the select box. Any ideas? 回答1: After you change the value of the switch you have to refresh it for the animation to toggle: $('#Switch2').val('on').slider("refresh"); 回答2: It

how to tell if android user came from home screen app

痞子三分冷 提交于 2019-12-22 03:52:51
问题 Is there a way to tell if a user came to your website via a home screen shorcut? With iOS I'm able to use the following javascript code to detect if the user opened the page via the home screen shortcut: if (('standalone' in navigator && !navigator.standalone && (/iphone|ipod|ipad/gi).test(navigator.platform) && (/Safari/i).test(navigator.appVersion)) { window.location = 'index2.html'; } i can't find that there is anything similar that you can do with android though. any help would be greatly