mobile

Fixed positioned header persists on desktop but not on mobile?

≡放荡痞女 提交于 2019-12-19 10:25:05
问题 If you narrow the browser you will see a .header-mobile element. It is fixed positioned. And it persists on desktop but on mobile it's just left on the top. This is the mobile CSS: @media handheld, only screen and (max-width: 767px) { #header, #header-fixed { display: none; } #header-mobile { background: url(images/header-fixed-bg.png) repeat-x 0 0; border-bottom: 1px solid #111; display: block; position: fixed; top: 0; width: 100%; -webkit-box-shadow: rgba(0,0,0,0.3) 0 0 4px; -moz-box-shadow

Popup to display if viewed on mobile

妖精的绣舞 提交于 2019-12-19 10:15:37
问题 I have a website that needs to redirect mobile users to a mobile site, however because of the sites being hosted in different places, I can't set the cookie to remember if they've been directed from the mobile site. Therefore there is a continuous loop. All I want to do now is display a popup if the user is viewing on a mobile, offering them the option to view the website on a mobile or cancel to view the full site. I know this will be possible in Javascript/jQuery, but I'm not sure how to go

Popup to display if viewed on mobile

浪子不回头ぞ 提交于 2019-12-19 10:15:03
问题 I have a website that needs to redirect mobile users to a mobile site, however because of the sites being hosted in different places, I can't set the cookie to remember if they've been directed from the mobile site. Therefore there is a continuous loop. All I want to do now is display a popup if the user is viewing on a mobile, offering them the option to view the website on a mobile or cancel to view the full site. I know this will be possible in Javascript/jQuery, but I'm not sure how to go

How to Force a file to download using PHP on mobile Browsers?

穿精又带淫゛_ 提交于 2019-12-19 09:49:30
问题 I want to write a php script to download some files(extensions - .apk, .dcm, .pdf, .zip etc...) on mobile browsers. I have written a php code to download those files and it is working fine on all the browsers(not mobile browsers). But I tried it using a HTC mobile and it is trying to open the file instead of downloading(like opening a web page). How can I enable the download on mobile browsers? Thank You PS: This is how I do it. I use a jquery code to send some parameters to a php file and it

Is it possible to disable the mobile UI features in tinyMCE 5

一曲冷凌霜 提交于 2019-12-19 09:16:21
问题 Is it possible to disable the mobile UI feature in tinyMCE, and just show the regular editor? I'm asking because it only shows a blank screen for me, in mobile (when I click on the "book" icon in the editor box. I've searched for solutions to the blank page and I only found vague references to "a parent element having overflow set to anything but visible" which didn't help me much. 回答1: EDIT November 2019: TinyMCE 5.1 switches to the Silver theme by default on mobile devices. This workaround

Clearing app cache programmatically?

时光毁灭记忆、已成空白 提交于 2019-12-19 08:59:08
问题 I want to write a utility where the user can select a set of installed apps and clear their data caches i.e. like the way you can do manually using the built-in Settings->Applictions settings screen with the "Clear cache" button. How can I access how much cached data each app has and programmatically clear these caches? 回答1: Ordinary SDK applications have no rights to access, let alone modify, the caches of other applications, any more than they have a right to hack your files. This may be

SQLCE Connections: Keep them open or let them close?

北战南征 提交于 2019-12-19 08:41:21
问题 Keeping performance on a mobile device in mind, what do you think is the best approach with an SQLCE Connection. Keep it open for the duration of the application or let it close whenever a call to the database is needed. Obviously this depends a little on the nature of your application however I'm curious to hear what the group has implemented and why. 回答1: You should definitely watch Steve Lasker's PDC08 session about SQL Server Compact Edition. There's a part about performance, best

Rails 3 detect request coming from mobile clients

不羁岁月 提交于 2019-12-19 08:00:23
问题 My setup: Rails 3.0.9, Ruby 1.9.2 My app needs to serve up a mobile vs. web layout depending on the request's origin. I need to support all the major mobile client front-ends like iPhone, Android, Blackberry, etc. What's the simplest way to detect this in my code? 回答1: The easiest way to do it is parse request.user_agent by RegEx /Mobile|webOS/ . Mobile/Full version variable can be saved into session, and helper will be useful to include mobile CSS: #controller def mobile_device? if session[

Google Analytics Spam on Mobile - App Not Released

无人久伴 提交于 2019-12-19 07:26:29
问题 Across multiple Google Analytics accounts there seems to be an outbreak of spam. Lots of events posted similar to the one below: EVENT CATEGORY: to use this feature visit: EVENT-TRACKING.COM Now for web, I can add a filter to block by hostname. Not perfect, but doable. But what about mobile? I have an app I haven't even released yet getting these spam events. So these guys aren't crawling sites and spamming, they're actually just guessing Analytics account numbers and using the API. Can

Scroll position of a jquerymobile collapsible set when expanded

允我心安 提交于 2019-12-19 07:18:44
问题 I am using a jQueryMobile (v1.4.0) collapsible set / accordions to display a list of elements and its content as shown in this jsFiddle. <div id="List" data-role="collapsible-set"> <div data-role="collapsible" data-content-theme="c"> <h3>Lorem ipsum 1</h3> <p>Suspendisse neque...</p> </div> <div data-role="collapsible" data-content-theme="c"> <h3>Lorem ipsum 2</h3> <p>Lorem ipsum...</p> </div> </div> The problem I have is with scrolling when the content of an item is longer than the length of