All Questions

1262
votes
47answers
1156219 views

What is the best way to detect a mobile device in jQuery?

Is there a solid way to detect whether or not a user is using a mobile device in jQuery? Something similar to the CSS @media attribute? I would like to run a different script if the browser is on a ha...
310
votes
11answers
562013 views

Media Queries: How to target desktop, tablet and mobile?

I have been doing some research on media queries and I still don't quite understand how to target devices of certain sizes. I want to be able to target desktop, tablet and mobile. I know that there ...
112
votes
11answers
220899 views

Simplest way to detect a mobile device

What is the simplest way to tell if a user is using a mobile device to browse my site using PHP? I have come across many classes that you can use but I was hoping for a simple if condition! Is ther...
86
votes
14answers
196301 views

HTML5 <video> element on Android

According to: http://developer.android.com/sdk/android-2.0-highlights.html Android 2.0 should support the HTML5 video element. I haven't been able to get this to work using a Motorola Droid, and hav...
101
votes
11answers
248127 views

position: fixed doesn't work on iPad and iPhone

I have been struggling with fixed positioning in iPad for a while. I know iScroll and it does not always seem to work (even in their demo). I also know that Sencha has a fix for that, but I couldn't C...
134
votes
29answers
231223 views

Detect viewport orientation, if orientation is Portrait display alert message advising user of instructions

I am building a website specifically for mobile devices. There is one page in particular which is best viewed in landscape mode. Is there a way to detect if the user visiting that page is viewing it...
40
votes
4answers
47571 views

jQuery.ajax() method's async option deprecated, what now?

As of jQuery 1.8, the use of async:false in jQuery.ajax() is deprecated. But how many webpages have you seen with a "loading screen" while there is an ongoing AJAX communication in the background? I h...
226
votes
7answers
246122 views

How can I "disable" zoom on a mobile web page?

I am creating a mobile web page that is basically a big form with several text inputs. However (at least on my Android cellphone), every time I click on some input the whole page zooms there, obscuri...
67
votes
4answers
61793 views

Creating an Android Service with Phonegap? (Have phonegap app run even when closed)

I have been working on an Android app using Phonegap and now would like to make it so when the app is closed it can still execute the java/js code in the app. So I understand I need to create a servic...
85
votes
17answers
19718 views

What work has been done on cross-platform mobile development?

Have any well-documented or open source projects targeted iPhone, Blackberry, and Android ? Are there other platforms which are better-suited to such an endeavor ? Note that I am particularly asking ...

Previous Next