micromax canvas hd lollipop update
I rewrite this tutorial from forum.xda-developers.com : The users of Micromax A116 Canvas Hd can now update their handsets to Android 5.0 Lo...
The Blog You Will Love To Revisit.
foreach binding which loops through the JSON data to emit a hierarchy of ul elements to act as the HTML markup for a menubar compatible with jQuery UI.We are no longer using NAnt in our build process, we switched entirely to MSBuild / CruiseControl.NET. And we don't view the ability to depend on the dominant operating system as a step back: it helps reduce the number of moving parts, the different configurations, different user setups.
#D 3.0 - Dropping NAnt Support: Why?
One of the major draws of MSBuild for me (on Windows platforms) is that it comes as part of .NET itself. That means that any Windows machine that is up-to-date with Windows Update will have MSBuild available.
Comparison of NAnt and MSBuild on StackOverflow.
NetTutsMSBuildJsand I've created it inside my NetTuts folder here: C:\NetTuts\MSBuildJs.

| Folder | Contents |
| css | Production release versions of jQuery UI CSS files. For this tutorial, we're using the smoothness theme. |
| debug | Various versions of the Default.aspx web form page for debugging purposes. |
| debug-js | Three folders: concat, min and src. |
| js | Production release versions of jQuery, jQuery UI and Knockout. |
| jsbuild | An XML build file with all the tasks needed for the JavaScript build and a copy of the YUI compressor. |
| json | The key JSON file menubar-data.json which has the data needed to build the menubar. Also the JSON files used to populate the page according to the user's menu choices. |

debug-js are disposable, generated automatically by the build process from whatever you've created in the src folder, so it's appropriate to exclude them from the project. Note, you can't exclude the debug folder from the project because it contains .NET web form pages that have code-behind files. If you exclude the folder, the web form pages throw errors saying that the classes defined in the code-behind files can't be found.
Web.config file. Within theconfiguration element add a system.webServer element like this:
1
2
3
4
5
| <system.webServer> <staticContent> <mimeMap fileExtension=".json" mimeType="application/json" /> </staticContent></system.webServer> |

A component diagram defines the composition of components and artifacts in the system.
IBM: Component Diagrams
js.buildfile won't work if the compressor jar file is not present. The project file and thejs.build file are, annoyingly, mutually dependent. If the js.build file is not present, the project will not load; js.build can't run alone, the tasks defined there are triggered by the AfterBuild event in the overall project build.renderMenuwhich is fired by the afterRender event in the Knockout template. renderMenu then simply makes a call to menubar to finally render the menubar with all the lovely jQuery UI shiny features.css where you'll find a folder with the name of your chosen theme. In my case, I've chosen smoothness. Open that folder and you should see the files you need:
css folder in the project. Come back to Visual Studio, click the refresh icon at the top of the Solution Explorer and the smoothness folder should appear in the css folder. You should include the folder in the project as well.jquery.ui.menubar.css file following this path: \jquery-ui-menubar\themes\base\jquery.ui.menubar.css. Copy that to the css folder of your project.js folder in your project.jquery.ui.menubar.js, downloaded from the Menubar branch of the jQuery UI project. Copy that to the debug-js\src folder in your project.Main.Master.
1
2
3
4
| <title></title><link rel="stylesheet" type="text/css" href="/css/smoothness/jquery-ui-1.9.2.custom.css"><link rel="stylesheet" type="text/css" href="/css/smoothness/jquery-ui-1.9.2.custom.min.css"><link rel="stylesheet" type="text/css" href="/css/jquery.ui.menubar.css"> |
ContentPlaceHolder just before the end of the body where each page will link to the relevant JavaScript files
1
| <asp:ContentPlaceHolder ID="JsScripts" runat="server"/> |
menubar-data.json in the json folder and populate it with the following JSON.
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
| { "nodes":[{ "text": "For Students", "nodes": [ { "text": "Listening Practice", "url":"listening-practice.json" }, { "text": "Grammar", "url":"grammar.json", "nodes": [ { "text": "Verb Forms", "url":"verb-forms.json", "nodes": [ { "text": "Verb Tense and Aspect", "url":"verb-tense-and-aspect.json" }, { "text": "Modal Auxiliary Verbs", "url":"modal-auxiliary-verbs.json" } ] }, { "text": "Verb Patterns", "url":"verb-patterns.json" }, { "text": "Noun phrases", "url":"noun-phrases.json" }, { "text": "Complex sentences", "url":"complex-sentences.json" } ] } ] }, { "text": "For Teachers", "nodes": [ { "text": "Teaching Materials", "url":"teaching-materials.json" }, { "text": "Tests and evaluation grids", "url":"tests-and-evaluation.json" }, { "text": "Media", "url":"media.json" } ] } ]} |
1
2
3
4
| { "header": "Grammar", "text": "A series of exercises helping you to improve your grammar."} |
Main.Master. There is no obvious way of minifying or improving on it for deployment so I want to re-use it with every version of the pages that link to the master page.ul elements) for the menubar, but not surprisingly the afterRender event associated with the foreach binding fires with every loop, not at the end of the whole rendering process. So, I needed to create an observableArray with only one ulelement, bind that to a Menu template which renders the outermost ul element, and nest the menubar template inside it. I can then handle that single foreach event with my function renderMenu, which calls the jQuery menubar constructor and renders the menubar in all its glory. I got a lot of help on this from this thread: nested-templates-with-knockoutjs-and-mvc-3-0.
1
2
3
| <script type="text/html" id="MenuTemplate"> <ul class="ui-widget-header" id="menu" data-bind="template: { name: 'MenuNodeTemplate', foreach: $data.root.nodes}"></ul></script> |
1
2
3
4
5
6
7
8
| <script id="MenuNodeTemplate" type="text/html"> <li data-bind="addData: $data.url"> <a data-bind="attr: {href: ('#' + $data.url)}"><span data-bind="text: $data.text"></span></a> <!-- ko if: $data.nodes --> <ul data-bind="template: { name: 'MenuNodeTemplate', foreach: $data.nodes}"></ul> <!-- /ko --> </li></script> |
div element which you bind to MenuTemplate:
1
| <div data-bind="template: {name: 'MenuTemplate' , foreach: masters, afterRender: renderMenu}"></div> |
select event. The handler has the signature event, ui. When you click a menubar item, the handler is passed the event object and a jQuery object representing the item. To get the text from the ui object, we can call the text method ( ui.item.text() ). But how do we get the url property from the underlying JSON? That is a little bit trickier and I explain it later when we look at the select function triggered by the click event on each sub-menu item and the custom binding addData attached to the li element in the Knockout template.div element where we can display the content retrieved from the JSON data files:
1
2
3
4
| <div id="show-result" class="ui-widget"> <h1 data-bind="text: header" class="ui-widget-header ui-corner-all"></h1> <div data-bind="html: text" class="ui-widget-content ui-corner-all"></div></div> |
Get our latest updates direct in your inbox.Just enter your wail address below....
Your privacy and email address are safe with us!