mobile

Visual viewport detection in Firefox mobile browser

天涯浪子 提交于 2019-12-10 11:41:56
问题 As the subject says, I need these zoom-tainted viewport dimensions (CSS-pixels) in Firefox mobile browser. How do I extract that? In webkit browsers it goes by window.innerWidth / innerHeight and works fine, but I just can't find the corresponding values for Firefox. 回答1: I had the same problem and came up with the following solution: Place a zero-pixel size "dummy" div in the bottom right corner of the screen (using "position:fixed") and query its position via getBoundingClientRect().left

getting url values in jquery mobile?

耗尽温柔 提交于 2019-12-10 11:29:33
问题 i am trying to get the value attached in the url using jquery mobile. http://localhost/testing/nothing.html#details?id=0&color=blue I want to get the id = 0 and color = blue using jquery mobile when i go to the "details" page: $('#details').live('pagecreate',function(event) { }); Thanks. 回答1: Please check this link Write the fucnction like shown below $.urlParam = function(name){ var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); return results[1] || 0; } To

Changing entry point class based on form factor

余生长醉 提交于 2019-12-10 11:29:07
问题 Im looking to load a different user interface in my GWT application if the user is accessing from a mobile web browser or desktop web browser. I was wondering how I would edit my Application.gwt.xml file change which entry point class is loaded based on the the form factor. I thought it might be something along these lines but i'm kind of just hacking so I was wondering if anyone had any ideas? <entry-point class="webapp.client.WebAppEntryPoint"> <when-property-is name="formfactor" value=

Mobile Device emulator cannot access localhost

徘徊边缘 提交于 2019-12-10 11:25:51
问题 I am using Windows Mobile 6 Professional Emulator and Windows Mobile Device Center. I connected and cradled the emulator to my computer. I am trying to connect from the browser of the emulator to a webservice that is deployed in the IIS of my computer (same machine where the emulator is installed). If I connect my computer to the internet, I can access any website, including my local WS (using the IP returned by ipConfig). The problem is when I disconnect the computer from the Internet: I

Simple CouchDB + jQuery mobile app loads list fine in desktop browsers, just not mobile

一世执手 提交于 2019-12-10 11:13:37
问题 I'm trying to write my first Couchapp with jQuery mobile. In every desktop browser I tested (IE/FF/Chrome/Safari), the app functions exactly as intended. But when I try the same page in any mobile browser (Mobile Safari, Atomic, Android, Opera), the listview fails to populate. At first I thought this might have to do with the mobile browsers handling my $("#terms").listview( "refresh" ); call differently, but changing that didn't help. I have verified that the view I am using works correctly:

Leaflet map on android disrupted by appearance of keyboard

萝らか妹 提交于 2019-12-10 11:09:02
问题 I have an android app that uses a webview to point to a website, which contains a leaflet map. On a phone the map is displayed in the top third of the screen. When you click the map a marker is dropped, the map centres on the marker, and a form appears. So far so good. But when you click on the form text area, the android keyboard appears (as it should), but this disrupts the leaflet map. It pushes the tiles and marker upwards off the top of the screen, and sometimes the whole map disappears

Mobile Chrome: Wrong 'font-size' when using 'height' property

五迷三道 提交于 2019-12-10 10:55:26
问题 By setting a css 'height' property on a parent container 'foo' the calculated 'font-size' of the inner elements changes wrongly. This happens only on a mobile device on Chrome. To test this please try to run the following code under Chrome and choose any mobile device in the developer console: <!DOCTYPE html> <head> <meta charset="UTF-8"> <title>Test</title> <style> .foo { height: 600px; color: white; background: teal; } </style> </head> <body> <section> <h2>Header in first section</h2> <p

User feedback collection API service

依然范特西╮ 提交于 2019-12-10 10:47:14
问题 Tagged with [android] so that someone will actually read this, but applies equally to other application platforms. We have a number of Android and iPhone applications which have user-feedback functionality incorporated into their user interfaces. These allow the user to leave comments, report bugs, rate the application, request support, etc. Currently, the applications make a web service call to our backend, which converts them into email and sends them to us. We would like to replace this

How to animate opacity in Xamarin.Forms

拈花ヽ惹草 提交于 2019-12-10 10:38:54
问题 I wonder how to Animate opacity of elements visible on screen. For example for Entry I got to this: this.Animate("", d => { Debug.WriteLine("anim:" + d); Username.Opacity = (AnimationTime - d) / AnimationTime; }, 0, AnimationTime); but I wonder if there is easier way. Unfortunately Animate method is poorly documented. 回答1: You could try the FadeTo extension method :- http://iosapi.xamarin.com/index.aspx?link=M%3AXamarin.Forms.ViewExtensions.FadeTo%28Xamarin.Forms.VisualElement%2CSystem.Double

Web filter breaks PrimeFaces mobile view

非 Y 不嫁゛ 提交于 2019-12-10 10:38:39
问题 In my JSF2.1 web application using PrimeFaces 3.4.2, I have added a new web page containing only one view with renderKitId="PRIMEFACES_MOBILE" (PFM 0.9.3). The idea is that a filter redirects requests coming from mobile devices to this page. Unfortunately this filter is completely breaking the css of the mobile page on some mobile devices (yes, not all devices are affected!). When the filter is there, either the redirected calls and the direct ones are broken on affected devices; when the