Hi all...
I have an hybrid app im developing that calls a REST API backend that I have built and works fine....the problem i am having is that the listview/data connection works fine in Visual Studio but just hangs in the InBrowser dev environment.
its all really basic stuff that works fine in other parts of my app but just not here.
is there something that someone know that would allow a datasource.read to work or a view to work fine in VS but not in the online Appbuilder??
my view code...
<div data-role="view" data-title="Profiles" id="profiles" >
<ul data-role="listview" data-source="Profiles.data" data-template="profiles-template"></ul>
</div>
<script type="text/x-kendo-template" id="profiles-template">
<a href="views/scripts.html">
<div class="bookTitle">#: Pharmacy_ID #</div>
<div class="bookAuthor">#: Patient_ID #</div>
<div class="bookAuthor">#: Patient_ID_Name #</div>
</a>
</script>
my datasource code...
window.Profiles = {
data: new kendo.data.DataSource({
offlineStorage: "profiles-offline",
transport: {
read: {
url: RESTurl + "profiles/" + appkey,
type: "GET",
dataType: "jsonp"
}
},
schema: {
data: "profiles"
}
}),
back: function () {
app.navigate("#:back");
},
settings: function () {
app.navigate("views/settings.html");
}
};
advTHANKSance!
- mark