This question is locked. New answers and comments are not allowed.
I am working on a simple demo app to test being able to store each "view" in a separate .html file and then using the JQuery load() function to dynamically load them into the main index.html file at app startup. The intent is to separate the content of each view so that individual developers may work independently and views may be used across multiple projects. In general, this functionality seems to work but I am getting weird refresh / redraw issues with the Icenium Device Simulator. For example, if I update one of the view .html files and click save the simulator updates but CSS / Javascript is not applied correctly to the refreshed page (i.e. buttons are not styled and not clickable). The issue can be corrected on views (other than the main view loaded by default) by clicking the "reload" button on the simulator. I have yet to figure out how to fix the issue on the main default view. I have provided a code snippet below for reference.
index.html
-----------------
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="cordova.js"></script>
<script src="kendo/js/jquery.min.js"></script>
<script src="kendo/js/kendo.mobile.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="scripts/hello-world.js"></script>
<link href="kendo/styles/kendo.mobile.all.min.css" rel="stylesheet" />
<link href="styles/main.css" rel="stylesheet" />
</head>
<body>
<div data-role="view" id="tabstrip-home" data-title="Hello World!"><div id="welcomeContent"></div></div>
<div data-role="view" id="tabstrip-uiinteraction" data-title="UI Interaction"><div id="homeContent"></div></div>
<div data-role="view" id="tabstrip-geolocation" data-title="Geolocation"><div id="locationContent"></div></div>
<div data-role="layout" data-id="mobile-tabstrip">
<header data-role="header">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</header>
<div data-role="footer">
<div data-role="tabstrip">
<a href="#tabstrip-home" data-icon="home">Home</a>
<a href="#tabstrip-uiinteraction" data-icon="share">UI Interaction</a>
<a href="#tabstrip-geolocation" data-icon="globe">Geolocation</a>
</div>
</div>
</div>
<script>
$('#welcomeContent').load('views/WelcomeView.html');
$('#homeContent').load('views/HelloView.html');
$('#locationContent').load('views/LocationView.html');
var app = new kendo.mobile.Application(document.body, { transition: "slide", layout: "mobile-tabstrip" });
</script>
</body>
</html>
WelcomeView.html
----------------------
<h1>Welcome!</h1>
<p>
Icenium™ enables you to build cross-platform device applications regardless of your
development platform by combining the convenience of a local development toolset with the
power and flexibility of the cloud.
</p>
<div class="buttonArea">
<a id="startNewWorkoutButton" class="button" data-role="button" data-click="startNewWorkout" data-icon="refresh">Start New Workout</a>
</div>
HelloView.html
------------------------
<h1>Say Hello!</h1>
<div id='helloWorldInput'>
<label for="txtName" style="display: inline-block;">Enter your name:</label>
<input type="text" id="txtName" value="" />
</div>
<div id='helloWorldText' style="display:block;"></div>
<div class="buttonArea">
<a id="resetButton" data-role="button" data-click="sayHelloReset" data-icon="refresh">Reset</a>
<a id="submitButton" data-role="button" data-click="sayHello" data-icon="compose">Submit</a>
</div>
<br />
<div class="buttonArea">
<a id="testButton" data-role="button" data-click="sayHello" data-icon="compose">Test</a>
</div>
LocationView.html
-------------------------
<h1>My Location</h1>
<div id="geoLocationContainer">
<div id="myLocation">Unable to get location information. Please check your network connection and try again.</div>
<a id="refreshMap" data-role="button" data-click="getLocation" data-icon="refresh">Refresh Location</a>
<div id="map_canvas"></div>
</div>
index.html
-----------------
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="cordova.js"></script>
<script src="kendo/js/jquery.min.js"></script>
<script src="kendo/js/kendo.mobile.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="scripts/hello-world.js"></script>
<link href="kendo/styles/kendo.mobile.all.min.css" rel="stylesheet" />
<link href="styles/main.css" rel="stylesheet" />
</head>
<body>
<div data-role="view" id="tabstrip-home" data-title="Hello World!"><div id="welcomeContent"></div></div>
<div data-role="view" id="tabstrip-uiinteraction" data-title="UI Interaction"><div id="homeContent"></div></div>
<div data-role="view" id="tabstrip-geolocation" data-title="Geolocation"><div id="locationContent"></div></div>
<div data-role="layout" data-id="mobile-tabstrip">
<header data-role="header">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</header>
<div data-role="footer">
<div data-role="tabstrip">
<a href="#tabstrip-home" data-icon="home">Home</a>
<a href="#tabstrip-uiinteraction" data-icon="share">UI Interaction</a>
<a href="#tabstrip-geolocation" data-icon="globe">Geolocation</a>
</div>
</div>
</div>
<script>
$('#welcomeContent').load('views/WelcomeView.html');
$('#homeContent').load('views/HelloView.html');
$('#locationContent').load('views/LocationView.html');
var app = new kendo.mobile.Application(document.body, { transition: "slide", layout: "mobile-tabstrip" });
</script>
</body>
</html>
WelcomeView.html
----------------------
<h1>Welcome!</h1>
<p>
Icenium™ enables you to build cross-platform device applications regardless of your
development platform by combining the convenience of a local development toolset with the
power and flexibility of the cloud.
</p>
<div class="buttonArea">
<a id="startNewWorkoutButton" class="button" data-role="button" data-click="startNewWorkout" data-icon="refresh">Start New Workout</a>
</div>
HelloView.html
------------------------
<h1>Say Hello!</h1>
<div id='helloWorldInput'>
<label for="txtName" style="display: inline-block;">Enter your name:</label>
<input type="text" id="txtName" value="" />
</div>
<div id='helloWorldText' style="display:block;"></div>
<div class="buttonArea">
<a id="resetButton" data-role="button" data-click="sayHelloReset" data-icon="refresh">Reset</a>
<a id="submitButton" data-role="button" data-click="sayHello" data-icon="compose">Submit</a>
</div>
<br />
<div class="buttonArea">
<a id="testButton" data-role="button" data-click="sayHello" data-icon="compose">Test</a>
</div>
LocationView.html
-------------------------
<h1>My Location</h1>
<div id="geoLocationContainer">
<div id="myLocation">Unable to get location information. Please check your network connection and try again.</div>
<a id="refreshMap" data-role="button" data-click="getLocation" data-icon="refresh">Refresh Location</a>
<div id="map_canvas"></div>
</div>