<?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>Vikas Khera</title>
	<atom:link href="http://vikaskhera.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vikaskhera.wordpress.com</link>
	<description>My Scrapbook</description>
	<lastBuildDate>Wed, 10 Apr 2013 16:24:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vikaskhera.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/09792729007a0a0de113c0660ba5702a?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Vikas Khera</title>
		<link>http://vikaskhera.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vikaskhera.wordpress.com/osd.xml" title="Vikas Khera" />
	<atom:link rel='hub' href='http://vikaskhera.wordpress.com/?pushpress=hub'/>
		<item>
		<title>JavaScript Fundamentals: Development for Absolute Beginners</title>
		<link>http://vikaskhera.wordpress.com/2012/08/13/javascript-fundamentals-development-for-absolute-beginners/</link>
		<comments>http://vikaskhera.wordpress.com/2012/08/13/javascript-fundamentals-development-for-absolute-beginners/#comments</comments>
		<pubDate>Mon, 13 Aug 2012 06:36:18 +0000</pubDate>
		<dc:creator>Vikas Khera</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[All]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Website Desigining]]></category>
		<category><![CDATA[Beginners]]></category>
		<category><![CDATA[Conditional logic]]></category>
		<category><![CDATA[Document Object Model]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[expressions]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[javascript application]]></category>
		<category><![CDATA[jquery events]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[JS variables]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[Methods]]></category>
		<category><![CDATA[operators]]></category>
		<category><![CDATA[Selectors]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[types]]></category>

		<guid isPermaLink="false">http://vikaskhera.wordpress.com/?p=1553</guid>
		<description><![CDATA[By: Bob Tabor Download the entire series source code here. This course is divided in 21 parts: Series Introduction Writing your First JavaScript Application Dissecting the First JavaScript Application You Wrote Writing JavaScript in Visual Web Developer Express Edition JavaScript Variables, Types, Operators, and Expressions Conditional Logic in JavaScript JavaScript Functions JavaScript Arrays Looping Statements &#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1553&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>By: <a title="Bob Tabor" href="http://channel9.msdn.com/Niners/Bob_Tabor" target="_blank">Bob Tabor</a></strong></p>
<p>Download the entire series source code <a href="http://media.ch9.ms/ch9/javascript/code/C9JS_Code.zip" target="_blank">here</a>.</p>
<p><strong>This course is divided in 21 parts:</strong></p>
<ol>
<li><a title="Series Introduction" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Series-Introduction-01" target="_blank">Series Introduction</a></li>
<li><a title="Writing your First JavaScript Applicatio" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Writing-your-First-JavaScript-Application-02" target="_blank">Writing your First JavaScript Application</a></li>
<li><a title="Dissecting the First JavaScript Application You Wrote" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Dissecting-the-First-JavaScript-Application-You-Wrote-03" target="_blank">Dissecting the First JavaScript Application You Wrote</a></li>
<li><a title="Writing JavaScript in Visual Web Developer Express Edition" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Writing-JavaScript-in-Visual-Web-Developer-Express-Edition-04" target="_blank">Writing JavaScript in Visual Web Developer Express Edition</a></li>
<li><a title="JavaScript Variables, Types, Operators, and Expressions" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/JavaScript-Variables-Types-Operators-and-Expressions-05" target="_blank">JavaScript Variables, Types, Operators, and Expressions</a></li>
<li><a title="Conditional Logic in JavaScript" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Conditional-Logic-in-JavaScript-06" target="_blank">Conditional Logic in JavaScript</a></li>
<li><a title="JavaScript Functions" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/JavaScript-Functions-07" target="_blank">JavaScript Functions</a></li>
<li><a title="JavaScript Arrays" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/JavaScript-Arrays-08" target="_blank">JavaScript Arrays</a></li>
<li><a title="Looping Statements in JavaScript" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Looping-Statements-in-JavaScript-09" target="_blank">Looping Statements in JavaScript</a></li>
<li><a title="Understanding Function versus Global Scope" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Understanding-Function-versus-Global-Scope-10" target="_blank">Understanding Function versus Global Scope</a></li>
<li><a title="Working with External JavaScript Files" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Working-with-External-JavaScript-Files-11" target="_blank">Working with External JavaScript Files</a></li>
<li><a title="Organizing and Simplifying JavaScript with Object Literals" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Organizing-and-Simplifying-JavaScript-with-Object-Literals-12" target="_blank">Organizing and Simplifying JavaScript with Object Literals</a></li>
<li><a title="Understanding the Document Object Model" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Understanding-the-Document-Object-Model-13" target="_blank">Understanding the Document Object Model</a></li>
<li><a title="Getting Started with jQuery" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Getting-Started-with-jQuery-14" target="_blank">Getting Started with jQuery</a></li>
<li><a title="jQuery Selectors" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/jQuery-Selectors-15" target="_blank">jQuery Selectors</a></li>
<li><a title="jQuery Events" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/jQuery-Events-16" target="_blank">jQuery Events</a></li>
<li><a title="Installing and Utilizing jQuery Plugins" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Installing-and-Utilizing-jQuery-Plugins-17" target="_blank">Installing and Utilizing jQuery Plugins</a></li>
<li><a title="Unobtrusive JavaScript" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Unobtrusive-JavaScript-18" target="_blank">Unobtrusive JavaScript</a></li>
<li><a title="Using jQuery to Retrieve JSON via AJAX" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Using-jQuery-to-Retrieve-JSON-via-AJAX-19" target="_blank">Using jQuery to Retrieve JSON via AJAX</a></li>
<li><a title="Fundamentals of JavaScript Closures" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Fundamentals-of-JavaScript-Closures-20" target="_blank">Fundamentals of JavaScript Closures</a></li>
<li><a title="Series Wrap-Up" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners/Series-Wrap-Up-21" target="_blank">Series Wrap-Up</a></li>
</ol>
<p>URL: <a title="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners" href="http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners" target="_blank">http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners</a></p>
<p>Source: <a title="Channel 9" href="http://channel9.msdn.com/" target="_blank">Channel 9</a></p>
<br />Filed under: <a href='http://vikaskhera.wordpress.com/category/ajax/'>Ajax</a>, <a href='http://vikaskhera.wordpress.com/category/all/'>All</a>, <a href='http://vikaskhera.wordpress.com/category/html/'>HTML</a>, <a href='http://vikaskhera.wordpress.com/category/javascript/'>Javascript</a>, <a href='http://vikaskhera.wordpress.com/category/jquery/'>jQuery</a>, <a href='http://vikaskhera.wordpress.com/category/web-20/'>Web 2.0</a>, <a href='http://vikaskhera.wordpress.com/category/web-development/'>Web Development</a>, <a href='http://vikaskhera.wordpress.com/category/website-desigining/'>Website Desigining</a> Tagged: <a href='http://vikaskhera.wordpress.com/tag/ajax/'>Ajax</a>, <a href='http://vikaskhera.wordpress.com/tag/beginners/'>Beginners</a>, <a href='http://vikaskhera.wordpress.com/tag/conditional-logic/'>Conditional logic</a>, <a href='http://vikaskhera.wordpress.com/tag/document-object-model/'>Document Object Model</a>, <a href='http://vikaskhera.wordpress.com/tag/dom/'>DOM</a>, <a href='http://vikaskhera.wordpress.com/tag/download/'>Download</a>, <a href='http://vikaskhera.wordpress.com/tag/expressions/'>expressions</a>, <a href='http://vikaskhera.wordpress.com/tag/functions/'>Functions</a>, <a href='http://vikaskhera.wordpress.com/tag/html/'>HTML</a>, <a href='http://vikaskhera.wordpress.com/tag/javascript/'>Javascript</a>, <a href='http://vikaskhera.wordpress.com/tag/javascript-application/'>javascript application</a>, <a href='http://vikaskhera.wordpress.com/tag/jquery/'>jQuery</a>, <a href='http://vikaskhera.wordpress.com/tag/jquery-events/'>jquery events</a>, <a href='http://vikaskhera.wordpress.com/tag/js/'>JS</a>, <a href='http://vikaskhera.wordpress.com/tag/js-variables/'>JS variables</a>, <a href='http://vikaskhera.wordpress.com/tag/json/'>JSON</a>, <a href='http://vikaskhera.wordpress.com/tag/learn/'>learn</a>, <a href='http://vikaskhera.wordpress.com/tag/learning/'>learning</a>, <a href='http://vikaskhera.wordpress.com/tag/methods/'>Methods</a>, <a href='http://vikaskhera.wordpress.com/tag/operators/'>operators</a>, <a href='http://vikaskhera.wordpress.com/tag/selectors/'>Selectors</a>, <a href='http://vikaskhera.wordpress.com/tag/tutorials/'>tutorials</a>, <a href='http://vikaskhera.wordpress.com/tag/types/'>types</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vikaskhera.wordpress.com/1553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vikaskhera.wordpress.com/1553/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1553&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vikaskhera.wordpress.com/2012/08/13/javascript-fundamentals-development-for-absolute-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/49b5e72cfbb0e5c39fc1f755acdfd6c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vikas</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS3 Transitions</title>
		<link>http://vikaskhera.wordpress.com/2012/06/17/css3-transitions/</link>
		<comments>http://vikaskhera.wordpress.com/2012/06/17/css3-transitions/#comments</comments>
		<pubDate>Sun, 17 Jun 2012 07:31:02 +0000</pubDate>
		<dc:creator>Vikas Khera</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Website Desigining]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[CSS3 Transitions]]></category>
		<category><![CDATA[duration]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[not supported in IE]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[stylesheet]]></category>
		<category><![CDATA[transform]]></category>
		<category><![CDATA[Transitions]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://vikaskhera.wordpress.com/?p=1549</guid>
		<description><![CDATA[With CSS3, we can add an effect when changing from one style to another, without using Flash animations or JavaScripts. CSS3 transitions are effects that let an element gradually change from one style to another. Shorthand: transition: property_name duration timing_function delay; To do this, you must specify two things: Specify the CSS property you want &#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1549&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>With CSS3, we can add an effect when changing from one style to another, without using Flash animations or JavaScripts.<br />
CSS3 transitions are effects that let an element gradually change from one style to another.</p>
<p><strong>Shorthand</strong>:<br />
transition: property_name duration timing_function delay;</p>
<p>To do this, you must specify two things:</p>
<ul>
<li>Specify the CSS property you want to add an effect to</li>
<li>Specify the duration of the effect</li>
</ul>
<p>Transition effect on the width property, duration: 2 seconds:</p>
<p>.moduleDefault {<br />
transition: width 2s;<br />
-moz-transition: width 2s; /* Firefox 4 and above */<br />
-webkit-transition: width 2s; /* Safari and Chrome */<br />
-o-transition: width 2s; /* Opera */<br />
}</p>
<p><strong>Note</strong>: If the duration is not specified, the transition will have no effect, because default value is 0.</p>
<p>The effect will start when the specified CSS property changes value. A typical CSS property change would be when a user mouse-over an element:</p>
<p>.moduleDefault:hover {<br />
width: 300px;<br />
}</p>
<p><strong>Multiple changes</strong>:<br />
You can also add a transitional effect for more than one style, add more properties, separated by commas.</p>
<p>Add effects on the width, height, and the transformation:</p>
<p>div<br />
{<br />
transition: width 2s, height 2s, transform 2s;<br />
-moz-transition: width 2s, height 2s, -moz-transform 2s;<br />
-webkit-transition: width 2s, height 2s, -webkit-transform 2s;<br />
-o-transition: width 2s, height 2s,-o-transform 2s;<br />
}</p>
<p><strong>Note</strong>: These properties are not supported in IE</p>
<br />Filed under: <a href='http://vikaskhera.wordpress.com/category/all/'>All</a>, <a href='http://vikaskhera.wordpress.com/category/css/'>CSS</a>, <a href='http://vikaskhera.wordpress.com/category/html/'>HTML</a>, <a href='http://vikaskhera.wordpress.com/category/web-20/'>Web 2.0</a>, <a href='http://vikaskhera.wordpress.com/category/web-development/'>Web Development</a>, <a href='http://vikaskhera.wordpress.com/category/website-desigining/'>Website Desigining</a> Tagged: <a href='http://vikaskhera.wordpress.com/tag/css/'>CSS</a>, <a href='http://vikaskhera.wordpress.com/tag/css3/'>CSS3</a>, <a href='http://vikaskhera.wordpress.com/tag/css3-transitions/'>CSS3 Transitions</a>, <a href='http://vikaskhera.wordpress.com/tag/duration/'>duration</a>, <a href='http://vikaskhera.wordpress.com/tag/mozilla/'>Mozilla</a>, <a href='http://vikaskhera.wordpress.com/tag/not-supported-in-ie/'>not supported in IE</a>, <a href='http://vikaskhera.wordpress.com/tag/style/'>style</a>, <a href='http://vikaskhera.wordpress.com/tag/stylesheet/'>stylesheet</a>, <a href='http://vikaskhera.wordpress.com/tag/transform/'>transform</a>, <a href='http://vikaskhera.wordpress.com/tag/transitions/'>Transitions</a>, <a href='http://vikaskhera.wordpress.com/tag/webkit/'>webkit</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vikaskhera.wordpress.com/1549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vikaskhera.wordpress.com/1549/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1549&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vikaskhera.wordpress.com/2012/06/17/css3-transitions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/49b5e72cfbb0e5c39fc1f755acdfd6c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vikas</media:title>
		</media:content>
	</item>
		<item>
		<title>Boilerplate CSS Media Queries</title>
		<link>http://vikaskhera.wordpress.com/2012/06/17/boilerplate-css-media-queries/</link>
		<comments>http://vikaskhera.wordpress.com/2012/06/17/boilerplate-css-media-queries/#comments</comments>
		<pubDate>Sun, 17 Jun 2012 07:25:22 +0000</pubDate>
		<dc:creator>Vikas Khera</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Website Desigining]]></category>
		<category><![CDATA[Boilerplate]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[landscape]]></category>
		<category><![CDATA[laptops]]></category>
		<category><![CDATA[max-device-width]]></category>
		<category><![CDATA[Media]]></category>
		<category><![CDATA[Media Queries]]></category>
		<category><![CDATA[min-device-width]]></category>
		<category><![CDATA[portrait]]></category>
		<category><![CDATA[smart phone]]></category>
		<category><![CDATA[smartphone]]></category>
		<category><![CDATA[Smartphones]]></category>

		<guid isPermaLink="false">http://vikaskhera.wordpress.com/?p=1546</guid>
		<description><![CDATA[Media Queries are now becoming quite common practice in web design. They allow you to change the CSS of the different elements on your web page depending on the size of the screen the visitor currently can see. Below is a media query boilerplate you can use to change the design of your depending on &#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1546&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Media Queries are now becoming quite common practice in web design. They allow you to change the CSS of the different elements on your web page depending on the size of the screen the visitor currently can see.</p>
<p>Below is a media query boilerplate you can use to change the design of your depending on if the user is using an iPad,iPhone or other smart phones. This snippet even allows you to change the design if the device is landscape or portrait.</p>
<p>/* Smartphones (portrait and landscape) &#8212;&#8212;&#8212;&#8211; */<br />
@media only screen<br />
and (min-device-width : 320px)<br />
and (max-device-width : 480px) {<br />
/* Styles */<br />
}</p>
<p>/* Smartphones (landscape) &#8212;&#8212;&#8212;&#8211; */<br />
@media only screen<br />
and (min-width : 321px) {<br />
/* Styles */<br />
}</p>
<p>/* Smartphones (portrait) &#8212;&#8212;&#8212;&#8211; */<br />
@media only screen<br />
and (max-width : 320px) {<br />
/* Styles */<br />
}</p>
<p>/* iPads (portrait and landscape) &#8212;&#8212;&#8212;&#8211; */<br />
@media only screen<br />
and (min-device-width : 768px)<br />
and (max-device-width : 1024px) {<br />
/* Styles */<br />
}</p>
<p>/* iPads (landscape) &#8212;&#8212;&#8212;&#8211; */<br />
@media only screen<br />
and (min-device-width : 768px)<br />
and (max-device-width : 1024px)<br />
and (orientation : landscape) {<br />
/* Styles */<br />
}</p>
<p>/* iPads (portrait) &#8212;&#8212;&#8212;&#8211; */<br />
@media only screen<br />
and (min-device-width : 768px)<br />
and (max-device-width : 1024px)<br />
and (orientation : portrait) {<br />
/* Styles */<br />
}</p>
<p>/* Desktops and laptops &#8212;&#8212;&#8212;&#8211; */<br />
@media only screen<br />
and (min-width : 1224px) {<br />
/* Styles */<br />
}</p>
<p>/* Large screens &#8212;&#8212;&#8212;&#8211; */<br />
@media only screen<br />
and (min-width : 1824px) {<br />
/* Styles */<br />
}</p>
<p>/* iPhone 4 &#8212;&#8212;&#8212;&#8211; */<br />
@media<br />
only screen and (-webkit-min-device-pixel-ratio : 1.5),<br />
only screen and (min-device-pixel-ratio : 1.5) {<br />
/* Styles */<br />
}</p>
<br />Filed under: <a href='http://vikaskhera.wordpress.com/category/all/'>All</a>, <a href='http://vikaskhera.wordpress.com/category/css/'>CSS</a>, <a href='http://vikaskhera.wordpress.com/category/html/'>HTML</a>, <a href='http://vikaskhera.wordpress.com/category/tips-tricks/'>Tips &amp; Tricks</a>, <a href='http://vikaskhera.wordpress.com/category/web-20/'>Web 2.0</a>, <a href='http://vikaskhera.wordpress.com/category/web-development/'>Web Development</a>, <a href='http://vikaskhera.wordpress.com/category/website-desigining/'>Website Desigining</a> Tagged: <a href='http://vikaskhera.wordpress.com/tag/boilerplate/'>Boilerplate</a>, <a href='http://vikaskhera.wordpress.com/tag/css/'>CSS</a>, <a href='http://vikaskhera.wordpress.com/tag/desktop/'>Desktop</a>, <a href='http://vikaskhera.wordpress.com/tag/ipad/'>ipad</a>, <a href='http://vikaskhera.wordpress.com/tag/iphone/'>iphone</a>, <a href='http://vikaskhera.wordpress.com/tag/landscape/'>landscape</a>, <a href='http://vikaskhera.wordpress.com/tag/laptops/'>laptops</a>, <a href='http://vikaskhera.wordpress.com/tag/max-device-width/'>max-device-width</a>, <a href='http://vikaskhera.wordpress.com/tag/media/'>Media</a>, <a href='http://vikaskhera.wordpress.com/tag/media-queries/'>Media Queries</a>, <a href='http://vikaskhera.wordpress.com/tag/min-device-width/'>min-device-width</a>, <a href='http://vikaskhera.wordpress.com/tag/portrait/'>portrait</a>, <a href='http://vikaskhera.wordpress.com/tag/smart-phone/'>smart phone</a>, <a href='http://vikaskhera.wordpress.com/tag/smartphone/'>smartphone</a>, <a href='http://vikaskhera.wordpress.com/tag/smartphones/'>Smartphones</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vikaskhera.wordpress.com/1546/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vikaskhera.wordpress.com/1546/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1546&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vikaskhera.wordpress.com/2012/06/17/boilerplate-css-media-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/49b5e72cfbb0e5c39fc1f755acdfd6c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vikas</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS3 &#8211; Substring matching attribute selectors</title>
		<link>http://vikaskhera.wordpress.com/2012/06/17/css3-substring-matching-attribute-selectors/</link>
		<comments>http://vikaskhera.wordpress.com/2012/06/17/css3-substring-matching-attribute-selectors/#comments</comments>
		<pubDate>Sun, 17 Jun 2012 07:10:52 +0000</pubDate>
		<dc:creator>Vikas Khera</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Website Desigining]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Selectors]]></category>
		<category><![CDATA[Substring]]></category>
		<category><![CDATA[Substring matching attribute selectors]]></category>
		<category><![CDATA[web 3.0]]></category>

		<guid isPermaLink="false">http://vikaskhera.wordpress.com/?p=1542</guid>
		<description><![CDATA[[att^=val] : Represents an element with the att attribute whose value begins with the prefix &#8220;val&#8221;. [att$=val] : Represents an element with the att attribute whose value ends with the suffix &#8220;val&#8221;. [att*=val] : Represents an element with the att attribute whose value contains at least one instance of the substring &#8220;val&#8221;. This whole group &#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1542&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>[att^=val] : Represents an element with the att attribute whose value begins with the prefix &#8220;val&#8221;.</p>
<p>[att$=val] : Represents an element with the att attribute whose value ends with the suffix &#8220;val&#8221;.</p>
<p>[att*=val] : Represents an element with the att attribute whose value contains at least one instance of the substring &#8220;val&#8221;.</p>
<p>This whole group of selectors is new, and the selectors in it let developers match substrings in the value of an attribute.</p>
<p>Assume that we have an HTML document that contains the following markup structure:<br />
&lt;div id=&#8221;nav-primary&#8221;&gt;&lt;/div&gt;<br />
&lt;div id=&#8221;content-primary&#8221;&gt;&lt;/div&gt;<br />
&lt;div id=&#8221;content-secondary&#8221;&gt;&lt;/div&gt;<br />
&lt;div id=&#8221;tertiary-content&#8221;&gt;&lt;/div&gt;<br />
&lt;div id=&#8221;nav-secondary&#8221;&gt;&lt;/div&gt;</p>
<p>By using the substring matching attribute selectors we can target combinations of these structural parts of the document.</p>
<p>The following rule will set the background colour of all div elements whose id begins with &#8220;nav&#8221;:<br />
div[id^="nav"] { background:#ff0; }</p>
<p>In this case the selector will match div#nav-primary and div#nav-secondary.</p>
<p>To target the div elements whose id ends with &#8220;primary&#8221;, we could use the following rule:<br />
div[id$="primary"] { background:#ff0; }</p>
<p>This time the selector will match div#nav-primary and div#content-primary.</p>
<p>The following rule will apply to all div elements whose id contain the substring &#8220;content&#8221;:<br />
div[id*="content"] { background:#ff0; }</p>
<p>The elements that will be affected by this rule are div#content-primary, div#content-secondary, and div#tertiary-content.</p>
<p>The substring matching attribute selectors are all fully supported by the latest versions of Mozilla, Chrome, Firefox, Safari and Opera.</p>
<p><strong>Reference</strong>: <a title="http://www.456bereastreet.com/archive/200601/css_3_selectors_explained/" href="http://www.456bereastreet.com/archive/200601/css_3_selectors_explained/" target="_blank">http://www.456bereastreet.com/archive/200601/css_3_selectors_explained/</a></p>
<br />Filed under: <a href='http://vikaskhera.wordpress.com/category/all/'>All</a>, <a href='http://vikaskhera.wordpress.com/category/css/'>CSS</a>, <a href='http://vikaskhera.wordpress.com/category/html/'>HTML</a>, <a href='http://vikaskhera.wordpress.com/category/web-20/'>Web 2.0</a>, <a href='http://vikaskhera.wordpress.com/category/web-development/'>Web Development</a>, <a href='http://vikaskhera.wordpress.com/category/website-desigining/'>Website Desigining</a> Tagged: <a href='http://vikaskhera.wordpress.com/tag/attribute/'>attribute</a>, <a href='http://vikaskhera.wordpress.com/tag/attributes/'>attributes</a>, <a href='http://vikaskhera.wordpress.com/tag/chrome/'>Chrome</a>, <a href='http://vikaskhera.wordpress.com/tag/css3/'>CSS3</a>, <a href='http://vikaskhera.wordpress.com/tag/element/'>element</a>, <a href='http://vikaskhera.wordpress.com/tag/firefox/'>Firefox</a>, <a href='http://vikaskhera.wordpress.com/tag/mozilla/'>Mozilla</a>, <a href='http://vikaskhera.wordpress.com/tag/opera/'>Opera</a>, <a href='http://vikaskhera.wordpress.com/tag/safari/'>Safari</a>, <a href='http://vikaskhera.wordpress.com/tag/selectors/'>Selectors</a>, <a href='http://vikaskhera.wordpress.com/tag/substring/'>Substring</a>, <a href='http://vikaskhera.wordpress.com/tag/substring-matching-attribute-selectors/'>Substring matching attribute selectors</a>, <a href='http://vikaskhera.wordpress.com/tag/web-20/'>Web 2.0</a>, <a href='http://vikaskhera.wordpress.com/tag/web-3-0/'>web 3.0</a>, <a href='http://vikaskhera.wordpress.com/tag/web-development/'>Web Development</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vikaskhera.wordpress.com/1542/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vikaskhera.wordpress.com/1542/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1542&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vikaskhera.wordpress.com/2012/06/17/css3-substring-matching-attribute-selectors/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/49b5e72cfbb0e5c39fc1f755acdfd6c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vikas</media:title>
		</media:content>
	</item>
		<item>
		<title>JSON Object with integer values as key attributes</title>
		<link>http://vikaskhera.wordpress.com/2012/06/17/json-object-with-integer-values-as-key-attributes/</link>
		<comments>http://vikaskhera.wordpress.com/2012/06/17/json-object-with-integer-values-as-key-attributes/#comments</comments>
		<pubDate>Sun, 17 Jun 2012 06:55:59 +0000</pubDate>
		<dc:creator>Vikas Khera</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Website Desigining]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[integer values]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[key attributes]]></category>
		<category><![CDATA[Object]]></category>
		<category><![CDATA[web 3.0]]></category>

		<guid isPermaLink="false">http://vikaskhera.wordpress.com/?p=1540</guid>
		<description><![CDATA[Using JSON object selection to paint the output based on descending key values. JSON Object: var popularObj= { &#8220;89&#8243;:&#8221;animation&#8221;, &#8220;71&#8243;:&#8221;apple&#8221;, &#8220;64&#8243;:&#8221;barbara beery&#8221;, &#8220;48&#8243;:&#8221;video&#8221;, &#8220;39&#8243;:&#8221;cheese sticks&#8221;, &#8220;29&#8243;:&#8221;games&#8221;, &#8220;28&#8243;:&#8221;bbq pork sticks&#8221;, &#8220;27&#8243;:&#8221;asian chicken tenders&#8221;, &#8220;25&#8243;:&#8221;bake&#8221;, &#8220;24&#8243;:&#8221;banana&#8221; }; Problem: The requirement was to paint only the values in descending order as they are the popular searches within the &#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1540&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>Using JSON object selection to paint the output based on descending key values.</strong></p>
<p><strong>JSON Object:</strong></p>
<p>var popularObj= {<br />
&#8220;89&#8243;:&#8221;animation&#8221;,<br />
&#8220;71&#8243;:&#8221;apple&#8221;,<br />
&#8220;64&#8243;:&#8221;barbara beery&#8221;,<br />
&#8220;48&#8243;:&#8221;video&#8221;,<br />
&#8220;39&#8243;:&#8221;cheese sticks&#8221;,<br />
&#8220;29&#8243;:&#8221;games&#8221;,<br />
&#8220;28&#8243;:&#8221;bbq pork sticks&#8221;,<br />
&#8220;27&#8243;:&#8221;asian chicken tenders&#8221;,<br />
&#8220;25&#8243;:&#8221;bake&#8221;,<br />
&#8220;24&#8243;:&#8221;banana&#8221;<br />
};</p>
<p><strong>Problem:</strong><br />
The requirement was to paint only the values in descending order as they are the popular searches within the website. Whether we use for in loop or jquery each construct which does the same thing if the variable is an object, our results were varying across browsers namely Google chrome. The reason being in chrome, the key values were seen as array index instead of object key properties. The key values here were treated as indexes (integer indexes) and were painted in reverse order.</p>
<p>In Firefox and IE, we will get</p>
<p>&#8220;animation apple barbara beery video cheese sticks games bbq pork sticks asian chicken tenders bake banana&#8221;</p>
<p>and in chrome</p>
<p>&#8220;banana bake asian chicken tenders bbq pork sticks games cheese sticks video barbara beery apple animation&#8221;</p>
<p><strong>Solution:</strong><br />
Convert the object into array, reverse it for chrome browser and then the finally load the dom object.</p>
<p><strong>Note</strong>: In case the key was a text then the order of rendering is same across the browsers.</p>
<br />Filed under: <a href='http://vikaskhera.wordpress.com/category/ajax/'>Ajax</a>, <a href='http://vikaskhera.wordpress.com/category/html/'>HTML</a>, <a href='http://vikaskhera.wordpress.com/category/javascript/'>Javascript</a>, <a href='http://vikaskhera.wordpress.com/category/jquery/'>jQuery</a>, <a href='http://vikaskhera.wordpress.com/category/tips-tricks/'>Tips &amp; Tricks</a>, <a href='http://vikaskhera.wordpress.com/category/web-20/'>Web 2.0</a>, <a href='http://vikaskhera.wordpress.com/category/web-development/'>Web Development</a>, <a href='http://vikaskhera.wordpress.com/category/website-desigining/'>Website Desigining</a> Tagged: <a href='http://vikaskhera.wordpress.com/tag/array/'>Array</a>, <a href='http://vikaskhera.wordpress.com/tag/attributes/'>attributes</a>, <a href='http://vikaskhera.wordpress.com/tag/dom/'>DOM</a>, <a href='http://vikaskhera.wordpress.com/tag/html/'>HTML</a>, <a href='http://vikaskhera.wordpress.com/tag/integer-values/'>integer values</a>, <a href='http://vikaskhera.wordpress.com/tag/javascript/'>Javascript</a>, <a href='http://vikaskhera.wordpress.com/tag/jquery/'>jQuery</a>, <a href='http://vikaskhera.wordpress.com/tag/json/'>JSON</a>, <a href='http://vikaskhera.wordpress.com/tag/key-attributes/'>key attributes</a>, <a href='http://vikaskhera.wordpress.com/tag/object/'>Object</a>, <a href='http://vikaskhera.wordpress.com/tag/web-20/'>Web 2.0</a>, <a href='http://vikaskhera.wordpress.com/tag/web-3-0/'>web 3.0</a>, <a href='http://vikaskhera.wordpress.com/tag/web-development/'>Web Development</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vikaskhera.wordpress.com/1540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vikaskhera.wordpress.com/1540/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vikaskhera.wordpress.com&#038;blog=2430238&#038;post=1540&#038;subd=vikaskhera&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vikaskhera.wordpress.com/2012/06/17/json-object-with-integer-values-as-key-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/49b5e72cfbb0e5c39fc1f755acdfd6c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Vikas</media:title>
		</media:content>
	</item>
	</channel>
</rss>
