mobile

Do mobile webkit browsers have a rounding issue in JS?

给你一囗甜甜゛ 提交于 2019-12-24 04:51:44
问题 I'm trying to debug an issue with some javascript slider code on mobile browsers. It appears to be a rounding error which only occurs on mobile devices. The following code will work fine on the desktop (e.g. Chrome) but the increase button fails to work on higher values on the slider when viewed in Webkit on a smartphone e.g. iPhone iOS 5/6, Samsung S2 ICS. Try this http://jsfiddle.net/codecowboy/mLpfu/. Click the 'debug on mobile' button - its directly adjacent to the Run button top left

Mobile image cache size limitations?

谁都会走 提交于 2019-12-24 04:38:06
问题 Is anyone familiar with a comprehensive list of mobile devices and their browser's cache limits for images? I found one reference for iPhone: http://www.niallkennedy.com/blog/2008/02/iphone-cache-performance.html But it's 3 years old. It does state, however, that the iPhone won't cache images over 25k. I'd like to know if that's still true and if anyone has similar info for Nokia, BlackBerry and Android devices. 回答1: The only posts I could figure out (by searching on Google) are the following

Cocoa: Subclassing NSProgressIndicator on Lion

假如想象 提交于 2019-12-24 04:36:06
问题 I have a problem that is driving me crazy. I want to subclass NSProgressIndicator in its "Bar" form to change the color of the progress bar based on a couple of logic states. For that i basically override the -drawRect: as usual. However a very strange thing happens on Lion. Even if my -drawRect just calls the superclass' implementation via [super drawRect:] and does nothing else at all the whole progress bar will be displayed using the style that was used before Lion. If you remember, with

What's the best way to create a menu in jQueryMobile

▼魔方 西西 提交于 2019-12-24 04:24:11
问题 I'm developing an application that contains a menu with links to the several pages and I would like to know what's the best way to implement it. One solution is to create the menu on all pages via JavaScript, but it would duplicate menus when it should have just one global to all pages. Another solution would be to create a div outside the framework but this way would not be taking any advantage of the features of the framework. 回答1: At the present version of jQueryMobile 1.0a4.1 the only

Uneven border in mobile browsers

隐身守侯 提交于 2019-12-24 04:05:09
问题 I'm developing a responsive website and has many elements with 1px border. In mobile devices (with high dpi) borders seems uneven and blurry. I know this is because of the high DPI of the screens. Any solutions? Edit: CSS .search_bar{ width:40%; height:28px; font-size:13px; outline:none; border:0px; padding:0px; float:left; background:#fff; line-height:12px; font-size:14px; text-indent:9px; letter-spacing: normal; text-align: start; text-rendering: optimizelegibility; text-shadow: none; text

Redirect website to mobile site and from mobile to desktop?

跟風遠走 提交于 2019-12-24 03:36:11
问题 How can I handle the situation if the user wants from mobile to go to desktop site? I am using this library for redirect to mobile, and how to create a redirect. The code below is that I am using mobile_detect.php library: require_once 'controller/Mobile_Detect.php'; $detect = new Mobile_Detect; // Any mobile device (phones or tablets). if ( !$detect->isMobile() ) { //the link to mobile site } But how to handle vice versa? Thanks for helping 回答1: <a href="self.php?desktop=1">Switch to desktop

Jquery mobile, cannot get it to change page using $.mobile.changePage

冷暖自知 提交于 2019-12-24 03:30:36
问题 I am using the following code to programmatically change the page in my app with phonegap: $('#selection').change(function() { alert($(this).val()); $.mobile.changePage($("#about"), "slideup"); }); When the user changes the selection, the alert fires off and in theory should send them to the following jquery object. <div data-role="page" id="about" data-id="about"> <div data-role="header" data-position="fixed" data-nobackbtn=”false”><h1>About Us</h1></div> <div data-role="content"> <p

Flex Slider is not working on mobile phones

眉间皱痕 提交于 2019-12-24 03:21:21
问题 Im working on a site with a flexslider on this page: http://www.intensetomatoes.co.nz/story-timeline/ I just want to know if what could be the possible reason why the slider is not working on properly in mobile devices. I used Genesis theme for wordpress for the site. The necessary codes are below: <div id="timewrap" class="slidewrap"> <h1>The Full Intense story...</h1> <div id="timeline-section" class="flexslider"> <ul class="slides"> <?php while($the_query->have_posts()): $the_query->the

Mobile Friendly Jquery Modal Box?

半世苍凉 提交于 2019-12-24 02:54:54
问题 Any suggestions on a Jquery Modal box that is mobile friendly? 回答1: There is a modal in JQM already. It's called Dialog, just like the JQ UI version. Here is example code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Single page template</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" /> <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script

window.location.href doesn't work in Ipad and Iphone

微笑、不失礼 提交于 2019-12-24 02:44:29
问题 I used Google Login API in form. After logged in user, I used window.location.href to redirect user to another page, but it is not working in iPad and iPhone . window.location.href = "http://example.com/test"; 回答1: remove href as shown below window.location = "http://example.com/test"; 来源: https://stackoverflow.com/questions/26439843/window-location-href-doesnt-work-in-ipad-and-iphone