I don't know if this works in all cases for you but it doesn't for me. I'm trying to build a webapp and this problem is annoying as hell ... First I tried to open all links like this :
- $("a").bind("click", function(){
- if (this.href){
- location.href = this.href;
- return false;
- }
- });
But the problem is that I have a form page with a select tag and in JQM, the select is a link. So I tried your solution and it worked unless I did this :
- Open webapp
- Click on a "data-ajax=false" link
- Page opens properly so I click on the "back" button to go back home (ajax animation displayed)
- Now that I'm back on home screen I click on that same "data-ajax=false" link and the page is opened in Safari
What seems to be the problem is that I went on a page that is displayed by the ajax loader and it didn't reload the JS. If my JS is not reloaded, it can't be applied to links. That's the only explanation I found ... Does someone know how to fix this, maybe forcing that JS code to reload even if the page is loaded with ajax ? Anyway, thanks for everything :)