mobile-website

Google Maps Native App - Map Links

主宰稳场 提交于 2019-12-23 15:47:32
问题 I want to open the native google maps application on a mobile device from my mobile website. Currently I am using the URL http://maps.google.com/maps?q=The%20Diner,%2027%20Main%20Street,%20The%20Village%20@55.7665863,-4.1455545, which works for one location. What I am looking to do is show multiple locations with a different coloured marker. Is this possible. 回答1: Well i found when you use the non-secure url and post a list of postcodes it works fine you can add more postcodes by adding

Phonegap / Converting website for mobile use

瘦欲@ 提交于 2019-12-23 05:17:54
问题 Currently I am building an app using phonegap for the Android and iOS systems. Essentially, it will be a website but I am running into some difficulties due the cross domain requests I need to make via ajax (same origin policy). Im wondering if its better to make the website on my own servers, where PHP is allowed, and then use a wrapper/frame in phonegap to emulate the site? How would that work? Help appreciated 回答1: You shouldn't be having this problem at all. PhoneGap apps are loaded on

iOS HTML Input Tag Stops Scrolling in Scrollable Element

落花浮王杯 提交于 2019-12-22 10:31:26
问题 My mobile website has a fixed scrollable ( overflow-y:auto ) element that contains input tags. On iPhone and iPad, touching and moving on the input tags block the element from scrolling but touching and moving on labels (or anything else) do not. This issue does not occur on Android. The input tags used to be part of a table before I switched to div s for layout and the scrolling worked then for iOS and Android. Is there a reason why scrolling is blocked when the input tags are not in table s

jquery mobile how to detect if mobile virtual keyboard is opened

ぃ、小莉子 提交于 2019-12-22 09:09:21
问题 In mobile device, when I open my page and select an inputbox, the virtual keyboard is open, and I want to catch this event to do my job. Is there any event handling defined in mobile browser to accomplish this? So when the keyboard is open, I d like to run my custom function to show/hide some UI blocks in the page. Thanks 回答1: First jQuery Mobile does not have any pre-defined event handler for this case. You will need to figure out the way yourself. Android When virtual keyboard is open, it

ionic sidemenu on mobile browser not working smoothly

这一生的挚爱 提交于 2019-12-22 06:58:23
问题 I am developing mobile web app using ionic sidemenu, but it is not as smooth as it should be. When I open sidemenu using slide left/right, I am getting less than 30 FPS as shown in figure. How can I improve the performance? Reaching 60 FPS would be great! 回答1: AppGyver's Steroids tooling also provides you with access to Crosswalk on Android. You can run it in your Ionic project directly without modifying any files. Also, Supersonic's sidemenu/drawer is fully native, so if you're up for

ionic sidemenu on mobile browser not working smoothly

大城市里の小女人 提交于 2019-12-22 06:58:22
问题 I am developing mobile web app using ionic sidemenu, but it is not as smooth as it should be. When I open sidemenu using slide left/right, I am getting less than 30 FPS as shown in figure. How can I improve the performance? Reaching 60 FPS would be great! 回答1: AppGyver's Steroids tooling also provides you with access to Crosswalk on Android. You can run it in your Ionic project directly without modifying any files. Also, Supersonic's sidemenu/drawer is fully native, so if you're up for

How can I prevent iPad Multitasking Gesture from locking mobile web app?

雨燕双飞 提交于 2019-12-21 21:07:43
问题 If I have a mobile web app (website with meta tag name="apple-mobile-web-app-capable" content="yes" ) and save it to the homescreen to create the "app"... then open the app and use the four finger swipe to switch applications and switch back to the mobile web app... it will bring me back, but the app is completely locked/frozen/disabled. Is there any way to make it so the app doesn't get locked when swiping away and back to it? If not, I suppose it would be better to restart the app than

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

时间秒杀一切 提交于 2019-12-21 05:11:07
问题 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

Faking max-device-width

限于喜欢 提交于 2019-12-21 03:29:15
问题 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 回答1: 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

Format ASP.Net MVC app for desktop and mobile browser

爱⌒轻易说出口 提交于 2019-12-20 10:57:07
问题 I am working on an ASP.Net MVC application that with views that I want to be able to format for desktop browsers as well as mobile browsers. Both formats would use the same Controllers and Actions but require different views. What's the best way to do this? Do I do a browser detect in the Action and then invoke the appropriate view? Does the view do the browser detect and then render itself accordingly? Is there something in between return View(); and when the view actually is processed that