<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>debug mode......</title>
	<atom:link href="http://debugmode.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://debugmode.net</link>
	<description>debugging the learning</description>
	<lastBuildDate>Tue, 29 May 2012 00:02:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='debugmode.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/a4ee6598425293dab3d0c39b7600711a?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>debug mode......</title>
		<link>http://debugmode.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://debugmode.net/osd.xml" title="debug mode......" />
	<atom:link rel='hub' href='http://debugmode.net/?pushpress=hub'/>
		<item>
		<title>How to create WCF Data Service with $JSONP format</title>
		<link>http://debugmode.net/2012/05/29/how-to-create-wcf-data-service-with-jsonp-format/</link>
		<comments>http://debugmode.net/2012/05/29/how-to-create-wcf-data-service-with-jsonp-format/#comments</comments>
		<pubDate>Mon, 28 May 2012 23:59:33 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[WCF Data Service]]></category>
		<category><![CDATA[$JSONP]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10670</guid>
		<description><![CDATA[In this post we will create WCF Data Service takes $JSONP in query and returns JSON data as response. For example if we want to fetch data as JSON we can fetch as following, http://localhost:5157/WcfDataService1.svc/People?$format=json To start with, Let us create WCF Data Service on School Database. Open Visual Studio 2010 as administrator and create &#8230; <a href="http://debugmode.net/2012/05/29/how-to-create-wcf-data-service-with-jsonp-format/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10670&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<p><font size="3">In this post we will create WCF Data Service takes $JSONP in query and returns JSON data as response. For example if we want to fetch data as JSON we can fetch as following,</font></p>
<p><a href="http://localhost:5157/WcfDataService1.svc/People?$format=json"><font size="3">http://localhost:5157/WcfDataService1.svc/People?$format=json</font></a></p>
<p><font size="3">To start with, Let us create WCF Data Service on School Database. Open Visual Studio 2010 as administrator and create a Web Application. We will be hosting WCF Data Service in web application.</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image78.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb77.png?w=544&h=346" width="544" height="346" /></a></p>
<p><b><u><font size="4">Create DataModel</font> </u></b></p>
<p><font size="3">We will create DataModel using ADO.Net Entity framework. To add a DataModel we need to add ADO.Net Entity Model from Data Tab.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image79.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb78.png?w=567&h=361" width="567" height="361" /></a></p>
<p><font size="3">We want to create DataModel from database, so we will be choosing Generate from database option.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image80.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb79.png?w=532&h=473" width="532" height="473" /></a></p>
<p><font size="3">After this we need to choose Server name and database name. You can select appropriate authentication mechanism, in my case I am choosing Windows Authentication.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image81.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb80.png?w=451&h=659" width="451" height="659" /></a></p>
<p><font size="3">In last step, we need to select tables and views we want to keep as part of DataModel. In this case I am selecting all the tables.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image82.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb81.png?w=541&h=481" width="541" height="481" /></a></p>
<p><b><u><font size="4">Create WCF Data Service</font> </u></b></p>
<p><font size="3">To create WCF Data Service add new item selecting WCF Data Service project template from Web Tab</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image83.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb82.png?w=567&h=361" width="567" height="361" /></a></p>
<p><font size="3">Modify <b>WcfDataService.svc.cs</b> as following. We need to provide DataModel name. In this case DataModel is SchoolEntites, we created in previous step.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image84.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb83.png?w=624&h=187" width="624" height="187" /></a></p>
<p><font size="3">By this step we have created WCF Data Service on SchoolEntities DataModel. Now press F5 to host created WCF Data Service in Cassini server and query in the browser.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image85.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb84.png?w=507&h=495" width="507" height="495" /></a></p>
<p><font size="3">And we can query a particular set of entity as following,</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image86.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb85.png?w=467&h=406" width="467" height="406" /></a></p>
<p><b><u><font size="4">Enabling JSONP and URL Control Format</font> </u></b></p>
<p><a href="http://archive.msdn.microsoft.com/DataServicesJSONP"><font size="3">Read More Detail Here MSDN</font></a><font size="3"> <b><u></u></b></font></p>
<p><font size="3">If we want to fetch response in JSON format as following </font></p>
<p><a href="http://localhost:5157/WcfDataService1.svc/People?$format=json"><font size="3">http://localhost:5157/WcfDataService1.svc/People?$format=json</font></a></p>
<p><font size="3">We will be getting following exception,</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image87.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb86.png?w=624&h=144" width="624" height="144" /></a></p>
<p><font size="3">JSONP is used to fetch data from client side even though request need to be cross domain. To support <b>$JSONP</b>, we need to intercept the message before it gets dispatched. At intercept</font> </p>
<ul>
<li><font size="3">Read the request URL and if $JSONP is there remove it from the querystring. Because reading $JSONP in connection string WCF Data Service runtime will throw exception as shown above. </font></li>
<li><font size="3">And change Accept header to <b>application/json</b></font></li>
</ul>
<p><font size="3">To enable this you need to add following file <b>JSONPSupportBehavior.cs</b> . Download sample project from and file from </font><a href="http://archive.msdn.microsoft.com/DataServicesJSONP/Release/ProjectReleases.aspx?ReleaseId=4329"><font size="3">MSDN Code Gallery</font></a></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image88.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb87.png?w=435&h=349" width="435" height="349" /></a></p>
<p><font size="3">Extract downloaded ZIP file and select <b>JSONSupportBehavior.cs</b> . Right click on your project and add existing item. Choose file <b>JSONSupportBehavior.cs </b>and add to the project.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image89.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb88.png?w=501&h=342" width="501" height="342" /></a></p>
<p><font size="3">Then modify WcfDataService.svc.cs as following,</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image90.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb89.png?w=624&h=197" width="624" height="197" /></a></p>
<p><font size="3">We need to put JSONPSupportBehavior service attribute. Now go ahead and press F5 to run and fetch people in JSON format as following , </font></p>
<p><a href="http://localhost:5157/WcfDataService1.svc/People?$format=json"><font size="3">http://localhost:5157/WcfDataService1.svc/People?$format=json</font></a></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image91.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb90.png?w=578&h=330" width="578" height="330" /></a></p>
<p>In this way we can enable $JSONP format on WCF Data Service. I hope this post is useful. Thanks for reading </p>
<p>&#160;</p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/wcf-data-service/'>WCF Data Service</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10670/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10670/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10670/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10670&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/29/how-to-create-wcf-data-service-with-jsonp-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb77.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb78.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb79.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb80.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb81.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb82.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb83.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb84.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb85.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb86.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb87.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb88.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb89.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb90.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Learn jQuery Part 2: How to Select Elements or Nodes in jQuery</title>
		<link>http://debugmode.net/2012/05/20/learn-jquery-part-2-how-to-select-elements-or-nodes-in-jquery-2/</link>
		<comments>http://debugmode.net/2012/05/20/learn-jquery-part-2-how-to-select-elements-or-nodes-in-jquery-2/#comments</comments>
		<pubDate>Sun, 20 May 2012 11:24:32 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Select]]></category>
		<category><![CDATA[select elements]]></category>
		<category><![CDATA[select nodes]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10638</guid>
		<description><![CDATA[Learn jQuery Part1: Introduction to jQuery Objective In this part we will see different ways we can select element or node in jQuery. Before you start with this part, I strongly recommend you to read first part of this series. In jQuery an element or node can be selected in many ways. An element can &#8230; <a href="http://debugmode.net/2012/05/20/learn-jquery-part-2-how-to-select-elements-or-nodes-in-jquery-2/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10638&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<p><a href="http://debugmode.net/2012/05/10/learn-jquery-part1-introduction-to-jquery/"><font size="4">Learn jQuery Part1: Introduction to jQuery</font></a></p>
<p><b><u><font size="4">Objective </font></u></b></p>
<p><font size="3">In this part we will see different ways we can select element or node in jQuery. Before you start with this part, I strongly recommend you to read first part of this series.</font> </p>
<p><font size="3">In <b>jQuery</b> an element or node can be selected in many ways. An element can be selected</font> </p>
<ul>
<li><font size="3">By ID</font></li>
<li><font size="3">By Class name </font></li>
<li><font size="3">By Attribute or value of an attribute </font></li>
<li><font size="3">If we want to select all elements then that can be selected by using tag name</font>. </li>
</ul>
<p><font size="3">Before we go ahead and understand many ways of selecting an element or node, let us first understand what is an Element? In below HTML all the <b>div</b> and <b>P</b> can be called as nodes or elements. Any HTML elements on the HTML page can be termed as node. A node is called as Child Node if it is inside some other node. For example in below HTML snippet <b>P</b> inside <b>div</b> with id <b>hellodiv</b> is child node of this particular div.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image58.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb57.png?w=459&h=399" width="459" height="399" /></a></p>
<p><font size="3">Let us use above HTML and we need to select all the <b>div</b>. Since we need to select all the <b>div</b> then we can select that using <b>tag</b> name. All the div can be selected as following. In alert we will be getting number of div is on page.</font> </p>
<p>&#160;<a href="http://dhananjay25.files.wordpress.com/2012/05/image59.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb58.png?w=257&h=83" width="257" height="83" /></a></p>
<p><font size="3">In the same way if we want to select all the anchor tag &lt;a&gt;, all the page tag &lt;p&gt;, all the table tag &lt;table&gt; , we can do that as following</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image60.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb59.png?w=186&h=107" width="186" height="107" /></a></p>
<p><font size="3">We can select more than one tag together by separating them with comma. Like following in one statement we can select all the p, table and a elements on the page.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image61.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb60.png?w=233&h=48" width="233" height="48" /></a></p>
<p><font size="3">If we want to select a specific element then we can select that using its class name or id. Let us say we have HTML as following</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image62.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb61.png?w=452&h=196" width="452" height="196" /></a></p>
<p><font size="3">We want to select div with id is <b>hellodiv. </b>This can be selected as following</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image63.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb62.png?w=540&h=80" width="540" height="80" /></a>&#160;</p>
<p><font size="3">We will be getting following output in alert box.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image64.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb63.png?w=362&h=172" width="362" height="172" /></a></p>
<p><font size="3">Essentially, an element can be selected with ID by using <b>#</b> symbol. If we want to select elements with class name we can do that with the use of period operator.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image65.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb64.png?w=574&h=198" width="574" height="198" /></a></p>
<p><font size="3">Now we need to select div using class name. Selecting with class name is exactly the same as selecting by id. However there is performance issue in selecting using class name. Since jQuery iterate through all the DOM objects in memory whereas in case of selecting using ID, jQuery directly fetch the DOM object from memory.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image66.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb65.png?w=530&h=78" width="530" height="78" /></a></p>
<p><font size="3">And you will be getting expected output in alert as following,</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image67.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb66.png?w=362&h=172" width="362" height="172" /></a></p>
<p><font size="3">There is only difference of hash and period in selecting using id or class name.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image68.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb67.png?w=412&h=291" width="412" height="291" /></a></p>
<p><font size="3">There may be scenario when you want to select a specific type of tag on basis of class name. For example in below HTML all the elements having same class name ‘hellodiv’.</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image69.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb68.png?w=518&h=357" width="518" height="357" /></a></p>
<p><font size="3">If we want to select element P with class hellodiv then we will be selecting as following,</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image70.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb69.png?w=406&h=71" width="406" height="71" /></a></p>
<p><font size="3">Essentially we need to put class name with period after the tag name. </font></p>
<p><font size="3">Now let us take some other selection examples. For example you from following HTML you want to select all the hidden div.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image71.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb70.png?w=393&h=268" width="393" height="268" /></a></p>
<p><font size="3">We can select all the hidden div as following</font>,</p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image72.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb71.png?w=390&h=49" width="390" height="49" /></a></p>
<p><font size="3">If we want to check that whether a div is hidden or not, we can check that as following</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image73.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb72.png?w=615&h=82" width="615" height="82" /></a></p>
<p><font size="3">There may be scenario when we need to select child elements. For example consider following HTML</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image74.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb73.png?w=192&h=400" width="192" height="400" /></a></p>
<p><font size="3">Now if we want to print number of &lt;li&gt; elements. We can do that as following,</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image75.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb74.png?w=577&h=41" width="577" height="41" /></a></p>
<p><font size="3">Let us say you want to print first and last &lt;li&gt; elements, we can do that as following, </font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image76.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb75.png?w=420&h=64" width="420" height="64" /></a></p>
<p><font size="3">If we want to get nth element in the list, we can do that as following,</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image77.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb76.png?w=504&h=51" width="504" height="51" /></a></p>
<p><font size="3">If we want to select all the odd and even numbers we can do that as following,</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/clip_image001.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="clip_image001" border="0" alt="clip_image001" src="http://dhananjay25.files.wordpress.com/2012/05/clip_image001_thumb.png?w=572&h=89" width="572" height="89" /></a></p>
<p><font size="3">In this way we can select Elements or Nodes in different ways.</font> </p>
<p><b><u><font size="4">Conclusion</font></u></b></p>
<p><font size="3">In this part we focused on different ways of Element or Node selection in jQuery. I hope this post was useful. Thanks for reading.</font> </p>
<p>&#160;</p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/jquery/'>Jquery</a>, <a href='http://debugmode.net/category/web/'>Web</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10638/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10638/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10638/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10638&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/20/learn-jquery-part-2-how-to-select-elements-or-nodes-in-jquery-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb57.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb58.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb59.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb60.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb61.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb62.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb63.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb64.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb65.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb66.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb67.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb68.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb69.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb70.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb71.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb72.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb73.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb74.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb75.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb76.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/clip_image001_thumb.png" medium="image">
			<media:title type="html">clip_image001</media:title>
		</media:content>
	</item>
		<item>
		<title>Kendo UI ListView Control and OData in Windows Phone Application</title>
		<link>http://debugmode.net/2012/05/16/kendo-ui-listview-control-and-odata-in-windows-phone-application/</link>
		<comments>http://debugmode.net/2012/05/16/kendo-ui-listview-control-and-odata-in-windows-phone-application/#comments</comments>
		<pubDate>Wed, 16 May 2012 01:28:01 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[Telerik]]></category>
		<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[Cordova]]></category>
		<category><![CDATA[Kendo UI Mobile]]></category>
		<category><![CDATA[KendoUI]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10590</guid>
		<description><![CDATA[In this post we will see the way to work with Kendo UI Mobile ListView control and OData. Before you go ahead with this post, I recommend you to read Creating First Windows Phone Application using Kendo UI mobile and PhoneGap or Cordova Using ListView We can use a ListView control as following. You need &#8230; <a href="http://debugmode.net/2012/05/16/kendo-ui-listview-control-and-odata-in-windows-phone-application/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10590&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:medium;">In this post we will see the way to work with </span><a href="http://www.kendoui.com/"><span style="font-size:medium;">Kendo UI</span></a><span style="font-size:medium;"> Mobile <strong>ListView</strong> control and OData. Before you go ahead with this post, I recommend you to read </span><a href="http://debugmode.net/2012/05/12/creating-first-windows-phone-application-using-kendo-ui-mobile-and-phonegap-or-cordova/"><span style="font-size:medium;">Creating First Windows Phone Application using Kendo UI mobile and PhoneGap or Cordova</span></a></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:large;">Using ListView</span></span></strong></p>
<p><span style="font-size:medium;">We can use a <strong>ListView</strong> control as following. You need to explicitly set data-role for Ul HTML element as <strong>listview</strong></span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image50.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb49.png?w=339&h=137" alt="image" width="339" height="137" border="0" /></a></p>
<p><span style="font-size:medium;">Resultant listview would be rendered as following in Windows Phone emulator </span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image51.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb50.png?w=330&h=166" alt="image" width="330" height="166" border="0" /></a></p>
<p><span style="font-size:medium;">We can create Grouped ListView as following. We need to specify data-type as group.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image52.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb51.png?w=463&h=321" alt="image" width="463" height="321" border="0" /></a></p>
<p><span style="font-size:medium;">Resultant listview would be rendered as following in Windows Phone emulator</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image53.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb52.png?w=335&h=265" alt="image" width="335" height="265" border="0" /></a></p>
<p><span style="font-size:medium;">If we want to make ListView items as link we can do that as following .</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image54.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb53.png?w=624&h=270" alt="image" width="624" height="270" border="0" /></a></p>
<p><span style="font-size:medium;">Resultant listview would be rendered as following in Windows Phone emulator</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image55.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb54.png?w=341&h=269" alt="image" width="341" height="269" border="0" /></a></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:large;">Working with OData</span> </span></strong></p>
<p><span style="font-size:medium;">We are going to fetch movies details form OData feed of Netflix. OData feed if Netflix is available at</span></p>
<p><a href="http://odata.netflix.com/Catalog/Titles"><span style="font-size:medium;">http://odata.netflix.com/Catalog/Titles</span></a></p>
<p><span style="font-size:medium;">Very first we need to create datasource from OData feed. Datasource from OData feed can be created as following</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image56.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb55.png?w=624&h=259" alt="image" width="624" height="259" border="0" /></a></p>
<p><span style="font-size:medium;">While creating datasource , we are specifying URL of OData feed , type and pagesize need to be fetched from Netflix server. After datasource being created we need to set template and datasource of ListView as following.</span></p>
<p><pre class="brush: xml;">


$(&quot;#lst&quot;).kendoMobileListView(
{
template: &quot;&lt;strong&gt;${data.Name}&lt;br/&gt;&lt;a href= ${data.Url}&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br/&gt;&lt;img src=${data.BoxArt.MediumUrl} alt=a /&gt;&quot;,
dataSource: data
});
});

</pre></p>
<p><span style="font-size:medium;">In above code snippet we are setting datasource and template. Template can have HTML elements. Any variable data can be fetched as <strong>$datasourcename.fieldname</strong></span></p>
<p><span style="font-size:medium;">Complete code is as following. We are having two ListViews on the view to display. First ListView is fetching data from OData feed and second ListView is having hard coded data.</span></p>
<p><pre class="brush: xml;">


&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;&quot; /&gt;
&lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;

&lt;title&gt;Cordova WP7&lt;/title&gt;
&lt;!-- &lt;link rel=&quot;stylesheet&quot; href=&quot;master.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;/&gt;--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;styles/kendo.mobile.all.min.css&quot; type=&quot;text/css&quot;/&gt;
&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;cordova-1.7.0.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/kendo.mobile.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

$(document).ready(function () {

var data = new kendo.data.DataSource({
type:&quot;odata&quot;, // specifies data protocol
pageSize:10,  // limits result set
transport: {
read: &quot;http://odata.netflix.com/Catalog/Titles&quot;
}
});
$(&quot;#lst&quot;).kendoMobileListView(
{
template: &quot;&lt;strong&gt;${data.Name}&lt;br/&gt;&lt;a href= ${data.Url}&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br/&gt;&lt;img src=${data.BoxArt.MediumUrl} alt=a /&gt;&quot;,
dataSource: data
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;firstview&quot; data-role=&quot;view&quot; data-transition=&quot;slide&quot;&gt;
&lt;div data-role=&quot;header&quot;&gt;First View Header&lt;/div&gt;
Hello World First View &lt;br /&gt;
&lt;ul id=&quot;lst&quot; data-role=&quot;listview&quot; &gt; &lt;/ul&gt;
&lt;ul data-role=&quot;listview&quot; data-type=&quot;group&quot;&gt;
&lt;li&gt; Bloggers
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#debugmode&quot;&gt;debugmode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#sqlauthrity&quot;&gt;SqlAuthority&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt; MVP
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://twitter.com&quot;&gt;Jacob&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://twitter.com&quot;&gt;Mahesh&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div data-role=&quot;footer&quot;&gt;First View Footer&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var app = new new kendo.mobile.Application();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;


</pre></p>
<p><span style="font-size:medium;">In Windows Phone emulator we should be getting output as following</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image57.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb56.png?w=305&h=554" alt="image" width="305" height="554" border="0" /></a></p>
<p><span style="font-size:medium;">In this way we can work with Kendo UI ListView control. I hope this post is useful. Thanks for reading.</span></p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/phonegap/'>PhoneGap</a>, <a href='http://debugmode.net/category/telerik/'>Telerik</a>, <a href='http://debugmode.net/category/windows-phone-7/'>Windows Phone 7</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10590/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10590/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10590/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10590&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/16/kendo-ui-listview-control-and-odata-in-windows-phone-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb49.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb50.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb51.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb52.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb53.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb54.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb55.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb56.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating First Windows Phone Application using Kendo UI mobile and PhoneGap or Cordova</title>
		<link>http://debugmode.net/2012/05/12/creating-first-windows-phone-application-using-kendo-ui-mobile-and-phonegap-or-cordova/</link>
		<comments>http://debugmode.net/2012/05/12/creating-first-windows-phone-application-using-kendo-ui-mobile-and-phonegap-or-cordova/#comments</comments>
		<pubDate>Sat, 12 May 2012 09:03:43 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[Telerik]]></category>
		<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[Cordova]]></category>
		<category><![CDATA[Kendo UI Mobile]]></category>
		<category><![CDATA[Windows Phone application]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10568</guid>
		<description><![CDATA[In this post we will discuss the way we can harness power of Kendo UI in creating Windows Phone application. Before you go ahead along with this blog post please read “Hello World “Windows Phone Application using PhoneGap or Cordova to setup environment for develop Windows Phone application using Cordova. Once you are done with &#8230; <a href="http://debugmode.net/2012/05/12/creating-first-windows-phone-application-using-kendo-ui-mobile-and-phonegap-or-cordova/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10568&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:medium;">In this post we will discuss the way we can harness power of Kendo UI in creating Windows Phone application. Before you go ahead along with this blog post please read </span><a href="http://debugmode.net/2012/05/08/hello-world-windows-phone-application-using-phonegap-or-cordova/"><span style="font-size:medium;">“Hello World “Windows Phone Application using PhoneGap or Cordova</span></a><span style="font-size:medium;"> to setup environment for develop Windows Phone application using Cordova. Once you are done with steps of </span><a href="http://debugmode.net/2012/05/08/hello-world-windows-phone-application-using-phonegap-or-cordova/"><span style="font-size:medium;">“Hello World “Windows Phone Application using PhoneGap or Cordova</span></a><span style="font-size:medium;"> , You need to download Kendo UI mobile from </span><a href="http://www.kendoui.com/get-kendo-ui.aspx"><span style="font-size:medium;">here</span></a><span style="font-size:medium;">. After downloading you need to put <strong>JS, Styles files</strong> in the <strong>WWW</strong> folder. </span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image39.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb38.png?w=387&h=445" alt="image" width="387" height="445" border="0" /></a></p>
<p><span style="font-size:medium;">After copying Kendo UI files open <strong>index.html</strong> and modify CSS reference and include below JS file. Make sure you have commented default CSS reference of Cordova.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image40.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb39.png?w=624&h=75" alt="image" width="624" height="75" border="0" /></a></p>
<p><span style="font-size:medium;">Now we are all set to go ahead and modify the body of the index.html to work with Kendo UI . Let us make a view </span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image41.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb40.png?w=356&h=67" alt="image" width="356" height="67" border="0" /></a></p>
<p><span style="font-size:medium;">After making view, let us put header and footer in the view.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image42.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb41.png?w=538&h=161" alt="image" width="538" height="161" border="0" /></a></p>
<p><span style="font-size:medium;">Before running you need to put script before closing body tag</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image43.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb42.png?w=624&h=86" alt="image" width="624" height="86" border="0" /></a></p>
<p><span style="font-size:medium;">Complete code for Hello World will look like following,</span></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:large;">Index.html</span></span></strong></p>
<p><pre class="brush: xml;">

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;&quot; /&gt;
&lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;

&lt;title&gt;Cordova WP7&lt;/title&gt;
&lt;!-- &lt;link rel=&quot;stylesheet&quot; href=&quot;master.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;/&gt;--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;styles/kendo.mobile.all.min.css&quot; type=&quot;text/css&quot;/&gt;
&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;cordova-1.7.0.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/kendo.mobile.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

document.addEventListener(&quot;deviceready&quot;,onDeviceReady,false);

// once the device ready event fires, you can safely do your thing! -jm
function onDeviceReady()
{
//document.getElementById(&quot;welcomeMsg&quot;).innerHTML +=
&quot;This is my first cordova/PhoneGap Application&quot;
console.log(&quot;onDeviceReady. You should see this message in Visual Studio's output window.&quot;);
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div data-role=&quot;view&quot;&gt;
&lt;div data-role=&quot;header&quot;&gt;Header&lt;/div&gt;
Hello World
&lt;div data-role=&quot;footer&quot;&gt;Footer&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var app = new new kendo.mobile.Application();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

</pre></p>
<p><span style="font-size:medium;">When you run you should be getting following output on Windows Phone emulator.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image44.png"><img style="background-image:none;margin:5px;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb43.png?w=279&h=536" alt="image" width="279" height="536" border="0" /></a></p>
<p><span style="font-size:medium;">Mobile applications are having one HTML pages and multiple views on the same. We can navigate between the views. Let us say there are two views are following,</span></p>
<p><pre class="brush: xml;">

&lt;div id=&quot;firstview&quot; data-role=&quot;view&quot; data-transition=&quot;slide&quot;&gt;
&lt;div data-role=&quot;header&quot;&gt;First View Header&lt;/div&gt;
Hello World First View &lt;br /&gt;
&lt;a href=&quot;#secondview&quot; data-role=&quot;button&quot; style=&quot;background-color: green&quot;&gt;Go to Second View&lt;/a&gt;
&lt;div data-role=&quot;footer&quot;&gt;First View Footer&lt;/div&gt;
&lt;/div&gt;

</pre></p>
<p><span style="font-size:medium;">Points need explanation in above DIV is as following, </span></p>
<p><span style="font-size:medium;">Any div can be turned as VIEW id data-role is set to view. Data-transition is set to slide. There are many other values of data-slide as well.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image45.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb44.png?w=624&h=23" alt="image" width="624" height="23" border="0" /></a></p>
<p><span style="font-size:medium;">A view can contain header, footer and body. Header can be set as below</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image46.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb45.png?w=624&h=27" alt="image" width="624" height="27" border="0" /></a></p>
<p><span style="font-size:medium;">And a View Footer can be set as below,</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image47.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb46.png?w=624&h=35" alt="image" width="624" height="35" border="0" /></a></p>
<p><span style="font-size:medium;">On body of the view we set a button. On click event of the button we will go to Second View. We can convert anchor tag to mobile button by setting <strong>data-role</strong> to <strong>button</strong>. We can set background color of the button also. In href , we need to provide mobile view name appended with hash to navigate. On click event of button we will be navigated to mobile view with id <strong>secondview</strong>.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image48.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb47.png?w=605&h=126" alt="image" width="605" height="126" border="0" /></a></p>
<p><span style="font-size:medium;">Complete code for two views and navigation between views is as following,</span></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:large;">Index.html</span> </span></strong></p>
<p><pre class="brush: xml;">

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;&quot; /&gt;
&lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;

&lt;title&gt;Cordova WP7&lt;/title&gt;
&lt;!-- &lt;link rel=&quot;stylesheet&quot; href=&quot;master.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;/&gt;--&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;styles/kendo.mobile.all.min.css&quot; type=&quot;text/css&quot;/&gt;
&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;cordova-1.7.0.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/kendo.mobile.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

document.addEventListener(&quot;deviceready&quot;,onDeviceReady,false);

// once the device ready event fires, you can safely do your thing! -jm
function onDeviceReady()
{
//document.getElementById(&quot;welcomeMsg&quot;).innerHTML +=
&quot;This is my first cordova/PhoneGap Application&quot;
console.log(&quot;onDeviceReady. You should see this message in Visual Studio's output window.&quot;);
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;firstview&quot; data-role=&quot;view&quot; data-transition=&quot;slide&quot;&gt;
&lt;div data-role=&quot;header&quot;&gt;First View Header&lt;/div&gt;
Hello World First View &lt;br /&gt;
&lt;a href=&quot;#secondview&quot; data-role=&quot;button&quot;
style=&quot;background-color: green&quot;&gt;
Go to Second  View
&lt;/a&gt;
&lt;div data-role=&quot;footer&quot;&gt;First View Footer&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;secondview&quot; data-role=&quot;view&quot; data-transition=&quot;slide&quot;&gt;
&lt;div data-role=&quot;header&quot;&gt;Second View Header&lt;/div&gt;
Hello World Second View &lt;br /&gt;
&lt;a href=&quot;#firstview&quot; data-role=&quot;button&quot; style=&quot;background-color:red&quot;&gt;Go to First View&lt;/a&gt;
&lt;div data-role=&quot;footer&quot;&gt;Second View Footer&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var app = new new kendo.mobile.Application();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

</pre></p>
<p><span style="font-size:medium;">On running the application in Windows Phone emulator you should have the following output</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image49.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb48.png?w=624&h=182" alt="image" width="624" height="182" border="0" /></a></p>
<p><span style="font-size:medium;">In this way you can get started with Kendo UI and Cordova to create apps targetting multiple platforms. We will get into details of different Kendo UI mobile widgets in further post . Thanks for reading !</span></p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/phonegap/'>PhoneGap</a>, <a href='http://debugmode.net/category/telerik/'>Telerik</a>, <a href='http://debugmode.net/category/windows-phone-7/'>Windows Phone 7</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10568/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10568/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10568/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10568&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/12/creating-first-windows-phone-application-using-kendo-ui-mobile-and-phonegap-or-cordova/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb38.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb39.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb40.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb41.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb42.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb43.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb44.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb45.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb46.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb47.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb48.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Learn jQuery Part1: Introduction to jQuery</title>
		<link>http://debugmode.net/2012/05/10/learn-jquery-part1-introduction-to-jquery/</link>
		<comments>http://debugmode.net/2012/05/10/learn-jquery-part1-introduction-to-jquery/#comments</comments>
		<pubDate>Thu, 10 May 2012 16:37:36 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Learn jQuery]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10539</guid>
		<description><![CDATA[This is first part of Learn jQuery series. In this post we will see, What is jQuery How to start using jQuery Understanding document.ready function What is jQuery? jQuery is a succinct and concise way to write JavaScript. It is a single JavaScript file and it is having cross browser support. In simple terms we &#8230; <a href="http://debugmode.net/2012/05/10/learn-jquery-part1-introduction-to-jquery/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10539&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:medium;">This is first part of Learn jQuery series. In this post we will see,</span></p>
<ul>
<li><span style="font-size:medium;">What is jQuery</span></li>
<li><span style="font-size:medium;">How to start using jQuery </span></li>
<li><span style="font-size:medium;">Understanding <strong>document.ready</strong> function</span></li>
</ul>
<p><strong><span style="text-decoration:underline;"><span style="font-size:large;">What is jQuery?</span></span></strong></p>
<p><span style="font-size:medium;"><strong>jQuery</strong> is a succinct and concise way to write JavaScript. It is a single JavaScript file and it is having cross browser support.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image33.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb32.png?w=457&h=280" alt="image" width="457" height="280" border="0" /></a></p>
<p><span style="font-size:medium;">In simple terms we can say jQuery is simplified way of writing JavaScripts. It is a single file library with very smaller size. It helps in following</span></p>
<ul>
<li><span style="font-size:medium;">It eases the task of HTML elements traversing. Using jQuery elements can be traversed by tag name, id, and class name. </span></li>
<li><span style="font-size:medium;">It simplifies the task of nested HTML elements traversing. With very readable syntax nested child elements can be traversed. </span></li>
<li><span style="font-size:medium;">It helps in handling several events across browsers. </span></li>
<li><span style="font-size:medium;">It provides many plugins for animations, sorting, searching etc. </span></li>
<li><span style="font-size:medium;">It helps is making Service and Ajax call. </span></li>
<li><span style="font-size:medium;">It adheres to CSS 3.0 and helps to applying them with minimal code on the HTML elements.</span></li>
</ul>
<p><span style="font-size:medium;">There are many other advantages are features are available in form of plugins. As a developer jQuery makes task of writing scripts and creating web based applications simpler and easier.</span></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:large;">How to start using it?</span></span></strong></p>
<p><span style="font-size:medium;">To work with jQuery you need to download it and make a reference of the file on the HTML page. jQuery library can be downloaded </span><a href="http://jquery.com/"><span style="font-size:medium;">From official site of jQuery</span></a><span style="font-size:medium;">. There are two versions of files to download there.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image34.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb33.png?w=308&h=206" alt="image" width="308" height="206" border="0" /></a></p>
<p><span style="font-size:medium;"><strong>Production</strong> version is minified version and its size is 32 KB. Whereas <strong>Development</strong> version is uncompressed version and its size is 247KB. You need to be very careful while choosing the file because this file needs to be loaded at the client side. And larger file size may cause the performance loss. </span></p>
<p><span style="font-size:medium;">Locally downloaded <strong>jQuery</strong> file saved in Scripts folder can be referred as below.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image35.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb34.png?w=624&h=23" alt="image" width="624" height="23" border="0" /></a></p>
<p><span style="font-size:medium;">Other way of working with jQuery is refer the file from CDN of Microsoft or Google. In this case you do not need to download the file and add it locally. The other advantage of using file from CDN is, you will have always updated copy of the jQuery file. There is one disadvantage that your application will be dependent network always.</span></p>
<p><span style="font-size:medium;">Link for Microsoft CDN is as below,</span></p>
<p><a href="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js"><span style="font-size:medium;">http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js</span></a></p>
<p><span style="font-size:medium;">Minified version is also hosted at Microsoft CDN .You can use jQuery file from CDN as below</span>,</p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image36.png"><img style="background-image:none;margin:5px;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb35.png?w=624&h=47" alt="image" width="624" height="47" border="0" /></a></p>
<p><span style="font-size:medium;">Essentially with reference of jQuery file hosted at Microsoft CDN, your will have structure of HTML file as following</span>,</p>
<p><pre class="brush: xml;">

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Learning jQuery&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js&quot; &gt; &lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;HTML Goes here&lt;/h2&gt;
&lt;/body&gt;
&lt;/html&gt;

</pre></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:medium;">Understanding document.ready() function</span> </span></strong></p>
<p><span style="font-size:medium;">Document.ready function is get executed when all the elements in DOM gets loaded. After all the DOM elements completes loading <strong>document.ready()</strong> function gets executed. Usually you call all the scripts from this function.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image37.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb36.png?w=624&h=233" alt="image" width="624" height="233" border="0" /></a></p>
<p><span style="font-size:medium;">If you want to write some jQuery on click event of HTML element button then in that case, you may want to write code in some other function rather than ready function.</span></p>
<p><span style="font-size:medium;">In above example we are calling an anonymous function in the ready function. In some cases you may want to call a named function. You can call a named function as following. However in the majority places you will find anonymous function being called in the document.ready</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image38.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb37.png?w=624&h=128" alt="image" width="624" height="128" border="0" /></a></p>
<p><span style="font-size:medium;">A complete example can be given as following;</span></p>
<p><pre class="brush: xml;">

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Learning jQuery&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;/scripts/jquery-1.4.1.js&quot;&gt; &lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function () {
alert('Other scripts goes here');
alert('Hello jQuery');
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;HTML Goes here&lt;/h2&gt;
&lt;/body&gt;
&lt;/html&gt;

</pre></p>
<p><span style="font-size:medium;"><strong>$(document).ready()</strong> is one of the most important function and denotes all the HTML elements in DOM has been loaded. </span></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:medium;">Conclusion </span></span></strong></p>
<p><span style="font-size:medium;">In this post we got an introduction of jQuery. We also looked into usage and importance of ready function. I hope first post of the series was useful to you. Thanks for reading.</span></p>
<br />Filed under: <a href='http://debugmode.net/category/jquery/'>Jquery</a>, <a href='http://debugmode.net/category/web/'>Web</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10539/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10539/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10539/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10539/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10539/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10539/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10539/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10539/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10539/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10539/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10539/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10539/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10539/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10539/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10539&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/10/learn-jquery-part1-introduction-to-jquery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb32.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb33.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb34.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb35.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb36.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb37.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;Hello World &#8220;Windows Phone Application using PhoneGap or Cordova</title>
		<link>http://debugmode.net/2012/05/08/hello-world-windows-phone-application-using-phonegap-or-cordova/</link>
		<comments>http://debugmode.net/2012/05/08/hello-world-windows-phone-application-using-phonegap-or-cordova/#comments</comments>
		<pubDate>Tue, 08 May 2012 16:32:50 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[Cordova]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10520</guid>
		<description><![CDATA[In this post, we will setup environment for development of Windows Phone Application using PhoneGap . Start with Downloading PhoneGap from github . After downloading of file extract its content and open lib folder In the Lib folder open Window folder From Windows Folder copy zipped file CoroDovaStarter and copy to folder C:\Users\username\Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual &#8230; <a href="http://debugmode.net/2012/05/08/hello-world-windows-phone-application-using-phonegap-or-cordova/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10520&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:medium;">In this post, we will setup environment for development of <strong>Windows Phone Application</strong> using <strong>PhoneGap . </strong></span></p>
<p><span style="font-size:medium;">Start with </span><a href="https://github.com/phonegap/phonegap/zipball/1.7.0"><span style="font-size:medium;">Downloading PhoneGap from github</span></a><span style="font-size:medium;"> . After downloading of file extract its content and open <strong>lib</strong> folder</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image25.png"><img style="background-image:none;margin:5px;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb24.png?w=568&h=171" alt="image" width="568" height="171" border="0" /></a></p>
<p><span style="font-size:medium;">In the Lib folder open Window folder</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image26.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb25.png?w=521&h=222" alt="image" width="521" height="222" border="0" /></a></p>
<p><span style="font-size:medium;">From Windows Folder copy zipped file <strong>CoroDovaStarter </strong>and copy to folder </span></p>
<p><strong><span style="font-size:medium;">C:\Users\username\Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual C#\Silverlight for Windows Phone</span></strong></p>
<p><span style="font-size:medium;">Note: If you do not have Silverlight for Windows Phone folder creates it inside Visual C# folder. </span></p>
<p><span style="font-size:medium;">Now open visual studio and create new project, you should be having a new project template named <strong>CordovaStarter</strong></span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image27.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb26.png?w=624&h=389" alt="image" width="624" height="389" border="0" /></a></p>
<p><span style="font-size:medium;">If you want to create Windows Phone Application using PhoneGap and other web technologies then you need to select <strong>CorodovaStarter</strong> template. Let us start with selecting this template and creating a Hello World Application. After creation of project examine solution explorer, you will find a folder created named <strong>www</strong></span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image28.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb27.png?w=308&h=393" alt="image" width="308" height="393" border="0" /></a></p>
<p><span style="font-size:medium;"><strong>www</strong> folder contains HTML,CSS, and JavaScript file. <strong>Index.html</strong> file is the startup file gets rendered. Index.html is normal HTML file with a div tag, h1 tag , and references to javascript and css file. We need to write required HTML for our application in this file. Let us modify HTML here</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image29.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb28.png?w=314&h=155" alt="image" width="314" height="155" border="0" /></a></p>
<p><span style="font-size:medium;">All the scripts on the page get executed when device is ready. Readiness of device can be</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image30.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb29.png?w=624&h=38" alt="image" width="624" height="38" border="0" /></a></p>
<p><span style="font-size:medium;">All the scripts should be written in <strong>deviceready</strong> function</span>.</p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image31.png"><img style="background-image:none;margin:5px;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb30.png?w=624&h=100" alt="image" width="624" height="100" border="0" /></a></p>
<p><span style="font-size:medium;">If you run the application after making above changes, you should be getting below output.</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image32.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb31.png?w=363&h=252" alt="image" width="363" height="252" border="0" /></a></p>
<p><span style="font-size:medium;">Eventually <strong>index.html</strong> should be having codes as below, </span></p>
<p><pre class="brush: xml;">

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;&quot; /&gt;
&lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;

&lt;title&gt;Cordova WP7&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;master.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;/&gt;
&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;cordova-1.7.0.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

document.addEventListener(&quot;deviceready&quot;,onDeviceReady,false);

// once the device ready event fires, you can safely do your thing! -jm
function onDeviceReady()
{
document.getElementById(&quot;welcomeMsg&quot;).innerHTML +=
&quot;This is my first cordova/PhoneGap Application&quot;
console.log(&quot;onDeviceReady. You should see this message in Visual Studio's output window.&quot;);
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;DebugMode&lt;/h2&gt;
&lt;div id=&quot;welcomeMsg&quot;&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

</pre></p>
<p><span style="font-size:medium;">As of now we have set the environment to develop Windows Phone application using PhoneGap or Cordova. In further post we will explore other capabilities and features of PhoneGap or Cordova.</span></p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/phonegap/'>PhoneGap</a>, <a href='http://debugmode.net/category/windows-phone-7/'>Windows Phone 7</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10520/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10520&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/08/hello-world-windows-phone-application-using-phonegap-or-cordova/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb24.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb25.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb26.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb27.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb28.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb29.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb30.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb31.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up Android Environment for development using PhoneGap or Cordova</title>
		<link>http://debugmode.net/2012/05/07/develop-mobile-applications-using-phonegap-and-kendo-ui-part-1-of-many/</link>
		<comments>http://debugmode.net/2012/05/07/develop-mobile-applications-using-phonegap-and-kendo-ui-part-1-of-many/#comments</comments>
		<pubDate>Sun, 06 May 2012 18:49:18 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[Telerik]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[KendoUI]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10499</guid>
		<description><![CDATA[Objective I have started this series to help you in creating Windows Phone and Android applications using PhoneGap and Kendo UI. In this post I will be showing you setting environment on Windows machine for Android development. In last of the post we will create a Hello World Android application. Background PhoneGap and Kendo UI &#8230; <a href="http://debugmode.net/2012/05/07/develop-mobile-applications-using-phonegap-and-kendo-ui-part-1-of-many/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10499&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b><u><font size="4">Objective</font></u></b></p>
<p><font size="3">I have started this series to help you in creating <b>Windows Phone</b> and <b>Android</b> applications using <b>PhoneGap</b> and <b>Kendo UI.</b> In this post I will be showing you setting environment on Windows machine for Android development. In last of the post we will create a <b>Hello World</b> Android application.</font> </p>
<p><b><u><font size="4">Background </font></u></b></p>
<p><a href="http://phonegap.com/"><font size="3">PhoneGap</font></a><font size="3"> and </font><a href="http://www.kendoui.com/"><font size="3">Kendo UI</font></a><font size="3"> helps to create applications that can be deployed on any devicesApplications created using PhoneGap are having single code base and can be deployed to different types of devices. PhoneGap is HTML5 and CSS3.0 based open source framework. PhoneGap uses HTML5 and javaScript.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image3.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb2.png?w=444&h=283" width="444" height="283" /></a></p>
<ul>
<li><font size="3">PhoneGap uses Web standards like HTML5 and CSS 3 to create native mobile apps</font></li>
<li><font size="3">PhoneGap uses Javascript to write codes. </font></li>
<li><font size="3">Using PhoneGap native features of devices can be accessed. </font></li>
<li><font size="3">PhoneGap allows deploying applications to multiple platforms.</font></li>
<li><font size="3">PhoneGap supports 7 different platforms.</font> </li>
</ul>
<p><font size="3">In further posts we will do more theoretical discussions of PhoneGap and kendo UI. Let us get started with steps to setup Android development environment.</font> </p>
<p><b><u><font size="4">Step 1 : Download and Install JDK</font></u></b></p>
<p><font size="3">Very first you need to download and install Java Development Kit (JDK) from </font><a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html"><font size="3">here</font></a><font size="3"> . You will get windows installer. Click on Exe to install and follow the dialog boxes by clicking next buttons.</font> </p>
<p><b><u><font size="4">Step 2: Download and Install Eclipse</font></u></b></p>
<p><font size="3">Download Eclipse Classic from </font><a href="http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-SDK-3.7.2-win32-x86_64.zip"><font size="3">here</font></a><font size="3"> . After downloading and unzip the file. After unzipping click on eclipse application (Blue one). Once Eclipse is open you need to set the workspace.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image4.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb3.png?w=544&h=251" width="544" height="251" /></a></p>
<p><b><u><font size="4">Step 3: Download and Install ADT</font></u></b></p>
<p><font size="3">Now you need to download and install ADT. To do this click on <b>Help -&gt;Install New Software</b> from the menu.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image5.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb4.png?w=558&h=349" width="558" height="349" /></a></p>
<p><font size="3">You will be getting Available Software dialog box. Click on <b>Add</b> at right corner.</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image6.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb5.png?w=577&h=170" width="577" height="170" /></a></p>
<p><font size="3">You will get <b>Add Repository</b> dialog box. In that give name as ADT Plugin and Location as </font><a href="https://dl-ssl.google.com/android/eclipse/"><font size="3">https://dl-ssl.google.com/android/eclipse/</font></a></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image7.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb6.png?w=489&h=188" width="489" height="188" /></a></p>
<p><font size="3">Click on OK then check all the check boxes in Developer Tool check box and all the four check boxes in bottom. After selecting all the check boxes click on Next.</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image8.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb7.png?w=542&h=508" width="542" height="508" /></a></p>
<p><font size="3">You will get review dialog to review all the items to be installed. Review and click on Next.</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image9.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb8.png?w=526&h=493" width="526" height="493" /></a></p>
<p><font size="3">Accept term and conditions and click on finish.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image10.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb9.png?w=529&h=496" width="529" height="496" /></a></p>
<p><font size="3">After installation you need to click on Restart Now. While installation if you get nay message related to unsigned document then just click on Ok to continue</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image11.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb10.png?w=532&h=152" width="532" height="152" /></a></p>
<p><font size="3">After Restarting Eclipse you will get Welcome to Android Development dialog box. Here select Install new SDK and click on Next.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image12.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb11.png?w=547&h=409" width="547" height="409" /></a></p>
<p><font size="3">Select option Send usage Statistics to Google and click on Finish.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image13.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb12.png?w=553&h=413" width="553" height="413" /></a></p>
<p><font size="3">Open Eclipse and open Windows and Android SDK Manager. And Select Android version to install. I recommend you to install all the documents.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image14.png"><img style="background-image:none;border-bottom:0;border-left:0;margin:5px;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb13.png?w=569&h=407" width="569" height="407" /></a></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image15.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb14.png?w=624&h=312" width="624" height="312" /></a></p>
<p><font size="3">After installation you will get done message at bottom.</font></p>
<p><b><u><font size="4">Step 4: Create Android Virtual Device</font></u></b></p>
<p><font size="3">Now we are done with all installation and now we need to create Android Virtual Device [AVD]. To create AVD from Menu select Windows and then AVD Manager. You will get AVD manager dialog box. Click on New.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image16.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb15.png?w=624&h=446" width="624" height="446" /></a></p>
<p><font size="3">You will be getting below dialog box. Give some name like <b>My_avd</b> and select Target to <b>Android 2.1</b> and set other parameter as your requirement and click on Create AVD.</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image17.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb16.png?w=410&h=649" width="410" height="649" /></a></p>
<p><b><u><font size="4">Step 5: Create Hello World Project</font></u></b></p>
<p><font size="3">After creating AVD you are all set to create your first Android app. To create app click on <b>File-&gt;New-&gt;Project-&gt;Android-&gt;Android Project</b></font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image18.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb17.png?w=525&h=500" width="525" height="500" /></a></p>
<p><font size="3">Give name of the project and choose the location. In this case project will be created in default location.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image19.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb18.png?w=525&h=575" width="525" height="575" /></a></p>
<p><font size="3">Now choose the target type exactly the same as of AVD.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image20.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb19.png?w=525&h=575" width="525" height="575" /></a></p>
<p><font size="3">Next give namespace name. I am giving namespace as <b>Debugmode.Android.Firstapp</b> and click on Finish</font>. </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image21.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb20.png?w=525&h=575" width="525" height="575" /></a></p>
<p><font size="3">Now time to write some codes. Open <b>MyFirstActivity.java</b> file.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image22.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb21.png?w=277&h=301" width="277" height="301" /></a></p>
<p><font size="3">Next write below code. In code I am creating a TextView and setting the text.</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image23.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb22.png?w=399&h=237" width="399" height="237" /></a>&#160;</p>
<p><font size="3">From the menu click on <b>Run-&gt;Run</b> to run the application in Android emulator.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image24.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb23.png?w=624&h=565" width="624" height="565" /></a></p>
<p><font size="3">As of now we have setup the android environment. We have created Hello World application as well. In next part of this article we will download, install and setup <b>PhoneGap</b> and <b>KendoUI</b> to create native mobile applications to be deployed on multiple platforms.</font> </p>
<p>&#160;</p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/phonegap/'>PhoneGap</a>, <a href='http://debugmode.net/category/telerik/'>Telerik</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10499/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10499&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/07/develop-mobile-applications-using-phonegap-and-kendo-ui-part-1-of-many/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb14.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb16.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb17.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb18.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb19.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb20.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb21.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb22.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb23.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Kendo UI is coming to your city in India</title>
		<link>http://debugmode.net/2012/05/03/kendo-ui-is-coming-to-your-city-in-india/</link>
		<comments>http://debugmode.net/2012/05/03/kendo-ui-is-coming-to-your-city-in-india/#comments</comments>
		<pubDate>Thu, 03 May 2012 15:02:55 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Telerik]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[KendoUI]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10452</guid>
		<description><![CDATA[Recently Kendo UI got an opportunity to say NAMSTE to developers of Hyderabad and very soon it is coming to your city also. Kendo UI is HTML5 and JQuery based framework for building web and mobile applications. You can find more details about it here Details of other cities events are as below, City Date &#8230; <a href="http://debugmode.net/2012/05/03/kendo-ui-is-coming-to-your-city-in-india/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10452&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image2.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb1.png?w=304&h=112" width="304" height="112" /></a></p>
<p><font size="3">Recently </font><a href="http://www.kendoui.com/"><font size="3">Kendo UI</font></a><font size="3"> got an opportunity to say <b>NAMSTE</b> to developers of Hyderabad and very soon it is coming to your city also. </font></p>
<p><font size="3">Kendo UI is HTML5 and JQuery based framework for building web and mobile applications. You can find more details about it </font><a href="http://www.kendoui.com/"><font size="3">here</font></a></p>
<p><font size="3">Details of other cities events are as below,</font></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="213">
<p><b><u><font size="4">City </font></u></b></p>
</td>
<td valign="top" width="213">
<p><b><u><font size="4">Date</font></u></b></p>
</td>
<td valign="top" width="213">
<p><b><u><font size="4">Details</font></u> </b></p>
</td>
</tr>
<tr>
<td valign="top" width="213">
<p><font size="3">Trivandrum </font></p>
</td>
<td valign="top" width="213">
<p><font size="3">19<sup>th</sup> May 2012</font></p>
</td>
<td valign="top" width="213">
<p><a href="http://k-mug.org/events/devcon2012/"><font size="3">http://k-mug.org/events/devcon2012/</font></a></p>
</td>
</tr>
<tr>
<td valign="top" width="213">
<p><font size="3">Kolkata</font></p>
</td>
<td valign="top" width="213">
<p><font size="3">26<sup>th</sup> May 2012</font></p>
</td>
<td valign="top" width="213">
<p><a href="http://kolkatageeks.com/Events/DevCon2012.aspx"><font size="3">http://kolkatageeks.com/Events/DevCon2012.aspx</font></a></p>
</td>
</tr>
<tr>
<td valign="top" width="213">
<p><font size="3">Delhi </font></p>
</td>
<td valign="top" width="213">
<p><font size="3">14<sup>th</sup> July 2012 </font></p>
</td>
<td valign="top" width="213">
<p><a href="http://delhitechforum.com/"><font size="3">http://delhitechforum.com/</font></a></p>
</td>
</tr>
</tbody>
</table>
<p><font size="3">I recommend you to go and explore Kendo UI in your city. Have fun !</font></p>
<p>&#160;</p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/telerik/'>Telerik</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10452/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10452&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/03/kendo-ui-is-coming-to-your-city-in-india/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Presented in Mindcrcaker MVP Summit 2012</title>
		<link>http://debugmode.net/2012/05/02/presented-in-mindcrcaker-mvp-summit-2012/</link>
		<comments>http://debugmode.net/2012/05/02/presented-in-mindcrcaker-mvp-summit-2012/#comments</comments>
		<pubDate>Wed, 02 May 2012 15:54:24 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[Metro]]></category>
		<category><![CDATA[Session]]></category>
		<category><![CDATA[Windows 8]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10430</guid>
		<description><![CDATA[Second Mindcrcaker MVP summit held in Delhi from 6th April 2011 to 8th April 2011.Mindcracker MVP summit is yearly event hosted by http://www.c-sharpcorner.com/ to facilitate their MVP and one day regress technical sessions open for any aspired learner. Find more details about summit here Find summit Pics here Some of the highlight of this event &#8230; <a href="http://debugmode.net/2012/05/02/presented-in-mindcrcaker-mvp-summit-2012/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10430&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:medium;">Second <strong>Mindcrcaker MVP</strong> summit held in Delhi from 6<sup>th</sup> April 2011 to 8<sup>th</sup> April 2011.Mindcracker MVP summit is yearly event hosted by </span><a href="http://www.c-sharpcorner.com/"><span style="font-size:medium;">http://www.c-sharpcorner.com/</span></a><span style="font-size:medium;"> to facilitate their MVP and one day regress technical sessions open for any aspired learner.</span></p>
<p><a href="http://www.c-sharpcorner.com/uploadfile/mvpsummit2012/"><span style="font-size:medium;">Find more details about summit here</span></a></p>
<p><a href="http://www.c-sharpcorner.com/photos/"><span style="font-size:medium;">Find summit Pics here</span></a></p>
<p><a href="http://debugmode.net/2012/05/02/presented-in-mindcrcaker-mvp-summit-2012/mindcrackersummit1/" rel="attachment wp-att-10432"><img class="alignnone  wp-image-10432" title="mindcrackersummit1" src="http://dhananjay25.files.wordpress.com/2012/05/mindcrackersummit1.jpg?w=493&h=369" alt="" width="493" height="369" /></a></p>
<p><span style="font-size:medium;">Some of the highlight of this event was as following,</span></p>
<ul>
<li><span style="font-size:medium;">Mindcrcaker launched all new version of </span><a href="http://www.c-sharpcorner.com/"><span style="font-size:medium;">http://www.c-sharpcorner.com/</span></a></li>
<li><span style="font-size:medium;">Mindcracker reached 2.2 Million users. </span></li>
<li><span style="font-size:medium;">Mindcracker announced new Mindcracker User Groups </span></li>
<li><span style="font-size:medium;">Awarded Mindcracker MVP</span></li>
</ul>
<p><a href="http://www.c-sharpcorner.com/News/1418/dhananjay-kumar-wins-member-of-the-year-award.aspx"><span style="font-size:large;">I was awarded as Mindcracker Member of the Year in Mindcracker MVP Summit 2012</span></a></p>
<p><a href="http://debugmode.net/2012/05/02/presented-in-mindcrcaker-mvp-summit-2012/mcs2/" rel="attachment wp-att-10433"><img class="alignnone  wp-image-10433" title="mcs2" src="http://dhananjay25.files.wordpress.com/2012/05/mcs2.jpg?w=531&h=398" alt="" width="531" height="398" /></a></p>
<p><span style="font-size:medium;">In this event, I got opportunity to present on “<strong>Introducing Metro Application Development using HTML and JavaScript</strong>”. I tried to give my session more as demo oriented session. </span></p>
<p><span style="font-size:medium;">If you want PPT and demo source code from the session then send me a mail at </span><a href="mailto:dhananjay.25july@gmail.com"><span style="font-size:medium;">dhananjay.25july@gmail.com</span></a><span style="font-size:medium;"> with <strong>Mindcracker</strong> in subject line.</span></p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/announcement/'>Announcement</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10430/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10430&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/02/presented-in-mindcrcaker-mvp-summit-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/mindcrackersummit1.jpg" medium="image">
			<media:title type="html">mindcrackersummit1</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/mcs2.jpg" medium="image">
			<media:title type="html">mcs2</media:title>
		</media:content>
	</item>
		<item>
		<title>Monthly Report April 2012: Total Posts 4</title>
		<link>http://debugmode.net/2012/05/01/monthly-report-april-2012-total-posts-4/</link>
		<comments>http://debugmode.net/2012/05/01/monthly-report-april-2012-total-posts-4/#comments</comments>
		<pubDate>Tue, 01 May 2012 14:10:01 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Blog Reports]]></category>
		<category><![CDATA[debugmode]]></category>
		<category><![CDATA[Report]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10425</guid>
		<description><![CDATA[April was month of vacation for me hence fewer blog posts. This is an attempt to consolidate all work for a month on a single page. I hope you enjoyed reading my posts. I am sure you would have positive and constructive feedbacks. I encourage you to share your thought on FACEBOOK PAGE HERE or &#8230; <a href="http://debugmode.net/2012/05/01/monthly-report-april-2012-total-posts-4/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10425&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font color="#ff0000" size="4">April was month of vacation for me hence fewer blog posts.</font> </p>
<p><font size="3">This is an attempt to consolidate all work for a month on a single page. I hope you enjoyed reading my posts. I am sure you would have positive and constructive feedbacks.</font></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/05/image.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/05/image_thumb.png?w=400&h=300" width="400" height="300" /></a></p>
<p><font size="3">I encourage you to share your thought on </font><a href="http://www.facebook.com/DebugMode.Net"><b><font size="3">FACEBOOK PAGE HERE</font></b></a><font size="3"> or you can tweet and </font><a href="http://twitter.com/debug_mode"><b><font size="3">FOLLOW ME HERE</font></b></a><b></b></p>
<p><font size="3">Please find details of all the post as follows,</font></p>
<p><u><a href="http://debugmode.net/2012/04/05/how-to-fetch-selected-item-of-listview-in-html-based-windows-8-metro-application/"><font size="3">How to fetch selected item of ListView in HTML based Windows 8 Metro Application</font></a></u></p>
<p><u><a href="http://debugmode.net/2012/04/02/awarded-with-microsoft-mvp-award-3rd-time-in-row/"><font size="3">Awarded with Microsoft MVP Award: 3rd time in Row</font></a></u></p>
<p><u><a href="http://debugmode.net/2012/04/01/isolated-storage-helper-for-c-and-xaml-based-metro-application/"><font size="3">Isolated Storage Helper For C# and XAML based Metro Application</font></a></u></p>
<p><u><a href="http://debugmode.net/2012/04/02/monthly-report-march-2012-total-posts-15/"><font size="3">Monthly Report March 2012: Total Posts 15</font></a></u></p>
<p>&#160;</p>
<p><u><a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a></u></p>
<br />Filed under: <a href='http://debugmode.net/category/blog-reports/'>Blog Reports</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10425/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10425&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/05/01/monthly-report-april-2012-total-posts-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/05/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>How to fetch selected item of ListView in HTML based Windows 8 Metro Application</title>
		<link>http://debugmode.net/2012/04/05/how-to-fetch-selected-item-of-listview-in-html-based-windows-8-metro-application/</link>
		<comments>http://debugmode.net/2012/04/05/how-to-fetch-selected-item-of-listview-in-html-based-windows-8-metro-application/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 17:19:39 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Windows 8 App]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML based Metro application]]></category>
		<category><![CDATA[ListView]]></category>
		<category><![CDATA[Metro App]]></category>
		<category><![CDATA[SelectItem]]></category>
		<category><![CDATA[Windows 8]]></category>
		<category><![CDATA[Windows 8 app]]></category>
		<category><![CDATA[Windows 8 Metro Application]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10419</guid>
		<description><![CDATA[I had tough time get the value of selected item of a ListView. So in this post I am sharing the code snippet required to fetch selected item from the ListView. Read this article for ListView Binding with Grouping and Semantic Zoom in Windows 8 JavaScript Metro Application I strongly suggest you to read the &#8230; <a href="http://debugmode.net/2012/04/05/how-to-fetch-selected-item-of-listview-in-html-based-windows-8-metro-application/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10419&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:small;">I had tough time get the value of selected item of a ListView. So in this post I am sharing the code snippet required to fetch selected item from the ListView. </span></p>
<p><a href="http://debugmode.net/2012/03/21/listview-binding-with-grouping-and-semantic-zoom-in-windows-8-javascript-metro-application/"><span style="font-size:small;">Read this article for ListView Binding with Grouping and Semantic Zoom in Windows 8 JavaScript Metro Application</span></a></p>
<p><span style="font-size:small;">I strongly suggest you to read the above article for more detail on ListView. If you continue with above article and want to get the value of selected item you can do that as below,</span></p>
<p><pre class="brush: csharp;">

lstMovies = document.getElementById(&quot;movieListView&quot;).winControl;  
lstMovies.addEventListener(&quot;iteminvoked&quot;, function (e) {
                e.detail.itemPromise.then(function (invokedItem) {


                    var titleOfData = invokedItem.data.title;
                    var selecteplayerImg = invokedItem.data.picture;
                });
            }, false);


</pre></p>
<p><span style="font-size:small;">In above code snippet</span></p>
<ul>
<li><span style="font-size:small;">lstMovies is name of the ListView. </span></li>
<li><span style="font-size:small;">Iteminvoked is name of the event. This event gets fire when an item in the ListView is being selected.</span></li>
<li><span style="font-size:small;">There are two data bind to the List View item. They are Title and Picture. Any data can be fetched as following snippet. invokedItem is parameter of itemPromise.</span></li>
</ul>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image10.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb10.png?w=503&h=61" alt="image" width="503" height="61" border="0" /></a></p>
<p><span style="font-size:small;">Title and Picture are properties of the datasource bind to the ListView.</span></p>
<p><span style="font-size:small;">In this way you can fetch selected item from ListView in HTML based Windows 8 Metro Application. I hope this post is useful. Thanks for reading!</span></p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/windows-8-app/'>Windows 8 App</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10419/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10419/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10419/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10419&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/04/05/how-to-fetch-selected-item-of-listview-in-html-based-windows-8-metro-application/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Awarded with Microsoft MVP Award: 3rd time in Row</title>
		<link>http://debugmode.net/2012/04/02/awarded-with-microsoft-mvp-award-3rd-time-in-row/</link>
		<comments>http://debugmode.net/2012/04/02/awarded-with-microsoft-mvp-award-3rd-time-in-row/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 16:09:40 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Microsoft MVP]]></category>
		<category><![CDATA[MVP]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10413</guid>
		<description><![CDATA[&#160; To My Blog Readers, For me, “Microsoft MVP Award is not an Award rather it is a Responsibility “ I am happy to announce to all my readers that I have been awarded as Microsoft MVP 3rd Time in row. This time also I have been awarded in discipline Connected System Development (CSD). From &#8230; <a href="http://debugmode.net/2012/04/02/awarded-with-microsoft-mvp-award-3rd-time-in-row/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10413&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="4"><strong></strong></font>&nbsp; </p>
<p><font size="4"><strong>To My Blog Readers,</strong></font>  </p>
<p><font size="3">For me, “<b><font color="#ff0000">Microsoft MVP Award is not an Award rather it is a Responsibility</font> “</b></font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image8.png"><img title="image" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb8.png?w=421&h=170" width="421" height="170"/></a> </p>
<p><font size="3">I am happy to announce to all my readers that I have been awarded as <b>Microsoft MVP 3<sup>rd</sup> Time in row</b>. This time also I have been awarded in discipline <b>Connected System Development</b> (CSD). </font> </p>
<p><font size="3"><u>From 1<sup>st</sup> April 2011 to 31<sup>st</sup> March 2012</u></font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image9.png"><img title="image" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb9.png?w=336&h=75" width="336" height="75"/></a> </p>
<p><font size="3">I would take this opportunity to thank you my dear reader. I promise to serve and help you more in learning and developing throughout the coming years.</font>  </p>
<p><font size="3">To be in touch with me </font><a href="https://twitter.com/#!/debug_mode"><font size="3">FOLLOW ME ON TWITTER</font></a><font size="3"> or </font><a href="http://www.facebook.com/DebugMode.Net"><font size="3">CONNECT AT FACEBOOK PAGE</font></a> </p>
<p><font size="3">Any of your feedback is much appreciated.</font>  </p>
<p><font size="3">Thanks with Regards</font> </p>
<p><font color="#0000ff" size="3"><strong>Dhananjay Kumar</strong></font> </p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/announcement/'>Announcement</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10413/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10413&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/04/02/awarded-with-microsoft-mvp-award-3rd-time-in-row/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Monthly Report March 2012: Total Posts 15</title>
		<link>http://debugmode.net/2012/04/02/monthly-report-march-2012-total-posts-15/</link>
		<comments>http://debugmode.net/2012/04/02/monthly-report-march-2012-total-posts-15/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 15:13:38 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Blog Reports]]></category>
		<category><![CDATA[monthly report]]></category>
		<category><![CDATA[Report]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10407</guid>
		<description><![CDATA[This is an attempt to consolidate all work for a month on a single page. I hope you enjoyed reading my posts. I am sure you would have positive and constructive feedbacks. I encourage you to share your thought on FACEBOOK PAGE HERE or you can tweet and FOLLOW ME HERE Please find details of &#8230; <a href="http://debugmode.net/2012/04/02/monthly-report-march-2012-total-posts-15/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10407&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="2">This is an attempt to consolidate all work for a month on a single page. I hope you enjoyed reading my posts. I am sure you would have positive and constructive feedbacks.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image7.png"><img title="image" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb7.png?w=285&h=254" width="285" height="254"/></a> </p>
<p><font size="2">I encourage you to share your thought on </font><a href="http://www.facebook.com/DebugMode.Net"><b><font size="2">FACEBOOK PAGE HERE</font></b></a><font size="2"> or you can tweet and </font><a href="http://twitter.com/debug_mode"><b><font size="2">FOLLOW ME HERE</font></b></a><b></b> </p>
<p><font size="2">Please find details of all the post as follows,</font> </p>
<p>&nbsp; </p>
<p><u><a href="http://debugmode.net/2012/03/31/difference-between-application-created-using-metro-ui-guidelines-and-real-windows-8-metro-application/"><font size="3">Difference between Application created using Metro UI guidelines and Real Windows 8 Metro Application</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/29/lives-tiles-in-xaml-based-windows-8-metro-application/"><font size="3">Lives Tiles in XAML based Windows 8 Metro Application</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/27/presented-on-windows-8-at-microsoft-dreamspark-yatra-2012-indore/"><font size="3">Presented on Windows 8 at Microsoft DreamSpark Yatra 2012 Indore</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/22/some-important-points-from-design-for-windows-phone-developer-session-from-bijoy-singhal/"><font size="3">Some Important Points from Design for Windows Phone Developer session from Bijoy Singhal</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/21/some-important-points-from-sql-misconceptions-session-from-pinal-dave-and-vinod-kumar/"><font size="3">Some Important Points from “SQL Misconceptions” Session from Pinal Dave and Vinod Kumar</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/21/some-important-points-from-software-kaizen-kanban-explained-session-from-stephen-forte/"><font size="3">Some Important Points from &#8220;Software Kaizen: Kanban explained &#8221; session from Stephen Forte</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/21/listview-binding-with-grouping-and-semantic-zoom-in-windows-8-javascript-metro-application/"><font size="3">ListView Binding with Grouping and Semantic Zoom in Windows 8 JavaScript Metro Application</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/20/meet-telerik-at-teched-india-live-and-win-exciting-prizes/"><font size="3">Meet Telerik at TechEd India Live and win exciting prizes</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/08/setting-up-visual-studio11-beta-for-metro-application-creation/"><font size="3">Setting up Visual Studio11 Beta for Metro Application Creation</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/07/consuming-asp-net-web-api-service-using-httpclient-part2-of-many/"><font size="3">Consuming ASP.NET Web API Service using HttpClient: Part2 of Many</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/04/start-working-with-infragistics-netadvantage-for-wpf-part-1-of-many/"><font size="3">Start working with INFRAGISTICS NETADVANTAGE for WPF : Part 1 of Many</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/03/creating-first-http-service-using-asp-net-web-api-part1-of-many/"><font size="3">Creating First HTTP Service using ASP.NET Web API: Part1 of Many</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/03/monthly-report-february-2012-total-posts-19/"><font size="3">Monthly Report February 2012: Total Posts 19</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/03/working-with-telerik-kendo-ui-widgets-calendar/"><font size="3">Working with Telerik Kendo UI Widgets: Calendar</font></a></u> </p>
<p><u><a href="http://debugmode.net/2012/03/01/how-to-create-bootable-usb-for-windows-8-consumer-preview/"><font size="3">How to Create Bootable USB for Windows 8 Consumer Preview</font></a></u> </p>
<p>&nbsp; </p>
<p><u><a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a></u></p>
<br />Filed under: <a href='http://debugmode.net/category/blog-reports/'>Blog Reports</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10407/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10407&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/04/02/monthly-report-march-2012-total-posts-15/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Isolated Storage Helper For C# and XAML based Metro Application</title>
		<link>http://debugmode.net/2012/04/01/isolated-storage-helper-for-c-and-xaml-based-metro-application/</link>
		<comments>http://debugmode.net/2012/04/01/isolated-storage-helper-for-c-and-xaml-based-metro-application/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 12:26:30 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Windows 8 App]]></category>
		<category><![CDATA[isolated storage]]></category>
		<category><![CDATA[Metro]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Structured Data]]></category>
		<category><![CDATA[win8]]></category>
		<category><![CDATA[Windows 8]]></category>
		<category><![CDATA[Windows 8 Metro Application]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10395</guid>
		<description><![CDATA[This post and helper class is based on work of Jamie Thomson . I thank him lot for that. Why to use Metro Application Isolated Storage Helper? This helper class helps you to perform Read,Write and Delete of structured data in Isolated storage folders. How to use this? Download Metro Application Isolated Storage Helper from &#8230; <a href="http://debugmode.net/2012/04/01/isolated-storage-helper-for-c-and-xaml-based-metro-application/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10395&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:small;">This post and helper class is based on work of </span><a href="https://twitter.com/#!/jamiet"><span style="font-size:small;">Jamie Thomson </span></a><span style="font-size:small;">. I thank him  lot for that.</span></p>
<p><span style="font-size:small;">Why to use </span><a href="https://metrostoragehelper.codeplex.com/"><span style="font-size:small;">Metro Application Isolated Storage Helper</span></a><span style="font-size:small;">?</span></p>
<p><span style="font-size:small;">This helper class helps you to perform Read,Write and Delete of structured data in Isolated storage folders.</span></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:medium;">How to use this?</span></span></strong></p>
<p><a href="https://metrostoragehelper.codeplex.com/"><span style="font-size:small;">Download Metro Application Isolated Storage Helper from here</span></a></p>
<ul>
<li><span style="font-size:small;">Download XAML </span><a href="https://metrostoragehelper.codeplex.com/"><span style="font-size:small;">Metro Application Isolated Storage Helper from here </span></a><strong></strong></li>
<li><span style="font-size:small;">Add reference of <strong>XAMLMetroAppIsolatedStorageHelper</strong><strong>.dll </strong></span></li>
<li><span style="font-size:small;">Add Namespace using XAMLMetroAppIsolatedStorageHelper;</span></li>
</ul>
<p><span style="font-size:small;">You have a class Student</span></p>
<p><pre class="brush: csharp;">


public class Student
    {
        public string Name { get; set; }
        public int RollNumber { get; set; }
    }


</pre></p>
<p><span style="font-size:small;">You want to save object of Student then you can save it in Local Folder of isolated storage as below</span></p>
<p><pre class="brush: csharp;">

Student objStudent = new Student { Name = &quot;DJ &quot;, RollNumber = 1 };
            var objectStorageHelper = new StorageHelper&lt;Student&gt;(StorageType.Local);            
            objectStorageHelper.SaveASync(objStudent,&quot;abc&quot;);



</pre></p>
<p><span style="font-size:small;">And you can read back Student from isolated storage as below</span></p>
<p><pre class="brush: csharp;">


public async void ReadData()
        {            
            var objectStorageHelper = new StorageHelper&lt;Student&gt;(StorageType.Local);           
            Student objStudent = await objectStorageHelper.LoadASync(&quot;abc&quot;);
            
        }


</pre></p>
<p><span style="font-size:small;"><strong>Abc</strong> is name of the file. If you want to store <strong>List&lt;Student&gt;</strong> then you can do that as following, </span></p>
<p><pre class="brush: csharp;">


List&lt;Student&gt; lstStudent = new List&lt;Student&gt;()
                                        {new Student { Name = &quot;DJ &quot;, RollNumber = 1 },
                                         new Student { Name = &quot;debugmode&quot;, RollNumber = 2 }
                                        };

            var objectStorageHelper = new StorageHelper&lt;List&lt;Student&gt;&gt;(StorageType.Local);
            objectStorageHelper.SaveASync(lstStudent, &quot;abc&quot;);



</pre></p>
<p><span style="font-size:small;">You can read List&lt;Student&gt; from local folder of isolated storage as following</span></p>
<p><pre class="brush: csharp;">


public async void ReadData()
        {            
            var objectStorageHelper = new StorageHelper&lt;List&lt;Student&gt;&gt;(StorageType.Local);           
            List&lt;Student&gt; lstStudent = await objectStorageHelper.LoadASync(&quot;abc&quot;);
            foreach (var r in lstStudent)
            {
                string n = r.Name;
            }
        }




</pre></p>
<p><strong><span style="text-decoration:underline;"><span style="font-size:medium;">Background</span></span></strong></p>
<p><span style="font-size:small;">I was working with <strong>storing</strong> and <strong>retrieving</strong> structured data in Isolated Storage. While Binging I came across nicely written </span><a href="http://winrtstoragehelper.codeplex.com/"><span style="font-size:small;">Generic Object Storage Helper for WinRT </span></a><span style="font-size:small;">. This is written by </span><a href="https://twitter.com/#!/jamiet"><span style="font-size:small;">Jamie Thomson </span></a><span style="font-size:small;">. When I tried using this utility I came across an exception. I tried to store object of Student as following.</span></p>
<p><pre class="brush: csharp;">

private void btnSaveData_Click_1(object sender, RoutedEventArgs e)
        {
            Student objStudent = new Student { Name = &quot;Hary &quot;, RollNumber = 1 };
            var objectStorageHelper = new ObjectStorageHelper&lt;Student&gt;(StorageType.Local);            
            objectStorageHelper.SaveASync(objStudent);
        }

</pre></p>
<p><span style="font-size:small;">But while running the program I came across exception as below,</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb.png?w=624&h=318" alt="image" width="624" height="318" border="0" /></a></p>
<p><span style="font-size:small;">After inspecting I found that library is written in Developer Preview and few API has been changed in Consumer Preview. Thankfully </span><a href="https://twitter.com/#!/jamiet"><span style="font-size:small;">Jamie Thomson </span></a><span style="font-size:small;">has put the source code on the CodePlex also. A big thank to him for the same. Rather than adding DLL and working with API, I copied and pasted code in my program and started to debug that. </span></p>
<p><span style="font-size:small;">First changes in API from DP to CP was that there were no <strong>TryMoveToRecycleBin </strong>in <strong>StorageDeleteOption </strong>enum</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image1.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb1.png?w=624&h=51" alt="image" width="624" height="51" border="0" /></a></p>
<p><span style="font-size:small;">Now StorageDeleteOption enum contains only two values as below,</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image2.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb2.png?w=354&h=139" alt="image" width="354" height="139" border="0" /></a></p>
<p><span style="font-size:small;">So I replaced above line of code as below,</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image3.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb3.png?w=624&h=51" alt="image" width="624" height="51" border="0" /></a></p>
<p><span style="font-size:small;">The Second changes from DP to CP I found was removal of <strong>OpenWrite</strong> and <strong>OpenRead</strong> method from <strong>IRandomAcccessStream</strong> interface</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image4.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb4.png?w=348&h=29" alt="image" width="348" height="29" border="0" /></a></p>
<p><span style="font-size:small;">Where <strong>readStream</strong> is defined as below,</span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image5.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb5.png?w=386&h=25" alt="image" width="386" height="25" border="0" /></a></p>
<p><span style="font-size:small;">And OpenWrite has been replaced with <strong>AsStreamForWrite</strong></span></p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/04/image6.png"><img style="background-image:none;padding-top:0;padding-left:0;display:inline;padding-right:0;border:0;" title="image" src="http://dhananjay25.files.wordpress.com/2012/04/image_thumb6.png?w=351&h=22" alt="image" width="351" height="22" border="0" /></a></p>
<p><span style="font-size:small;">I have modified code to explicitly take filename as well. After these changes have been done Code was ready to be used in Consumer Preview. Updated helper class code is as following,</span></p>
<p>&nbsp;<br />
<pre class="brush: csharp;">


     public enum StorageType
    {
        Roaming, Local, Temporary
    }

    public class ObjectStorageHelper&lt;T&gt;
    {
        private ApplicationData appData = Windows.Storage.ApplicationData.Current;
        private XmlSerializer serializer;
        private StorageType storageType;

        
        public ObjectStorageHelper(StorageType StorageType)
        {
            serializer = new XmlSerializer(typeof(T));
            storageType = StorageType;
        }

        public async void DeleteASync(string FileName)
        {
            FileName = FileName + &quot;.xml&quot;;
            try
            {
                StorageFolder folder = GetFolder(storageType);

                var file = await GetFileIfExistsAsync(folder, FileName);
                if (file != null)
                {
                    await file.DeleteAsync(StorageDeleteOption.PermanentDelete);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }

        public async void SaveASync(T Obj,string FileName)
        {

            FileName = FileName + &quot;.xml&quot;;
            try
            {
                if (Obj != null)
                {
                    StorageFile file = null;
                    StorageFolder folder = GetFolder(storageType);
                    file = await folder.CreateFileAsync(FileName, CreationCollisionOption.ReplaceExisting);

                    IRandomAccessStream writeStream = await file.OpenAsync(FileAccessMode.ReadWrite);
                    Stream outStream = Task.Run(() =&gt; writeStream.AsStreamForWrite()).Result;
                    serializer.Serialize(outStream, Obj);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
        public async Task&lt;T&gt; LoadASync(string FileName)
        {
            FileName = FileName + &quot;.xml&quot;;
            try
            {
                StorageFile file = null;
                StorageFolder folder = GetFolder(storageType);
                file = await folder.GetFileAsync(FileName);
                IRandomAccessStream readStream = await file.OpenAsync(FileAccessMode.Read);
                Stream inStream = Task.Run(() =&gt; readStream.AsStreamForRead()).Result;
                return (T)serializer.Deserialize(inStream);
            }
            catch (FileNotFoundException)
            {
                //file not existing is perfectly valid so simply return the default 
                return default(T);
                //throw;
            }
            catch (Exception)
                 {
                //Unable to load contents of file
                throw;
            }
        }

        private StorageFolder GetFolder(StorageType storageType)
        {
            StorageFolder folder;
            switch (storageType)
            {
                case StorageType.Roaming:
                    folder = appData.RoamingFolder;
                    break;
                case StorageType.Local:
                    folder = appData.LocalFolder;
                    break;
                case StorageType.Temporary:
                    folder = appData.TemporaryFolder;
                    break;
                default:
                    throw new Exception(String.Format(&quot;Unknown StorageType: {0}&quot;, storageType));
            }
            return folder;
        }

        private async Task&lt;StorageFile&gt; GetFileIfExistsAsync(StorageFolder folder, string fileName)
        {
            try
            {
                return await folder.GetFileAsync(fileName);

            }
            catch
            {
                return null;
            }
 }
    }



</pre></p>
<p>In this way you can work with structured data in XAML based Metro Application for Windows 8. I hope this post is useful. Thanks for reading.</p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/windows-8-app/'>Windows 8 App</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10395/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10395&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/04/01/isolated-storage-helper-for-c-and-xaml-based-metro-application/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/04/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between Application created using Metro UI guidelines and Real Windows 8 Metro Application</title>
		<link>http://debugmode.net/2012/03/31/difference-between-application-created-using-metro-ui-guidelines-and-real-windows-8-metro-application/</link>
		<comments>http://debugmode.net/2012/03/31/difference-between-application-created-using-metro-ui-guidelines-and-real-windows-8-metro-application/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 15:01:51 +0000</pubDate>
		<dc:creator>Dhananjay Kumar</dc:creator>
				<category><![CDATA[Windows 8 App]]></category>
		<category><![CDATA[AppContainer]]></category>
		<category><![CDATA[Metro App]]></category>
		<category><![CDATA[Metro Application]]></category>
		<category><![CDATA[Windows8]]></category>
		<category><![CDATA[winRT]]></category>

		<guid isPermaLink="false">https://dhananjay25.wordpress.com/?p=10374</guid>
		<description><![CDATA[Windows 8 Metro Application runs in AppContainer, whereas any application (web or desktop) created with the Metro UI design guidelines does not run on AppContainer. They may be running in browser or directly as exe on System32 under the logged in user credential. I have been seen people are bit confused in between “An Application &#8230; <a href="http://debugmode.net/2012/03/31/difference-between-application-created-using-metro-ui-guidelines-and-real-windows-8-metro-application/">Continue reading <span class="meta-nav">&#187;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10374&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font size="2">Windows 8 Metro Application runs in <b>AppContainer, </b>whereas any application (web or desktop) created with the Metro UI design guidelines does not run on <b>AppContainer</b>. They may be running in browser or directly as exe on System32 under the logged in user credential. </font> </p>
<p><font size="2">I have been seen people are bit confused in between “<b>An Application Designed with UI Guidelines of Metro</b> “and in “<b>METRO APPLICATION</b> “itself. To make my point more clear let us visit </font><a href="http://india.msteched.com/"><font size="2">this site</font></a><font size="2">.</font>  </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/03/image40.png"><img title="image" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/03/image_thumb40.png?w=511&h=354" width="511" height="354"/></a> </p>
<p><font size="2">If you see this TechED India site is beautifully designed and adhering to Metro UI design guidelines. Although it is following all the UI guidelines of Metro, it cannot be called as <b>METRO APP. </b>Then next question you may ask that what is a <b>Metro App then</b>?</font> </p>
<p><font size="3"></font><font size="2">Let us create a simple <b>Hello World</b> Metro Application. I am creating Hello World Metro Application using HTML and JavaScript.</font>  </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/03/image41.png"><img title="image" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/03/image_thumb41.png?w=296&h=133" width="296" height="133"/></a> </p>
<p><font size="2">There is nothing fancy about above application but a Hello World Text in H1 tag. </font> </p>
<p><a href="http://debugmode.net/2012/03/08/setting-up-visual-studio11-beta-for-metro-application-creation/"><font size="2">New to Metro Application Development? Read here </font></a> </p>
<p><font size="3"></font><font size="2">Hit F5 to run the application. While application is running open Task Manager. To open Task Manger press <b>Ctr+Alt+Del.</b> In Task Manger you can see your application is listed in the Application tab.</font>  </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/03/image42.png"><img title="image" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="image" src="http://dhananjay25.files.wordpress.com/2012/03/image_thumb42.png?w=624&h=333" width="624" height="333"/></a> </p>
<p><font size="2">Click on the <b>Details</b> tab and you can see a program called <b>WMAHost.exe</b> is running. <b>Microsoft WMA Host </b>is responsible to run Metro Application on Windows 8 Machine.</font>  </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/03/clip_image00112.png"><img title="clip_image001" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="clip_image001" src="http://dhananjay25.files.wordpress.com/2012/03/clip_image001_thumb8.png?w=646&h=146" width="646" height="146"/></a> </p>
<p><font size="2">What point I am trying to make here is that when you run a website adhering to Metro UI guidelines is run through a browser on your Windows 8 machine. Whereas Windows 8 Metro Application runs by a program WMAHost.exe. This program runs in sandbox rather than user login to the Windows 8 machine. To understand it more download and install <b>ProcessExplorer.exe. </b></font> </p>
<p><font size="2">Open Process Explorer and in the <b>Integrity</b> tab you can see Windows 8 Metro Application run in App Container.</font> </p>
<p><a href="http://dhananjay25.files.wordpress.com/2012/03/clip_image0033.jpg"><img title="clip_image003" style="border-top:0;border-right:0;background-image:none;border-bottom:0;padding-top:0;padding-left:0;border-left:0;display:inline;padding-right:0;" border="0" alt="clip_image003" src="http://dhananjay25.files.wordpress.com/2012/03/clip_image003_thumb3.jpg?w=624&h=69" width="624" height="69"/></a> </p>
<p><font size="2">Here you see that Windows 8 Metro Application runs in <b>AppContainer</b> and this is the major difference between any applications created with the UI guidelines of Metro and Windows 8 Metro Application. I hope now it is clear to you difference between Windows 8 Metro application and application adhering UI guidelines of Metro. Thanks for reading</font>  </p>
<a href='http://twitter.com/debug_mode' class='twitter-follow-button' data-text-color='#333333' data-link-color='#3a6999'>Follow @debug_mode</a>
<br />Filed under: <a href='http://debugmode.net/category/windows-8-app/'>Windows 8 App</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dhananjay25.wordpress.com/10374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dhananjay25.wordpress.com/10374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dhananjay25.wordpress.com/10374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dhananjay25.wordpress.com/10374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dhananjay25.wordpress.com/10374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dhananjay25.wordpress.com/10374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dhananjay25.wordpress.com/10374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dhananjay25.wordpress.com/10374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dhananjay25.wordpress.com/10374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dhananjay25.wordpress.com/10374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dhananjay25.wordpress.com/10374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dhananjay25.wordpress.com/10374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dhananjay25.wordpress.com/10374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dhananjay25.wordpress.com/10374/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debugmode.net&#038;blog=10538757&#038;post=10374&#038;subd=dhananjay25&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debugmode.net/2012/03/31/difference-between-application-created-using-metro-ui-guidelines-and-real-windows-8-metro-application/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dhananjay25</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/03/image_thumb40.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/03/image_thumb41.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/03/image_thumb42.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/03/clip_image001_thumb8.png" medium="image">
			<media:title type="html">clip_image001</media:title>
		</media:content>

		<media:content url="http://dhananjay25.files.wordpress.com/2012/03/clip_image003_thumb3.jpg" medium="image">
			<media:title type="html">clip_image003</media:title>
		</media:content>
	</item>
	</channel>
</rss>
