This question is locked. New answers and comments are not allowed.
I'm learning the Photo Album tutorial and get stuck in lesson 4/7 step 4.
Here is my code:
<body> <div data-role="view" data-title="Photos" data-model="listview"> <div data-role="navbar"> <span data-role="view-title"></span> <button data-role="button" data-align="right" data-bind="click: addImage">Add</button> </div> <ul id="images"></ul> </div> <div data-role="layout" data-id="main-layout"> <div data-role="header">Header</div> <div data-role="footer">Footer</div> </div></body>In app.js file:
01.(function () {02. document.addEventListener("deviceready", function () {03. window.listview = kendo.observable({ 04. addImage: function() {05. $("#images").data("kendoMobileListView").prepend([ "images/08.jpg" ]);06. }07. });08. var app = new kendo.mobile.Application(document.body, { skin: "nova" });09. 10. });11.}());I'm try many times and still not working. what have i done wrong?
thanks.