The apple-mobile-web-app-capable meta-ta…
The apple-mobile-web-app-capable meta-tag sounds awesome but it has a limitation; any normal link in your page will open in Mobile Safari, exiting your web-app chrome. You can “fix” it by hijacking all links and turning them into form posts or AJAX loads. But that isn’t sustainable. It seems the meta-tag is suited only for web-apps that are pure AJAX, never loading pages via standard HTML links. A shame but there you go. ยง






Mike 4:53 pm on April 21, 2009 Permalink |
Also… I have discovered that onorientationchange events and onscroll events are not fired in fullscreen mode.
marc 11:19 am on May 11, 2009 Permalink |
Can you post a tutorial on how to turn the links into form posts?
paulmwatson 11:22 am on May 11, 2009 Permalink |
Sorry Marc, no time for a tutorial but if you want to explore it then you can get started with jQuery. Use the jQuery AJAX Form plugin (http://malsup.com/jquery/form/) and then hijack links on the page with “$(a).click(form_handler);” The form_handler function will use jQuery to submit a form rather than follow a link.
As I mentioned though this isn’t a great solution, introduces lots of edge cases and problems.