mobile-safari

iphone bookmarklet cookie persistence

I have an iphone (jqtouch based) web app that uses cookies for authentication. The use flow is as follows : user goes to the mobile landing page and is instructed to save the page as a bookmarklet on their home page. they launch the bookmarklet to go to a login page to login and get a cookie. the cookie works and they can navigate thr...

How to find (in javascript) the current "scroll" offset in mobile safari / iphone

I'd like to know the x/y offset of the how far the user has "scrolled" within the viewport in mobile safari on the iphone. Put another way, if I (through javascript) reloaded the current page, I'd like to find the values I'd need to pass into window.scrollTo(...) in order to reposition the document/viewport as it is currently. window.p...

HTML5 iPhone Safari Mobile visualize something rather than quicktime symbol when creating an audio tag

I'm writing a very simple webpage in html5 for iPhone. the page is this one Not Working Everything works but in the page from the iPhone i see the quicktime logo with a slash on it and if i tap on it the player shows up the play button and in the background there is the quicktime logo. is it possible ...

force a webview link to launch safari?

I have a uiwebview embedded within an iPhone app of mine. I want to be able to have certain links within that webview open into the full mobile safari app (i.e. not my embedded version of it). Is there a simple way to structure some of my hrefs to force this, instead of every link opening within my embedded webview? Thanks. -tony ...

Sources for iPad web programming?

Anyone got some good references for targeting web content to the iPad web browser? i know its still very early days but I havent got any good indicator on how to setup CSS to fix iphone/ipod touch versus the larger screen of the iPad? or do I just consider it to be like safari on the bigger Macs ...

What video format does HTML5 use and why is it compatible with Safari on the iPad

What video format does HTML5 support that is compatible with the iPhone/iPad? I was thinking of putting together a website with some instructional videos and I'm now confused as I thought that only Quicktime was supported by Apple mobile devices. ...

Font size render in iphone

Hi everybody, i'm testing my website and is working fine on every browser, except for the iphone browser (i think it's safari mobile?) that renders a piece of text with a bigger font that the rest. I've checked the CSS by hands and using firebug on the page and i can confirm i've put the same size to all of them. How do i fix this? You ...

Play Video on Mobile Safari for iPod touch

I have a web site that opens iframe for video on page, page uses ajax to pull in videos from selected menu. As expected and understood, on iPod touch after selecting video it shows a play button, which brings up video in another screen. However, when the video completes, it returns browser to page prior to one where video was played from...

iPhone Safari does not auto scale back down on portrait->landscape->portrait

Hi, I have a very simple HTML page with this META tag for the iPhone: <meta name="viewport" content="height=device-height,width=device-width,initial-scale=1.0,user-scalable=no" /> Using the iPhone Safari, when the page loads in portrait mode it looks fine and the width fits the screen. When I rotate the iPhone to landscape mode the we...

iPhone Mobile Safari File System Access

Is it possible to write to a file in a native iPhone application and have a Safari browser read from that file after having the browser opened from the native app? Alternatively (and this would be great!), would it be possible to launch a mobile Safari webapp from a native iPhone app, and have that application access the OS 3.0 External...

Mobile Safari Geolocation API Issues

Hi, since Mobile Safari's Geolocation API should be an implementation of the W3C Geolocation API I found some bugs. I was wondering if anybody noticed the same. As specified in the W3C Geolocation API the PositionCallback returns a Position object, which contains a Coordinates object. In this object all attributes are of type double....

Ext JS Web App Issues - Button Alignment on iPad

I am using the conventional css-class setup to place small icons at the left side of Ext buttons. On the iPad they are all misaligned, with the text overlapping them. On a side note, is there a simplified theme for Ext to reduce DOM nodes created? The UI is a bit sluggish. I was really hoping for better browser performance than I'm g...

Mobile Safari Youtube opened via javascript

We have a youtube player embedded in a plage in Mobile Safari and it works great. But we need to be able to launch the youtube player by a means other than user tapping the video itself, for various reasons. So I am trying to figure out what event to trigger in javascript to make it happen with no luck. None of the following appear to...

Can you access the iPhone camera from Mobile Safari?

Is there a JavaScript API for accessing the the iPhone's camera from Mobile Safari? ...

GWT & HTML5 Video in Mobile Safari

I'm trying to code a site in GWT that plays videos with HTML5. Everything works great on the desktop, but mobile Safari on both the iPhone and iPad do not play the video. I can play a video using Video for Everybody. I've even copied the code to my own plain HTML page, and it works flawlessly. If I serve that same code via a GWT widg...

Get position of the "viewport" in mobile safari?

Is there a way to determine the position of the "viewport" in mobile safari on a web page? Like x, y, w, h pixel positions of what the phone is currently seeing on the page? ...

Server-side access to Client Browser's Latitude/Longitude using Django.

Hello, So i am writing a little app that compares a user's position against a database on web-based server written using Django and performs some functions with it. Accessing the browser's geolocation data (in supported browsers ) is fairly trivial using JavaScript. But what is the best way to allow the Django server to access the lon...

Free up memory in MobileSafari (iPhone/iPad) from cached images.

The iPad stops loading large images after about 8 or 9 images for me, since the page runs into its allocated memory limits. Since I'm showing these images one at a time, I'd like to remove the old ones from the browser cache so I don't hit the limit. Any ideas on how to do this in javascript? ...

Reading Safari cookies in iPhone app

Hi, is it possible to read the cookies of Safari in an own iPhone App? ...

Using of html5 <video> tag in web-based applications for iPhone

As you know iPhone plays video content from < video> tags in full-screen mode via internal media player. Here I have several questions: 1) is it possible to show custom text over video playing? something like subtitles appeared during movie playback. I tried several solutions like http://blog.gingertech.net/2008/12/12/attaching-subtitl...