<?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>Rajakvk's Blog</title>
	<atom:link href="http://vkanakaraj.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vkanakaraj.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 18 Dec 2011 07:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vkanakaraj.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rajakvk's Blog</title>
		<link>http://vkanakaraj.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vkanakaraj.wordpress.com/osd.xml" title="Rajakvk&#039;s Blog" />
	<atom:link rel='hub' href='http://vkanakaraj.wordpress.com/?pushpress=hub'/>
		<item>
		<title>For loop trick &#8211; part 2</title>
		<link>http://vkanakaraj.wordpress.com/2011/11/07/for-loop-trick-part-2/</link>
		<comments>http://vkanakaraj.wordpress.com/2011/11/07/for-loop-trick-part-2/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 12:03:13 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[comma]]></category>
		<category><![CDATA[comma operator]]></category>
		<category><![CDATA[for]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[operator]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=575</guid>
		<description><![CDATA[Javascript is a expressive language. In continuation to the previous post, check the following code Nothing wrong with conventional looping technique, but this is to explore JavaScript&#8217;s expressiveness!!!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=575&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Javascript is a expressive language. In continuation to the <a href="http://vkanakaraj.wordpress.com/2009/06/22/for-loop-trick/">previous post</a>, check the following code<br />
<pre class="brush: jscript;">
//
var arr = ['x','y','z'];

for (var count = -1, l = arr.length, obj; obj = arr[++count], count &lt; l;) {
  alert(obj);
}

// alerts x, y, z
//
</pre></p>
<p>Nothing wrong with conventional looping technique, but this is to explore JavaScript&#8217;s expressiveness!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/575/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=575&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2011/11/07/for-loop-trick-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript closure</title>
		<link>http://vkanakaraj.wordpress.com/2011/08/18/javascript-closure/</link>
		<comments>http://vkanakaraj.wordpress.com/2011/08/18/javascript-closure/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 08:58:40 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[closure]]></category>
		<category><![CDATA[object oriented javascript]]></category>
		<category><![CDATA[oojs]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=561</guid>
		<description><![CDATA[Definition for closure : A closure is the local variables for a function &#8211; kept alive after the function has returned. A nice example to explain closure. Nice article about closure found at http://www.jibbering.com/faq/faq_notes/closures.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=561&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Definition for closure : A closure is the local variables for a function &#8211; kept alive after the function has returned.</p>
<p>A nice example to explain closure.<br />
<pre class="brush: jscript;">
//
// define a function which preserves data (count)
//
var CreateCounter = function(){
   var count, f;
   count = 0;
   f = function(){
      count = count+1;
      return count;
   }
   return f;
}

// create objects which remembers its own counter
var counter1 = CreateCounter();
var counter2 = CreateCounter();
alert(counter1());  // 1
alert(counter1());  // 2
alert(counter1());  // 3

alert(counter2());  // 1
alert(counter2());  // 2
alert(counter2());  // 3

alert(counter1());  // 4
alert(counter1());  // 5
alert(counter2());  // 4
</pre></p>
<p>Nice article about closure found at <a href="http://www.jibbering.com/faq/faq_notes/closures.html" title="http://www.jibbering.com/faq/faq_notes/closures.html">http://www.jibbering.com/faq/faq_notes/closures.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/561/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/561/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=561&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2011/08/18/javascript-closure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>How to use JavaScript functions as values and parameters?</title>
		<link>http://vkanakaraj.wordpress.com/2011/08/16/how-to-use-javascript-functions-as-values-and-parameters/</link>
		<comments>http://vkanakaraj.wordpress.com/2011/08/16/how-to-use-javascript-functions-as-values-and-parameters/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 08:51:14 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[object oriented javascript]]></category>
		<category><![CDATA[oojs]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=556</guid>
		<description><![CDATA[In javascript function are first class objects. That means it can be used as values. Notice the example below Here is example to use function as parameter<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=556&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In javascript function are first class objects. That means it can be used as values. Notice the example below</p>
<p><pre class="brush: jscript;">
// function definition
function alertHi(name) {
   alert('hi! '+name);
}

// storing string
var name = 'rajakvk';

// storing number
var age = 26;

// storing function
var sayHi = alertHi;

// now sayHi is also function, you can call it like
sayHi();   // hi
</pre></p>
<p>Here is example to use function as parameter<br />
<pre class="brush: jscript;">
// define a function to call a function twice
// here function f passed as parameter
var callTwice = function(f,x) {
   return f(f(x));
}
var addTen = function(x) {
   return x+10;
}
// here function addTen used as value 
var y = callTwice(addTen, 2);   // 22
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/556/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=556&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2011/08/16/how-to-use-javascript-functions-as-values-and-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>How to override the parent property from within child object in object oriented javascript?</title>
		<link>http://vkanakaraj.wordpress.com/2011/08/08/how-to-override-the-parent-property-from-within-child-object-in-object-oriented-javascript/</link>
		<comments>http://vkanakaraj.wordpress.com/2011/08/08/how-to-override-the-parent-property-from-within-child-object-in-object-oriented-javascript/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 05:23:26 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[object oriented javascript]]></category>
		<category><![CDATA[oojs]]></category>
		<category><![CDATA[overriding parent property]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=545</guid>
		<description><![CDATA[The code below pretty much explains itself. Just follow the comments. You can also run the code snippet in the firefox console tab<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=545&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The code below pretty much explains itself. Just follow the comments. You can also run the code snippet in the firefox console tab</p>
<p><pre class="brush: jscript;">
// Parent class definition
var Human = function(name, age) {
    this.name = name;
    this.age = age;
}

// Child class definition
var Indian = function(name, state){
    if(name) this.name = name;
    this.state = state;
}

// Extending
Indian.prototype = new Human('raja',22);

// Creating instance of child class with own name property
var tamilian = new Indian('kvk','TN');

// Creating another instance of child class without own property
var cbe_ian = new Indian('','TN');

alert(tamilian.name);  // kvk
alert(tamilian.age);   // 22
alert(tamilian.state); // TN
alert(cbe_ian.name);   // raja
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/545/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/545/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/545/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=545&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2011/08/08/how-to-override-the-parent-property-from-within-child-object-in-object-oriented-javascript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript undefined !!</title>
		<link>http://vkanakaraj.wordpress.com/2011/05/04/javascript-undefined/</link>
		<comments>http://vkanakaraj.wordpress.com/2011/05/04/javascript-undefined/#comments</comments>
		<pubDate>Wed, 04 May 2011 06:09:40 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[undefined]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=525</guid>
		<description><![CDATA[I learned something interesting about JavaScript undefined. Here is the axioms and proofs. undefined is a type. undefined type has only one value. that values is undefined. There is a global variable called undefined global undefined variable has default value undefined global undefined variable is not a constant undefined is not a keyword Proof (tested [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=525&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I learned something interesting about JavaScript undefined. Here is the axioms and proofs.</p>
<ol>
<li>undefined is a type.</li>
<li>undefined type has only one value. that values is undefined.</li>
<li>There is a global variable called undefined</li>
<li>global undefined variable has default value undefined</li>
<li>global undefined variable is not a constant</li>
<li>undefined is not a keyword</li>
</ol>
<div>Proof (tested in firebug console)</div>
<div><pre class="brush: jscript;">

1. typeof undefined \\undefined

2. undefined = 1; alert(typeof undefined !== 'undefined'); // false

3. var name = undefined;  \\ global variable undefined is assigned to name

4. alert(name); \\ undefined, that means undefined global variable has value undefined

5. undefined = 'rajakvk';  \\ we can change value

6. var undefined = 'rajakvk';  \\ no syntax error
    var if = 'rajakvk';  \\ SyntaxError: missing variable name

</pre></p>
<p>This gives very interesting findings and helps to understand strange JavaScript bugs.</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/525/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/525/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/525/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=525&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2011/05/04/javascript-undefined/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>Implementing interface in JavaScript</title>
		<link>http://vkanakaraj.wordpress.com/2011/04/27/implementing-interface-in-javascript/</link>
		<comments>http://vkanakaraj.wordpress.com/2011/04/27/implementing-interface-in-javascript/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 10:38:21 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[design pattern]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[code reuse]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[object oriented javascript]]></category>
		<category><![CDATA[OOPs]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=518</guid>
		<description><![CDATA[Interface is an important concept in object oriented programming. It helps to reuse the code effectively. So what is interface? Interface provides a way to define what methods an object should have but not how it should be implemented. Interface allows to group objects based on what features they provide. Javascript does not come with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=518&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Interface is an important concept in object oriented programming. It helps to reuse the code effectively.<br />
So what is interface?</p>
<p>Interface provides a way to define what methods an object should have but not how it should be implemented. Interface allows to group objects based on what features they provide.</p>
<p>Javascript does not come with built-in support for interface. So in JavaScript it has to be manually ensure that a given class implements an interface.</p>
<p>Three ways to ensure interface in JavaScript:</p>
<ul>
<li>Comments,</li>
<li>Attribute checking,</li>
<li>Duck typing</li>
</ul>
<p><pre class="brush: jscript;">
/*
interface BasicMember {
    function isMajor(age);
    function isCitizen(ssn);
}
interface GoldMember {
    function havingVisaCard(ccn);
}
*/
var RentACar = function(user, vehicle) { // implements BasicMember, GoldMember
    // ...
}
// Implement the BasicMember interface
RentACar.prototype.isMajor = function(age) {
    // ...
};
RentACar.prototype.isCitizen = function(ssn) {
    // ...
};
// Implement the GoldMember interface
RentACar.prototype.havingVisaCard = function(ccn) {
    // ...
};
</pre><br />
This is just kind of documentation, Compliance is voluntary. Other two types will be explained in forth coming posts.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/518/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=518&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2011/04/27/implementing-interface-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript custom event using jQuery</title>
		<link>http://vkanakaraj.wordpress.com/2011/04/18/javascript-custom-event-using-jquery/</link>
		<comments>http://vkanakaraj.wordpress.com/2011/04/18/javascript-custom-event-using-jquery/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 14:17:39 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[design pattern]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[custom event]]></category>
		<category><![CDATA[event]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=513</guid>
		<description><![CDATA[Demo page &#124;  Source files How to create custom events in javascript using jQuery framework? This post trying to answer this question. HTML construction: There are four DIVs (tl, tr, bl, br) absolutely positioned at four corners within a master DIV (container) with gray background. Each absolutely positioned DIV contains one empty div with class &#8216;error&#8217; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=513&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="JavaScript custom event using jQuery" href="http://dl.dropbox.com/u/14447362/demos/customEvent/index.html" target="_blank">Demo page</a> |  <a title="javascript custom event using jquery" href="http://code.google.com/p/javascript-custom-event-using-jquery/source/browse/trunk/index.html" target="_blank">Source files</a></p>
<p>How to create custom events in javascript using jQuery framework? This post trying to answer this question.</p>
<p>HTML construction: There are four DIVs (tl, tr, bl, br) absolutely positioned at four corners within a master DIV (container) with gray background. Each absolutely positioned DIV contains one empty div with class &#8216;error&#8217; and one button.</p>
<p><pre class="brush: xml;">
&lt;div id=&quot;container&quot;&gt;
	&lt;div id=&quot;tl&quot;&gt;
		&lt;div class=&quot;error&quot;&gt;&lt;/div&gt;
		&lt;input id=&quot;top-left&quot; type=&quot;button&quot; value=&quot;submit&quot;/&gt;
	&lt;/div&gt;
	&lt;div id=&quot;tr&quot;&gt;
		&lt;div class=&quot;error&quot;&gt;&lt;/div&gt;
		&lt;input id=&quot;top-right&quot; type=&quot;button&quot; value=&quot;submit&quot;/&gt;
	&lt;/div&gt;
	&lt;div id=&quot;bl&quot;&gt;
		&lt;div class=&quot;error&quot;&gt;&lt;/div&gt;
		&lt;input id=&quot;bottom-left&quot; type=&quot;button&quot; value=&quot;submit&quot;/&gt;
	&lt;/div&gt;
	&lt;div id=&quot;br&quot;&gt;
		&lt;div class=&quot;error&quot;&gt;&lt;/div&gt;
		&lt;input id=&quot;bottom-right&quot; type=&quot;button&quot; value=&quot;submit&quot;/&gt;
	&lt;/div&gt;	
&lt;/div&gt;
</pre></p>
<p>CSS construction:<br />
<pre class="brush: css;">
#container{width:100%;height:100%;position:fixed;}
#tl, #tr, #bl, #br{width:200px;height:200px;position:absolute;background-color:#eee;}
#tr{top:0;right:0;}
#rl{top:0;left:0;}
#br{bottom:0;right:0;}
#bl{bottom:0;left:0;}
</pre><br />
Javascript Construction:<br />
<pre class="brush: jscript;">
var customEvent = (function(){
	$(function(){
		customEvent.init();
	});
	var errorHandler = function(e){
		var formErrorFlag = true;
		if(formErrorFlag) 
			$(this).trigger('formError');
	}
	var customErrorHandler = function(e){
		$('.error').html('error at '+e.target.id).css('color','Red');
	}
	return {
		init: function(){
			$(&quot;input:button&quot;).bind('click',errorHandler);
			$(&quot;input:button&quot;).bind('formError',customErrorHandler);
		}
	};
})();
</pre><br />
All buttons binded with click event with errorHandler function which in turn triggers custom event called &#8216;formEvent&#8217; based on some condition &#8216;formErrorFlag&#8217;. So in other words, &#8216;formEvent&#8217; is my custom event which is trigger based on a boolean &#8216;formErrorFlag&#8217;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/513/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=513&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2011/04/18/javascript-custom-event-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>Calling function with parameter in setTimeout</title>
		<link>http://vkanakaraj.wordpress.com/2010/12/16/calling-function-with-parameter-in-settimeout/</link>
		<comments>http://vkanakaraj.wordpress.com/2010/12/16/calling-function-with-parameter-in-settimeout/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 10:32:54 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[closure]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[timeout]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=502</guid>
		<description><![CDATA[You might be knowing how to call setTimeout javascript function. It is simple setTimeout(myFunction, myTimeoutInMilliSeconds); But if you want to pass a parameter with myFunction setTimeout(myFunction(para), myTimeoutInMilliSeconds); // won't work The javascript closure comes as a great rescue. setTimeout(function(){myFunction(para)}, myTimeoutInMilliSeconds); This is best example of using closure.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=502&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You might be knowing how to call <a href="http://www.w3schools.com/js/js_timing.asp">setTimeout javascript function</a>. It is simple<br />
<code>setTimeout(myFunction, myTimeoutInMilliSeconds);</code></p>
<p>But if you want to pass a parameter with myFunction<br />
<code>setTimeout(myFunction(para), myTimeoutInMilliSeconds);  // won't work</code></p>
<p>The <a href="http://jibbering.com/faq/notes/closures/">javascript closure</a> comes as a great rescue.<br />
<code>setTimeout(function(){myFunction(para)}, myTimeoutInMilliSeconds);</code></p>
<p>This is best example of using closure.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=502&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2010/12/16/calling-function-with-parameter-in-settimeout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>Accidental global variable in JavaScript</title>
		<link>http://vkanakaraj.wordpress.com/2010/11/23/accidental-global-variable-in-javascript/</link>
		<comments>http://vkanakaraj.wordpress.com/2010/11/23/accidental-global-variable-in-javascript/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 11:06:59 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[global]]></category>
		<category><![CDATA[scope]]></category>
		<category><![CDATA[variable]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=485</guid>
		<description><![CDATA[Global variable in JavaScript is bad. Even if you aware of this, you may end of with some global variable accidentally. Consider the code below here b is global because Variable declaration only goes to variable a but not b. So here the variable b becomes global. A better solution would be Is it helpful?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=485&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Global variable in JavaScript is bad. Even if you aware of this, you may end of with some global variable accidentally. Consider the code below<br />
<pre class="brush: jscript;">
// function definition
function foo(){
  // variable declaration and initialisation
  var a, b = 0;
}
</pre></p>
<p>here b is global because<br />
<pre class="brush: jscript;">
// JavaScript will interpret as follows
var a = (b = 0);
</pre></p>
<p>Variable declaration only goes to variable a but not b. So here the variable b becomes global. A better solution would be</p>
<p><pre class="brush: jscript;">
// declare both first
var a,b
// assign values after
a=b=0;
</pre></p>
<p>Is it helpful? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/485/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=485&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2010/11/23/accidental-global-variable-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
		<item>
		<title>create scope inside if, in javascript</title>
		<link>http://vkanakaraj.wordpress.com/2010/11/15/create-scope-inside-if-in-javascript/</link>
		<comments>http://vkanakaraj.wordpress.com/2010/11/15/create-scope-inside-if-in-javascript/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 10:41:02 +0000</pubDate>
		<dc:creator>rajakvk</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[hoisting]]></category>
		<category><![CDATA[private]]></category>
		<category><![CDATA[scope]]></category>

		<guid isPermaLink="false">http://vkanakaraj.wordpress.com/?p=483</guid>
		<description><![CDATA[Here is the code for creating scope inside if block. If it is strange to you, here are some clues If it surprises you that the answer is &#8220;10&#8243;? Here goes another is it terrified to see the browser alert &#8220;1&#8243;? here goes last one&#8230; Try the following in Firebug: This is because JavaScript has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=483&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is the code for creating scope inside if block.</p>
<p><pre class="brush: jscript;">
function foo() {
  var x = 1;
  if (x) {
    (function () {
      var x = 2;
      // some other code
     }());
  }
  // x is still 1.
}
</pre></p>
<p>If it is strange to you, here are some clues</p>
<p><pre class="brush: jscript;">
var foo = 1;
function bar() {
  if (!foo) {
    var foo = 10;
  }
  alert(foo);
}
bar();
</pre></p>
<p>If it surprises you that the answer is &#8220;10&#8243;? Here goes another</p>
<p><pre class="brush: jscript;">
var a = 1;
function b() {
  a = 10;
  return;
  function a() {}
}
b();
alert(a);
</pre></p>
<p>is it terrified to see the browser alert &#8220;1&#8243;? here goes last one&#8230;</p>
<p>Try the following in Firebug:</p>
<p><pre class="brush: jscript;">
var x = 1;
console.log(x); // 1
if (true) {
  var x = 2;
  console.log(x); // 2
}
console.log(x); // 2
</pre></p>
<p>This is because JavaScript has function-level scope.<br />
One more concept is variable hoisting. The simplest example is</p>
<p><pre class="brush: jscript;">
function foo() {
  bar();
  var x = 1;
}
</pre></p>
<p>is actually interpreted like this:</p>
<p><pre class="brush: jscript;">
function foo() {
  var x;
  bar();
  x = 1;
}
</pre></p>
<p>I know, this post will not give you fair idea what Im talking about. But run the code in firebug, if you are curious, please dig on these keywords in google<a href="http://www.google.co.in/search?sourceid=chrome&amp;ie=UTF-8&amp;q=javascript+hoisting"> javascript hoisting</a>, <a href="http://www.google.co.in/search?sourceid=chrome&amp;ie=UTF-8&amp;q=javascript+scope">javascript scope</a>.</p>
<p>The main purpose of this post is to invoke your curiosity. Happy JavaScripting !!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkanakaraj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkanakaraj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkanakaraj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkanakaraj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vkanakaraj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vkanakaraj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vkanakaraj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vkanakaraj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkanakaraj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkanakaraj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkanakaraj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkanakaraj.wordpress.com/483/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkanakaraj.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkanakaraj.wordpress.com/483/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkanakaraj.wordpress.com&amp;blog=6336213&amp;post=483&amp;subd=vkanakaraj&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vkanakaraj.wordpress.com/2010/11/15/create-scope-inside-if-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edbf34a267bc2720ed872a932553fe7f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rajakvk</media:title>
		</media:content>
	</item>
	</channel>
</rss>
