mobile

Controlling order of XPages CSS using mobile theme

我与影子孤独终老i 提交于 2019-12-11 07:49:29
问题 When using the XPages Mobile theme the CSS files I add to the page as resources are added before the CSS files provided by IBM as part of the mobile theme. Example: <xp:this.resources> <xp:styleSheet href="css/font-awesome/css/font-awesome.css"></xp:styleSheet> <xp:styleSheet href="/mobile.css"></xp:styleSheet> </xp:this.resources> Generate the following HTML <link rel="stylesheet" type="text/css" href="/redpill/graph.nsf/css/font-awesome/css/font-awesome.css"> <link rel="stylesheet" type=

How to check for a device/browser that fully supports the deviceorientation event?

懵懂的女人 提交于 2019-12-11 07:44:34
问题 I have a HTML5 compass that works quite ok. Now I need a smart way to distinguish between "pseudo deviceorientation enabled" browsers (as desktop chrome and FF) and real candidates like iPhone/Android/iPad Browsers that use the device's magnetometor. My current solution is a basic check for the DeviceOrientationEvent and touch support: if (window.DeviceOrientationEvent && 'ontouchstart' in window) { // setup real compass thing, with event.alpha } else { // setup some mouse following hack } Is

how to make jqgrid accessible in android if it is bigger than viewport

爷,独闯天下 提交于 2019-12-11 07:39:31
问题 Setting <meta name = "viewport" content = "width = device-width"/> is used to allow users to use jqgrid without zooming. If jqgrid width or height is bigger than viewport, jqgrid rows and columns outside it are not accessible in Android. There are no scrollbars. Tapping up or down is ignored. How to make parts outside viewport accessible? should tap() event handlers implemented in javascript for jqgrid or other idea ? 回答1: Try to set an Overflow to the Container.. (Over Stylesheet you must

JQueryMobile - fixed footer not fixed after input focus

守給你的承諾、 提交于 2019-12-11 07:21:50
问题 I'm using JQueryMobile for my mobile site. I've got a fixed footer that hides and shows when you press the "Share" button. It then disappears when you start scrolling. I've also got comment boxes. To recreate the error: [removed] (use a mobile device or sim) Scroll down and click the first comment button (speech bubble + '3') Click on the text area Click 'done' to unfocus Click on 'Share' to the right of the first comment button. You'll see the footer briefly appear, and then it drops to the

bluecove stack shutdown completely

我的未来我决定 提交于 2019-12-11 07:07:58
问题 I am new to blueocve and I am working on finding my android based phone via bluecove java library in netbeans . I paired my phone and laptop via bluetooth and when I run the below code I get this exception bluecove stack shutdown completed and I can't see any result in output window I use bluecove 2.1.1 snapshot on winsock....(win 8.1 64 bit) below code package bluetooth; import static java.sql.DriverManager.println; import javax.bluetooth.*; public class Bluetooth { public static Object lock

how to implement textblock flick animation windows mobile 7

被刻印的时光 ゝ 提交于 2019-12-11 07:05:51
问题 How can I implement flick in and out animation on a textblock (swipe) in windows mobile 7? 回答1: There are two parts to this: Detecting the flick. - For this I'd recommend staring by looking at the GestureListeners in the toolkit. Animating the "flick". - This will depend on the exact animation you are looking for. I'd start by creating three textblock which hold the previous, current and next items in your list. If the user swipes one way (say left to right) I'd animate the previous item in

How i can make crossbrowser native-app urls with http url fallback on website?

喜夏-厌秋 提交于 2019-12-11 07:01:41
问题 I need to open vk.com, facebook, twitter apps when user clicks on url, in case this app is installed. Otherwise, new tab should be opened with http url. Are there some ready solutions for this? I need this to work at ios, android & windows devices. 回答1: This can be done using a URL scheme. Unfortunately, different operating systems (ios, android, etc) respond to different URL schemes for their mobile apps. So, first you will have to find out what device the user is using. This can be obtained

How do I maintain fixed-width for layout viewport in android, iphone, with user-scalable=yes; using jQuery Mobile

我的梦境 提交于 2019-12-11 06:51:49
问题 The site should have a fluid-layout, adjusting to the width of the device, in both portrait and landscape orientations. Here's my meta viewport tag: <meta name="viewport" id="viewportid" content="width=device-width, minimum-scale=1.0, maximum-scale=10.0, user-scalable=yes"> The problem is when the user zooms, the content flows to adjust to the visual viewport. I want to ensure the content remains static. That is, the layout viewport is unaffected by the visual viewport. How can I prevent the

Custom .htaccess mobile redirection

心不动则不痛 提交于 2019-12-11 06:40:46
问题 I am trying to redirect specific pages to other specific pages only when the user is accessing the website via a mobile device. So far, I have the code below, but it is not working and I am unsure as to why. Please advise. #=== Start Mobile Redirection === # Check if this is the noredirect query string RewriteCond %{QUERY_STRING} (^|&)noredirect=true(&|$) # Set a cookie, and skip the next rule RewriteRule ^ - [CO=mredir:0:%{HTTP_HOST},S] RewriteCond %{HTTP:x-wap-profile} !^$ [OR] RewriteCond

bootstrap - no scrollbars on IOS?

天大地大妈咪最大 提交于 2019-12-11 06:39:59
问题 I am using bootstrap version 2.x and when i use the app on a non mobile browser the scrollbars work correctly, however when i browse using iOS (iphone 5) there are no scrollbars -- specially vertical scrollbars and i cannot touch scroll on the screen - its just fixed i cannot more left or right or up or down...... Is there something i need to enable for touch scrolling like a different js library? or is there something broken. I have read that if the tags for are not closed properly this