Seems like you're using apple-mobile-web-app-capable meta tag in your app. The point is that when you use it your app doesn't formally launches in Safari, but in "an anonymous app" with only UIWebView. So, I repeat, that's not Safari. It's natural for iPhone to handle http and alike links with Mobile Safari, so it closes your app and launches Safari instead (the same way it closes Safari and launches Mail when you click some e-mail link).
So I think the only way to avoid rewriting your site in AJAX is to remove apple-mobile-web-app-capable meta tag from your <head> section. 2009/9/14 Richard <[email protected]>: > > Hi All, > Not sure if this is doable, but any help would be great. I have > developed a website (for desktop browsers) and customised it for > safari on the iphone. It works great! Then click "+" and "Add to Home > Screen". > > When I open the WebApp and click on a link (standard html hyperlink) > the iphone closes the WebApp and opens the link in safari. How do I > tell the WebApp to open hyperlinks in the WebApp. > > While I realise that AJAX loading of page is the prefered way to do > this, the site is to large to fully re-write as AJAX. And my client > wants it as an icon on the home screen. Also, the site is dotNet and > doesn't work with iUI. > > Thanks in advance, > > > > -- С уважением, Андрей Юткин --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
