mobile-safari

iPhone Safari Vs PC Safari

This js-code works in safari on my pc, but not on a ipod touch safari (has also tested it on a iphone - still not working). $(document).ready(function(){ $.ajax({ type: "GET", url: "list.xml", dataType: "xml", cache: false, success: function...

Why doesn't border-radius work properly on text inputs in MobileSafari?

Here is a reference HTML document: <!DOCTYPE html> <html> <head> <style> body { background-color: #000; } input { -webkit-border-radius: 20px; } </style> </head> <body> <input type="text" value="text" /> </body> </html> The border-radius renders fine on Safari/WebKit-based desktop browsers, but on the "...

Does Safari support Objective-C app?

Hi guys, I'm wondering it there is a way to build an Objective-C applications and then integrate into an HTML page so it can be open from iPhone, Safari. Is that possible? I'm thinking to be something similar with Flash application embedded on HTML pages by using a Flash Player plugin. Cheers, Codrin ...

Pre-populate iPhone Safari SQLite DB

I'm working with a PhoneGap app that uses Safari local storage (SQlite DB) via Javascript: http://developer.apple.com/safari/library/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/UsingtheJavascriptDatabase/UsingtheJavascriptDatabase.html On first load, the app creates the database, tables, and populates the data via a series of...

Mobile Safari application cache bugs?

I'm using Mobile Safari's cache manifest file to store a multi-page data entry application that is run on an iPod Touch (version 3.1.3) in offline mode. The application writes to the client-side database by way of the persistence.js ORM. This all works fine. However, I run into the occasional, extremely hard to reproduce problem whereby...

Anchor tags are blank

I'm having a problem where the my anchor tags sometimes aren't displaying their links. This is happening on Mobile Safari on multiple iPhones, and in the iPhone simulator. I'm using jQtouch r147, PhoneGap, and jQuery 1.4.2. I'm generating the data from a database call, and adding anchor tags to a list like this: for(var i=0;i<data.rows...

Remove textarea inner shadow on Mobile Safari (iPhone)

Hi, By default, it seems Mobile Safari adds the top inner shadow to all input fields, including textarea. Is there a way to remove it? It's especially ugly when you have a white background. Thanks! ...

Swipe Events in Mobile Safari Intermittently Breaking

I'm trying to set up swipe events for a site I'm working on. Basically, when someone swipes the content container, child div elements of that will change content depending on the page one is on. The actual div "contentwrapper" that I am attaching the swipe listeners to does not change. To do some animations, I have a previous and next ...

What changes are coming to Mobile Safari in iPhone OS 4?

What changes can I expect from Mobile Safari in iPhone OS 4? We're doing lots of client side storage and cache manifesting, so debating on updating to the latest OS when the current (3.1.3) is well tested and working. Any killer features that I should know about? ...

m3u8 stream not working on jailbroken iPhone

Hi, I have set up wowza on our company server and its working fine, serving m3u8 streams to iPhone 3G, QuickTime player, iPhone simulator etc. Any idea what might be preventing this stream to play on a jailbroken iPhone 3.1.3?? It doesn't give any error just shows up the file like a normal text file. ...

Scrollable Content areas on Mobile Safari

I'm developing a web app for iOS devices, and want to have a header that stays on the top, and then two scrollable content areas underneath it, kind of like Gmail's iPad interface and the iPad split-view apps. Does anyone know how? I've looked at http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/, which has a good so...

JW Player on iPad causes issues

Hi. I'm trying to use the JW HTML5 player in an AnythingSlider. It works fine on all the browsers but not on iPad; Page is here: http://bit.ly/d3ouub Here's what's going on: - If you start a video in any of the AnythingSlider panels (Panel 1 and Panel 5 contain video), the video will overflow the AnythingSlider and appear either on the...

Use Javascript to get selected text in Mobile Safari

So I'm working on a bookmarklet where it would be ideal for me to grab the content selected by the user using the "loop". Both window.getSelection and document.getSelection are functions that I can call, however, they always return an empty string. I believe the problem is that when you tap on the bookmark icon in Mobile Safari, the sel...

Debugging iPad Safari crash running Dromaeo JavaScript tests?

In an effort to better understand the JavaScript and DOM performance of Mobile Safari, I was trying to run the Dromaeo JavaScript performance tests on an iPad. However, part way through the tests, Safari will crash and I am sent back to the home screen. I first tried to run all the Performance Tests and crashed either toward the end of...

floating text between two columns with white space in the middle

I need to design a page similar to this http://www.brightech.co.il/page.png where the text and image are dynamically inserted in the server side, and the only thing which remains constant is the white space below the left column. I need the text to continue naturally from the paragraph in the upper left column to the lower right one. ...

Is there any shared state between iPhone apps and mobile safari?

I have a website and a native iphone app. The app registers a custom protocol. I'd like the site to automatically redirect to the protocol when appropriate, but only if the user has the app installed (to avoid an annoying dialog). That means I need to write some state from the app that I can read in mobile safari to mark the app as insta...

iPad and Viewports

Im currently developing a WebApp for the iPad, now it depends on the viewport (screen-width and screen-height) Im currently looking to somehow make it dynamic so when the user rotates the ipad, it actually resizes the viewport of the page Has anyone done this or attempted it and been successful, i would think its just a small snippet o...

How can I get --webkit-tap-highlight-color to highlight an entire DIV?

I'm struggling to get iPhone OS4 to produce the default tap highlight on a DIV, in a UIWebView (ie embedded in an application, not in Safari). The markup is: <a href="..."> <div class="item"> <div class="imgWrapper"> <img...> </div> <div class="Title"> Title text </div> </div> </a> I'm aiming for a display that looks like th...

Iphone web page and fullscreen

Hello, I'm working on a Iphone web page that would be good to have in fullscreen. The only means I found for this were setting the meta tags: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> <meta name="apple-mobile-web-app-capable" content="yes" /> Anyway this works only f...

mobile safari won't stop caching

I'm writing an offline app for mobile safari. I have just gotten to the point where it will create the app icon on the home screen and function offline. Now I want to update the html in my app, but it refuses to refresh. I've tryed the refresh button, the "clear cache" settings option, I have even taken down the server but safari still s...