JQM - A Thank You - and another question regarding external links and page flashing.
in jQuery Mobile
•
10 years ago
haga0054 and watusiware - thanks for the help yesterday in working through my external div loading issue. Your help is greatly appreciated and this forum is very informative and kicks a$$.
Now, I have another issue perhaps someone can shed some light on. I've managed to deal with the flashing page / transition issues in every area of my app, except for the following scenario. The first page, social.html, is simply a page with three links, one for a blog page with external data loading in, one for a twitter page with twitter data loading in and the last page is for rss feeds, again with rss feeds loading in. No matter how I've tried, I can not kill the flash once these links are clicked on to navigate to the new page. I am using jquery 1.7.1 and jam 1.0.1. I know I can upgrade, but that is causing a bunch of different issues and this is one of the last issues I need to solve prior to production launch.
social.html:
<!-- css -->
<link rel="stylesheet" href="assets/css/style3.css">
<script src="phonegap-1.4.0.js"></script>
<script src="jquery-1.7.1.min.js"></script>
<script src="load-json.js"></script>
<script src="today.js"></script>
<script type="application/javascript" src="iscroll.js"></script>
<script type="text/javascript">
var myScroll;
function loaded() {
setTimeout(function () {
myScroll = new iScroll('wrapper');
}, 100);
}
window.addEventListener('load', loaded, false);
</script>
<script src="jquery.mobile-1.0.1.min.js"></script>
</head>
<body>
<div data-role="page" id="social">
<!-- header -->
<div data-role="header" data-position="fixed" data-id="foo" class="page-header">
<div class="logo"></div>
</div>
<!--/header -->
<!-- main content -->
<div id="wrapper">
<div id="scroller">
<div data-role="content" >
<BR><BR><BR><BR>
<!-- navigation -->
<ul data-role="listview" data-inset="true" id="listview_social" style="margin-bottom:0px">
<li><a href="blog.html" data-prefetch data-transition="none" rel="external">TP Blog</a></li>
<li><a href="twitter.html" data-transition="none" rel="external">Twitter</a></li>
<li><a href="rss.html" data-prefetch data-transition="none" rel="external">Industry News</a></li>
</ul>
<div class="shadow2box"><img src="assets/images/shadow2.png" class="shadow2" alt="shadow"></div>
<!-- /navigation -->
1