iPhone 1.1.0 # BUG
problem between 1.0.1 and 1.1.0 of jQuery Mobile on iPhone (4)
by Meep
HTML
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css">
<!--
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
-->
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<div data-role="page" id="page1">
<div data-theme="a" data-role="header">
<h3>iPhone 1.1.0 # BUG</h3>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li><a rel="external" href="/link/to/someurl/">Shows URL on 1.0.1 but '#' on 1.1.0</a></li>
</ul>
</div>
</div>
JavaScript
$(document).ready(function() {
$('a').click(function(e) {
var $this = $(this);
var jsonUrl = $this.attr("href");
alert(jsonUrl);
return false;
});
});