mobile-safari

IPhone phonegap pdf issue

Hi folks, I have a strange issue in phonegap framework. I want to display PDF file in my application, when I am trying to add PDF file with iFrame tag it doesn't show a PDF with horizontal scroll and with a big zoom size. so getting out of screen. I tried by another way using embed tag, its also having same problem with addition to th...

How does web based jailbreak work for iPhone ?

I hope everyone knows that there is this web based jailbreak at jailbreakme.com I was initially skeptic but it worked on my iPod touch. Can someone explain how it works ? How can a website jailbreak my hardware ? Is it like some virus which affects our computer when we visit certain websites ? How can it execute a program on my iPod to...

Using CFDocumentTypes, is there a way to download the specified file from safari?

I am using CFDocumentTypes and UTExportedType in my iphone plist to be able to download qif/ofx files straight to my application. At the moment it can download them from the mailapp. Is there any way to get them to download from safari as well? ...

Does iPhone/iPad Safari require 'Accept-Ranges' header for video?

Hello, I've been having problems serving videos from my dev server that play in mobile Safari. My dev server does not support the 'Accept-Ranges' header and after reading a few forums I've discovered that may be my problem. Here is an example forum posting saying just that. Is this correct? Does mobile Safari require the Accept-Ran...

HTML5 video tag on iPhone OS 3 is appearing outside a layer that has overflow: hidden;

I have an HTML5 video tag in a layer that has 'overflow: hidden;' set on it, but the video shows up outside the overflow area. It's essentially an accordion control, so the layer the video is in will be closed by default, and then when activated it will open up with a little slide down animation. Unfortunately, because the video isn't re...

Setting "Home Screen" icon name for mobile Safari

By default, when "bookmarking" a website as an icon (by choosing to Add to Home Screen from within Safari's "+" menu), the icon name defaults to the page's <title>, truncated to 12 characters. In much the same way that apple-touch-icon lets you specify your own iconified representation of the page, is there a way for the webpage to spec...

Try/Catch for Javascript in mobile safari?

Can I wrap a try/catch around the opening of a URL in mobile safari? I know the question has been asked a number of different ways but essentially what I'm after is the trapping of bad URLs or the detection of when a specific URL cannot be opened by the browser. ...

How can I disable the spell checker on text inputs on the iPhone

Sometimes the spell checker is unnecessary, captchas, usernames, emails, ect. Is there a way disable it on some text inputs/text areas? ...

emulating mobile browsers on Os X

what's the best way to emulate iPhone's Mobile Safari and Android's browser on Oxs X ? I've tried some stuff, but it's not reliable and doesn't match 100% the renderning on the mobile devices. ...

Can Selenium test mobile webapps ?

I need to test, with Selenium or a similar Ruby-aware automated testing tool, how my webapp behaves on iPhone's mobile Safari and on Android browser. How can I do that ? ...

Can Selenium test my app for Mobile Safari and Android browser?

I need to test, with Selenium or a similar automated testing tool, how my webapp behaves on iPhone's Mobile Safari and on Android browser. How can I do that? I usually test my app by hand setting Safari 5 with User Agent = "Mobile Safari", I used iPhoney as well but it's too buggy IMO. ...

iPhone <button> padding unchangeable?

A HTML5 <button> in Mobile Safari seems to have fixed, unchangeable left and right padding. Here's a demo plus how it looks in Safari 5 and iOS4. How can I get rid of that padding? ...

How can I make the Android browser render my document at the screen's size?

I'm working on a site that's supposed to scale fluently down to low resolutions, so that it would work just as well on a phone. This works well in Firefox and Chrome when I just make the window small, but when I try it out on an actual Android phone (Nexus One running Android 2.2), it renders it super-huge! (Using JS's window.innerWidt...

Is there a way to discern an iPhone 3G/S visitor to an iPhone 4 visitor?

I want to load higher resolution pictures for iPhone 4 users, but the only way I know of detecting users is by a user-agent. But I'm under the impression that the user-agent of MobileSafari on any iOS4 phone is the same across the board. What could I do to detect an iPhone 4? ...

What are the limitations of coding web apps for the iPhone?

For instance, could a web app access the mic on an iPhone and transmit voice back to a server? Or is it possible to build Safari extensions for the iPhone that can operate transparently on a web page? For instance, is it possible to build an extension that removed ads from Google result pages for the iPhone, without the user clicking a...

focus combo on page load

I want to focus a combo on page load. Tried .focus(), .select(), .click() nothing happend... ...

iPhone youtube video z-index

I have an embedded youtube video in a page. I also have a menu (when opened) is on top of that video. I have set the z-index value of the menu to higher than that of the video. I have also set the wmode of the video to transparent to allow for content on top of it. I am experiencing no issues at all in safari, ie, chrome, or firefox on...

HTML button tag does not word-wrap on iPhone/iPad

I am having trouble getting the <button> element to render correctly on the iPhone/iPad. Here is the sample: <button type="button" style="width:150px; word-wrap:break-word;">some very long text to make it wrap and go to another line</button> The idea is to have a fixed width button and the text wraps as needed. In newest IE, FF, and ev...

Font size issue with iPhone

Hi all Im currently working on a mobile version of a website, everything is great, works fine on an iPhone, Blackberry and Android. I have one slight problem, not a big deal but still a little annoying. I have: <h1> tags set to 18px and bold <h2> tags set to 12px and bold <p> tags set to 12px and normal Now everything looks great on ...

iWebkit, iPhone Zooming

Hi Guys, I am working on a mobile website built for the iPhone. The issue I am facing is related to zooming. I have a page that contains an iFrame on another page presenting an image. I set that main page to be scrollable, and it does scroll... Its not the prettiest thing, but it functions well. When I "Add Link To HomeScreen", the s...