Tagged Questions
299
votes
21answers
44k views
Detect iPad Mini in HTML5
Apple's iPad Mini is a smaller clone of the iPad 2 in more ways than we'd want. In JavaScript, the window.navigator object exposes the same values for the Mini and iPad 2. My tests so far to detect ...
77
votes
4answers
40k views
Detect iPad users using jQuery?
Is there a way to detect if the current user is using an iPad using jQuery/JavaScript?
Thanks everyone!
54
votes
8answers
23k views
iPad Web App: Detect Virtual Keyboard Using JavaScript in Safari?
I'm writing a web app for the iPad (not a regular App Store app - it's written using HTML, CSS and JavaScript). Since the keyboard fills up a huge part of the screen, it would make sense to change the ...
51
votes
8answers
41k views
How do I reset the scale/zoom of a web app on an orientation change on the iPhone?
I'm having the same problem that a couple of others have had with getting the correct behavior in a web app on an orientation change, and there doesn't seem to be an obvious solution - I've seen this ...
41
votes
3answers
13k views
What is the difference between screenX/Y, clientX/Y and pageX/Y?
What is the difference between screenX/Y, clientX/Y and pageX/Y?
Also for iPad Safari, are the calculations similar as on desktop OR there is some difference because of viewport?
It would be great ...
35
votes
10answers
17k views
iPad/iPhone browser crashing when loading images in Javascript
I'm trying to build an image gallery in Safari that mimics the iPad photo app. It works perfectly, except that once I load more than 6MB or so worth of images either by adding them to the DOM or ...
34
votes
6answers
14k views
Simulating touch events on a PC browser
I am developing an HTML application for the iPad. As such it utilizes touch events and webkit-CSS animations.
Up until now I have used chrome as my debugging environment because of it's awesome ...
32
votes
3answers
14k views
Debugging Javascript on iPad
I was wondering if there are any useful tools people have found to debug javascript on an iPad which is not jail broken. It is an iPad supplied for work so jail breaking is not an option. Through ...
30
votes
5answers
33k views
Any way to make div scroll in ipad?
I have tried so many different things and I keep searching but I find nothing!
Help anyone?
24
votes
7answers
12k views
detect ipad/iphone webview via javascript
Is there a way to differ via javascript if the website runs inside the ipad safari or inside an application WebView?
21
votes
7answers
18k views
iPad doesn't trigger resize event going from vertical to horizontal?
Has anyone noticed this behavior? I'm trying to write a script that will trigger upon a resize. It works fine on normal browsers, works fine on iPhone, but on iPad, will only trigger going from ...
21
votes
6answers
12k views
Is there a way to use Webkit Inspector Remote Debugging in iPad?
I have an iPad and I am wondering if I can remote debug it from the desktop using Webkit Inspector? As I understand it, it requires you to launch the browser with a command line switch. I do not think ...
20
votes
3answers
5k views
window.onbeforeunload not working on the iPad?
Does anyone know if the onbeforeunload event is supported on the iPad and/or if there's a different way to use it?
I've tried pretty much everything, and it seems like the onbeforeunload event is ...
19
votes
2answers
33k views
javascript scroll event for iPhone/iPad?
I can't seem to capture the scroll event on an iPad.
None of these work, what I am doing wrong?
window.onscroll=myFunction;
document.onscroll=myFunction;
...
19
votes
3answers
19k views
Standalone jQuery “touch” method?
So, I'm looking to implement the ability for a plugin I wrote to read a touch "swipe" from a touch-capable internet device, like an iPhone, iPad or android.
Is there anything out there? I'm not ...