with some NKLog's inserted in the files in strategic places i am getting logs in the console from every file including the mian.html.
But i am not getting any thing logged from within the script tags in the body of the main.html.
This is where the main slider is configured, and this is obviously the root of the problem.
But why only in 4.3 and none of the other sims.?
main.html with logs commented:
- Code: Select all
<html>
<head>
<meta name = "viewport" content = "initial-scale = 1.0, user-scalable = no" />
<!-- Links to styles -->
<link href="jquery-ui.css" type="text/css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" media="screen" href="mainStyles.css" />
<!-- Links to javascript files -->
<script type="text/javascript" src="NKit.js"></script>
<script src="jquery.min.js"></script>
<script src="jquery-ui.min.js"></script>
<script src="jquery.ui.mouse.touch.js"></script>
<script src="parkiTimer.js"></script>
<script>
NKLog("i am in the head");// returned finexxxxxxxxxx
// Loading This Page Finished Function
function loaderFinished(){
NKStartPreloadingPage("settings.html"); // Preload settings.html
}
</script>
</head>
<body onload="loaderFinished();">
<script type="text/javascript">
NKLog("in the script tags of the ball slider function");// not returned xxxxxxxxxx
// Ball slider function, sets the ball and needle position
$(function() {
NKLog("in the ball slider function");// not returned xxxxxxxxxx
$( "#ballSlider" ).slider({
range: "max",
min: 0,
max: 24,
value: 0,
NKLog("ball settins have been read");// not returned xxxxxxxxxx
slide: function( event, userSlid ) {
// set the status tab colour depending on slider position
if(userSlid.value == 0){
flipTab("red");
}else{
flipTab("green");
}
NKLog("when slider is moved i appear");// not returned xxxxxxxxxx
var userSelectedSliderValue = userSlid.value * 10 + 39;
$("#needle").css("left",userSelectedSliderValue);
seconds = userSlid.value * 10 * 60;
userDefinedTime = seconds;
var clockOutput = secondsToString(seconds);
setTheClock(clockOutput);
setanewfinalalarmplayer();
}
});
setTheClock("0:00:00");
NKLog("clock should be set now");// not returned xxxxxxxxxx
});
</script>
<!-- Absolutely positioned container divs -->
<div id="studsMain"></div>
<div id="meter"></div>
<div id="needle"></div>
<div id="time"></div>
<div id="tabs"></div>
<div id="slot"></div>
<div id="startButton" class="rebutton"></div>
<div id="resetButton" class="rebutton"></div>
<div id="sliderGuard"></div>
<!-- html for main slider -->
<div class="ball">
<div id="ballSlider"></div>
</div>
<!-- link to settings page -->
<a href="#" onClick="NKMoveToPageAnimated('settings.html', 'FlipRight')">
<div id="switchScreensHome"></div>
</a>
<script>
// master start button
$("#startButton").click(function() {
NKLog("start button clicked");
masterstart();
});
// master reset button
$("#resetButton").click(function() {
mastereset();
});
// Aplication Quit Function
function OnApplicationQuit() {
// reset the icon badge to none
var parkiBadge = new NKApplication();
parkiBadge.setBadgeCount();
//end all audio players
endAudioPlayers();
}
// Aplication Pause Function
function OnApplicationPause() {
// if timer is running set the icon badge to 1
if(timerRunning){
var parkiBadge = new NKApplication();
parkiBadge.setBadgeCount(1);
}
else{
var parkiBadge = new NKApplication();
parkiBadge.setBadgeCount();
}
// get the time of app pause
var now = new Date();
PauseTimeStamp = Math.round(now.getTime() / 1000);
var settings = new NKSettings();
settings.setValueForKey(PauseTimeStamp, "pausedtime");
}
// Aplication Resume Function
function OnApplicationResume() {
// get the time of app resume
var now = new Date();
var ResumeTimeStamp = Math.round(now.getTime() / 1000);
var settings = new NKSettings();
var timepaused = settings.getValueForKey("pausedtime");
var appPausedTime = ResumeTimeStamp - timepaused;
appHasBeenResumed(appPausedTime);
}
$('#sliderGuard').click(function() {
$('#sliderGuard').append("<center>Press<br />Reset</center>");
setTimeout ( "$('#sliderGuard').html('')", 1000 );
});
NKLog("got to the end of the main html");// returned fine xxxx
</script>
</body>
</html>