Closed heymarkreeves closed 10 years ago
Uh oh -- sounds like that's something that jQuery Mobile handled. I'll look into it, but we may have to go back and switch to jQuery Mobile after all (which would require some rework)...
Meaning that "Add to home screen" doesn't work with normal links? I.e., you can't navigate URLs without a URL bar?
Looks like I can possibly get around it with this snippet of code: http://stackoverflow.com/questions/2898740/iphone-safari-web-app-opens-links-in-new-window
Crazy!
To state the obvious and make this explicit: iOS treats links in Web Apps as something that should be opened in Safari, and javascript location changes as an in-app action that is allowed to saty in the web-app. The code above works because it prevents the default link behavior, replacing it with a js nav call.
I'm looking into the HTML5 Boilerplate solution as well, since there is at least one place where we will need to link externally (on the Museum page, where we can link to the museum's website), and we also have instances where blank links are used for other JS purposes (so flexibility is important). I think those external website links should open in Mobile Safari rather than in the "app".
Hi, Sherri!
I've added the site to my iPhone's home screen. If I click the ArtsConnect title to return to the template list from the "app," it opens that link in Safari. Similarly, if I add the Template List to my home screen, and tap the "Home screen" link, it opens that in Safari instead of the app view. That's not how ESPN behaved -- Can you take a look?
Thanks!
Mark