Hi,
Is there a way to load a content of an external file onto a ScrollView?
Suppose I have a file named data.html with the following content:
data.html
<b>
This is a sample text in data.html
</b>
Then I have a kendoUI page like this:
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href="css/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="css/kendo.default.min.css" rel="stylesheet" type="text/css" />
<link href="css/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
<link href="css/TON/generic.css" rel="stylesheet" type="text/css" />
<script src="cordova-2.5.0.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/kendo.mobile.min.js"></script>
<script src="js/kendo.all.min.js"></script>
</head>
<body>
<!-- This is our Main Tab -->
<div data-role="view" id="pregnancyarticledetails" data-layout="default" data-title="Shocker" data-init="mobileListViewDataBindInitFlat">
<div id="article_content">
<div style="height:5px;"> </div>
<div id="pregnancy_detail" data-role="scroller" class="scroller-content"></div>
<div style="height:76px;"> </div>
</div>
</div>
<script>
$("#pregnancy_detail").load("data.html");
</script>
</body>
</html>
The ScrollView seems to be empty. Has anyone done something like this? Any ideas you can share please? Thanks!
Antonio
Is there a way to load a content of an external file onto a ScrollView?
Suppose I have a file named data.html with the following content:
data.html
<b>
This is a sample text in data.html
</b>
Then I have a kendoUI page like this:
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href="css/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="css/kendo.default.min.css" rel="stylesheet" type="text/css" />
<link href="css/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
<link href="css/TON/generic.css" rel="stylesheet" type="text/css" />
<script src="cordova-2.5.0.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/kendo.mobile.min.js"></script>
<script src="js/kendo.all.min.js"></script>
</head>
<body>
<!-- This is our Main Tab -->
<div data-role="view" id="pregnancyarticledetails" data-layout="default" data-title="Shocker" data-init="mobileListViewDataBindInitFlat">
<div id="article_content">
<div style="height:5px;"> </div>
<div id="pregnancy_detail" data-role="scroller" class="scroller-content"></div>
<div style="height:76px;"> </div>
</div>
</div>
<script>
$("#pregnancy_detail").load("data.html");
</script>
</body>
</html>
The ScrollView seems to be empty. Has anyone done something like this? Any ideas you can share please? Thanks!
Antonio