iphone-web

iPhone Web App Cache Persistence

How can I write an ASP.NET (C#) application that will render a page can be permanently cached on the iPhone when it is bookmarked as a "Homescreen Icon"? I have tried setting this on the code behind "Response.ExpiresAbsolute = DateTime.MaxValue;" but to no avail. The server code is still executed every time the home screen icon is laun...

iPhone and HTML5 Cache Manifest

I am trying to build an iPhone web application using ASP.NET. The page is dynamically rendered once for each visitor. At this point the page can be bookmarked and it will never change again for that visitor. For this reason it should be cached locally from that point on so the application will run if referenced from the bookmark even if...

Hiding Safari User Interface Components on iPhone

In an attempt to hide the Safari UI components for an web-app bookmarked as a Homescreen Icon. I am using this meta tag <meta name="apple-mobile-web-app-capable" content="yes" /> as specified on iPhone Dev Center but the address bar and toolbar are still there when launched from the home screen icon. What do I need to do different? ...

Are you writing custom pages for iPhone web apps?

I read the tutorials for web applications and the special rules you can put into style sheets. Are folks finding they can just tweak their style sheets to serve up content to iPhones or do they deliver custom iPhone specific pages? would you bother with this if you were going to create a specific page anyway for mobile users ? (even if ...

Websites for the iPhone - but what about other platforms?

I recently did the Chris Coyier tutorial from the css-tricks.com weblog #38: Basics & Tips on Designing for the iPhone. Needless to say I got very excited and suggested to a guy that I do some code monkey work for that we could now offer iPhone websites to his clients. He said cool, but what about other mobile devices? good question. So ...

Date Picker for iPhone Web Application

What is best way to show Date Picker for iPhone based Web Application. Can we show something like iPhone native date picker like shown below in web application: ...

Are you doing iPhone development? How do you learn?

I am looking for more iPhone developers who are actively posting to their blog and/or Twitter. I have been learning a lot from books but the online resources beyond Apple's developer site have been hard to find. Please let me know if you are doing iPhone development. You can see my comment on Twitter here... http://twitter.com/offwhite...

iPhone accelerometer in web applications

I want my website to change its layout according to the device positon. The site has 2 layout types: vertical(height > width) ang horizontal(width > height). do you see any solution? upd: I don't see any complexity in changing the site layout. I want to know is there any event to handle. p.s. will iphone's browser change its orientatio...

Web image display in iPhone app

I am new to developing on the iPhone so am sorry if this is an easy question, but it has had me stumped for a little while. Basically the app displays data retrieved from an XML feed. In that feed is an element that contains the path to an image. eg http://www.myserver.com/myimage.jpeg. I want to be able to display that image in the li...

What is the difference between an iPhone web app and an iPhone app?

I ask this because I am on the verge of diving into iPhone development and I have been intently following the iPhone related questions here. This question: http://stackoverflow.com/questions/566265/retrieving-current-local-time-on-iphone has a comment which asks "are you creating iphone web app or iphone app" and my question is, is t...

iPhone app crashes from Finder

Hi, I've written an iPhone app and only tested it with the simulator as I don't have an actual iPhone. If I Build and Go, I can see the app running. But if I go to Finder and then open it through the project's build folder, it just crashes immediately. Does anyone know the reason for this? ...

iPhone friendly websites with ASP.NET MVC

Are there any resources or guidance out there on how to make iPhone friendly web applications? In my case specifically, I'd like to use ASP.NET MVC, but since that all runs on the server, I know it'll boil down to just markup/css/javascript considerations. edit: as I find other resources not mentioned here, I will update the question t...

Easiest way to determine whether iPhone internet connection is available?

I am looking to determine whether an internet connection is available on the iPhone. It doesn't matter for the app whether it's wifi or EDGE or whatever. Using the code from the SeismicXML example doesn't seem to work and the Reachability example code from Apple seems like overkill for the app... Is there a quick and easy way to deter...

How do I apply a stylesheet just to the iPhone (and not IE), without browser sniffing?

I’d like to apply a stylesheet exclusively to the iPhone, without doing browser sniffing (via the user-agent string) on the server or via JavaScript. I particularly don’t want Internet Explorer to apply the stylesheet. Apple’s suggested code for applying an iPhone-specific stylesheet, i.e.: <link media="only screen and (max-device-widt...

Will all javascript libraries work with Iphone? Aptana question.

I am trying to use Aptana to build an IPhone web application. I've never use Aptana. I downloaded the iphone support and started a new project. It is now asking me if I want to import a javascript library and lists the "big ones." Will IPhone's Safari be able to use these, specifically jquery? I saw that jquery had a special iphone ...

iPhone UIWebView local resources using Javascript and handling onorientationChange

I'm trying to server HTML Javascript and CSS content from an iPhone application's local resources, and I'm having trouble handling onOrientationChange events and including external Javascript. I seem to be able to link in CSS properly but not javascript. I'm trying to use the following example of handling onOrientationChange (How to bui...

Generate Xml

HI all, i am a newbie in iphone app development.... i have tried on XML parsing and done it pretty well.... but now am facing problem in generating XML for my view.... let`s say i have a view which has a text view with some content in it... can i generate an XML for it.... does iPhone SDK has some API to perform it ?? Thank for any sugg...

Preventing iPhone scaling when rotated

When I rotate my iPhone into landscape mode, the iPhone automatically bumps the text size up. What is the best way to prevent this? I'd like rotation to give the visitor more text to read, not a larger font. Is JavaScript like this the only way to go? ...

How do I get MySQL query-results using -initWithContentsOfURL ?

I have a server-side php-script that fetches results from a MySQL table. I am trying to retrieve these results from within an iPhone OS app. I am using the following method: NSURL *myURL = [NSURL URLWithString:@"http://www.someurl.com/login.php?id=anid"]; NSArray *sqlResults = [[NSArray alloc] initWithContentsOfURL:myURL]; //Show me wh...

Does App WAIT for -initWithContentsOfURL: to retrieve web-data?

I am trying retrieve data from a .php file on a server from within an iPhone OS app. In one method, I employ the following code: NSString *aString = [[NSString alloc] initWithContentsOfURL:aURL encoding:anEncoding error:nil]; //See what I got NSLog(aString); When I run the App it seems like the App runs through the code so fast I dou...