topical media & game development
mobile-application-11-DerbyApp.iPhone-www-league.htm / htm
<!DOCTYPE HTML>
<html>
<head>
<title>PhoneGap</title>
<link rel=StyleSheet href="main.css" type="text/css" media=screen>
<script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>
<script type="text/javascript" src="js\jquery.min.js"></script>
<script type="text/javascript" src="js\helper.js"></script>
<script type="text/javascript" src="js\xui-2.0.0.min.js"></script>
<script type="text/javascript" src="js\Odata.js"></script>
<script type="text/javascript" src="js\DerbyService.js"></script>
<script type="application/javascript" src="js\iscroll.js"></script>
<meta name="viewport" content="width=device-width" />
</head>
<body id="body" onload="onLoad()">
<div id="main" ontouchmove="touchMove(event);">
<div class="header"><div class="headertext">Derby Data</div>
</div>
<div>
<div>
<!--<form>
<input id="txtSearch" type="search" placeholder="Search" class="searchbar"><button id="btnSubmit" type="button" class="gobtn">Go</button>
</form>-->
</div>
<div>
<span id="TeamName" />
</div>
<div id="wrapper">
<div id="scroller">
<ul>
</ul>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript" charset="utf-8">
var scrollView;
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
}
function onDeviceReady() {
setHeight();
//processContacts();
var league = getParameterByName("League");
jQuery('#TeamName').text(league);
getLeaguePlayers(league);
}
function getLeaguePlayers(league){
var service = new DerbyService();
service.searchLeaguePlayers(league, function(){
displayLeaguePlayersOnScreen(this.responseText, "scroller");
setTimeout(function () {
scrollView = new iScroll('wrapper', {desktopCompatibility:true});
}, 500);
});
console.log(jQuery("#body").html());
}
</script>
</html>
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.