With JQuery Mobile and MVC3 ASP.NET, on an iPad, created a home screen bookmark. The app pulls up with no problems, it does not show safari's bar. I login to my app and click a link, THE LINK OPENS SAFARI, NOT INTENDED.
My question is how to prevent the clicked link from opening outside of my bookmarked app? I've tried:
$(document).bind("pageinit", function () {
$("a").click(function (e) {
e.preventDefault();
$.mobile.changePage($(this).attr('href'));
});
});
The code above seems like it should work based on the docs from jquery mobile. When I click the link/button the link/button highlights but no error or page load.
Also, another question is why when I leave the app and come back the session dies?