Hello Remi, and others, based on my previous posts I hope you can help. I have implimented the simple example of iscroll code within my code, and the scolling *is* sort of working, well, its working, but my formatting of course is now messed up...please see photo of what my page usually looks like, and what it looks like now:
As well, you can see in all photos, the FULL PAGE is NOT filled (I'm not yelling ha ha ha, I just wanted to empahsize). In the example code, you can see the same issue, is there a simple formatting fix for this, that I can apply along with what I have to do with iscroll 4?
Here is my code as well:
//Code Start//
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="icon" type="image/png" href="iui/iui-favicon.png">
<link rel="apple-touch-icon" href="iui/iui-logo-touch-icon.png" />
<link rel="stylesheet" href="iui/iui.css" type="text/css" />
<link rel="stylesheet" title="Default" href="iui/t/default/default-theme.css" type="text/css"/>
<link rel="stylesheet" href="css/iui-panel-list.css" type="text/css" />
<title>Northern Lights School Division - 2- Go.</title>
<script type="text/javascript" src="iscroll.js"></script>
<script type="application/x-javascript" src="iui/iui.js"></script>
<script type="text/javascript">
var myScroll;
function loaded() {
myScroll = new iScroll('wrapper');
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
/* * * * * * * *
*
* Use this for high compatibility (iDevice + Android)
*
*/
document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
/*
* * * * * * * */
/* * * * * * * *
*
* Use this for iDevice only
*
*/
//document.addEventListener('DOMContentLoaded', loaded, false);
/*
* * * * * * * */
/* * * * * * * *
*
* Use this if nothing else works
*
*/
//window.addEventListener('load', setTimeout(function () { loaded(); }, 200), false);
/*
* * * * * * * */
</script>
<style type="text/css">
.panel p.normalText { text-align: left; padding: 0 10px 0 10px; }
</style>
</head>
<body>
<div class="toolbar">
<h1 id="pageTitle">NLSD-2-GO</h1>
<a id="backButton" class="button" href="#"></a>
</div>
<div id="home" Title="NLSD-2-GO" class="panel" selected="true">
<div id="wrapper">
<div id="scroller">
<fieldset>
<center><img src="images/nlsd2gonewtrans.png">
</fieldset>
<fieldset>
</center><p class="normalText"><b>Welcome to the NLSD-2-GO Mobile App!</b></p>
</fieldset>
<h2>Main Menu</h2>
<ul>
<li><a href="#aboutnlsd">About NLSD. 69</a></li>
<li><a href="#nlsd69social">Northern Lights Social</a></li>
<li><a target="_blank" href="
http://199.216.204.43/nlsd2go/googcal.html">Divsion Calendar</a></li>
<li><a target="_blank" href="
http://www.nlsdbus.ca">Bussing Schedule</a></li>
</ul>
</div>
</div>
</div>
<div id="aboutnlsd" title="About" class="panel">
<fieldset>
</center><p class="normalText"><b>Northern light school division has a rich history BLA BLA BLA....</b></p>
</fieldset>
</div>
<div id="nlsd69social" title="Social" class="panel" class="iuiscroll">
<h2>Northern Lights Social</h2>
<ul>
<li><a href="#twitter">NLSD No. 69 Twitter</a></li>
<li><a target="_blank" href="
http://www.youtube.com/user/NLSDTV">NLSDTV - Youtube Channel</a></li>
<li><a target="_blank" href="
http://m.facebook.com/northernlights.sd">NLSD No. 69 - Facebook</a></li>
</ul>
</div>
<div id="twitter" title="NLSD Twitter" class="panel">
<!--I COMMENTED OUT THESE LINES BECAUSE I WASN'T SURE IF APPLE WAS GOING TO COMPLAIN ABOUT THEM.
<fieldset>
</center><p class="normalText"><b>Northern Lights School Division No. 69 - Twitter Feed</b></p>
</fieldset>
-->
<fieldset>
<a class="twitter-timeline" href="
https://twitter.com/NLSD69" data-widget-id="321362014301724673">Tweets by @NLSD69</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);
js.id=id;js.src="//
platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</fieldset>
</div>
<!--COMMENT: This is the NLSD. 69 Page load within iUI, I don't think apple will want me to load it within the app, so I am am loading the mobile NLSDTV page directly, even
though it loads nicely in in APP browser-->
<div id="nlsd69tv" title="NLSDTV-YOUTUBE" class="panel">
<fieldset>
</center><p class="normalText"><b>Northern Lights School Division No. 69 - NLSDTV Youtube Channel</b></p>
</fieldset>
<fieldset>
<script src="
http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=NLSDTV&synd=open&w=320&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
</fieldset>
</div>
<div id="footer"></div>
</body>
</html>
//Code End//
On Tuesday, April 9, 2013 12:43:16 PM UTC-6, microchipmatt wrote:
and Mashable, to get iscroll working in my iui app. I've done what I think need to be done, (Include all the .js files, reference the CSS files, added the div container, and the div class=wrapper/scroller, and it just doesn't work, I get really weird behavior, the page goes all white...Am I possible using an old iui-iscoll.js that is not compatible with 0.4..or am I using the wrong version of iscroll.js? If there is really new versions of the code that I should be using somewhere, can someone show me please....any help is much appreciated.