<?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/"
	>

<channel>
	<title>Programming &#38; technology &#187; Javascript</title>
	<atom:link href="http://limborey.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://limborey.com</link>
	<description>some useful stuff related to Programming Language, Pattern &#38; technology</description>
	<lastBuildDate>Sun, 30 May 2010 08:07:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>JavaScript in Object-Oriented Way</title>
		<link>http://limborey.com/2009/10/05/javascript-in-object-oriented-way/</link>
		<comments>http://limborey.com/2009/10/05/javascript-in-object-oriented-way/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 04:34:49 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=137</guid>
		<description><![CDATA[Here&#8217;s my presentation slide during barcamp phnom penh 2009:
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my presentation slide during barcamp phnom penh 2009:</p>
<object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=id=2125591&amp;doc=javascriptinobject-orientedway-update-091004232318-phpapp02" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><param name="wmode" value="transparent" /><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=id=2125591&amp;doc=javascriptinobject-orientedway-update-091004232318-phpapp02" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355" wmode="transparent"></embed></object>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/10/05/javascript-in-object-oriented-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>progress bar using JavaScript</title>
		<link>http://limborey.com/2009/09/30/progress-bar-using-javascript/</link>
		<comments>http://limborey.com/2009/09/30/progress-bar-using-javascript/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 04:51:17 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=129</guid>
		<description><![CDATA[Here&#8217;s a littile progress bar I&#8217;ve created using JavaScript. I&#8217;ve use JavaScript setInterval() to increase the progress bar &#38; clearInterval() to stop progress bar.

//Create dom
var bar = document.createElement(&#34;div&#34;);
progressBar = document.createElement(&#34;div&#34;);
with(bar.style){
    width = &#34;200px&#34;;
    height = &#34;10px&#34;;
    position = &#34;absolute&#34;;
    border = &#34;1px solid [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a littile progress bar I&#8217;ve created using JavaScript. I&#8217;ve use JavaScript setInterval() to increase the progress bar &amp; clearInterval() to stop progress bar.</p>
<pre class="brush: jscript;">
//Create dom
var bar = document.createElement(&quot;div&quot;);
progressBar = document.createElement(&quot;div&quot;);
with(bar.style){
    width = &quot;200px&quot;;
    height = &quot;10px&quot;;
    position = &quot;absolute&quot;;
    border = &quot;1px solid #949DAD&quot;;
};

with(progressBar.style){
    width = &quot;0px&quot;;
    height = &quot;100%&quot;;
    background = &quot;#D4E4FF none repeat scroll 0 0&quot;;
};

bar.appendChild(progressBar);
document.body.appendChild(bar);

//start setInterval
var x = window.setInterval(
	function(){
                progressBar.style.width = parseInt(progressBar.style.width) + 5 + &quot;px&quot;;
            //stop interval when progress bar width = 200
            if(parseInt(progressBar.style.width) == 200) clearInterval(x);
	},
	40
);
</pre>

<a href='http://limborey.com/2009/09/30/progress-bar-using-javascript/progressbar0/' title='progressbar0'><img width="150" height="37" src="http://limborey.com/wp-content/uploads/2009/09/progressbar0-150x37.png" class="attachment-thumbnail" alt="progress bar" title="progressbar0" /></a>
<a href='http://limborey.com/2009/09/30/progress-bar-using-javascript/progressbar1/' title='progressbar1'><img width="150" height="48" src="http://limborey.com/wp-content/uploads/2009/09/progressbar1-150x48.png" class="attachment-thumbnail" alt="progress bar" title="progressbar1" /></a>
<a href='http://limborey.com/2009/09/30/progress-bar-using-javascript/progressbar2/' title='progressbar2'><img width="150" height="36" src="http://limborey.com/wp-content/uploads/2009/09/progressbar2-150x36.png" class="attachment-thumbnail" alt="progress bar" title="progressbar2" /></a>
<a href='http://limborey.com/2009/09/30/progress-bar-using-javascript/progressbar3/' title='progressbar3'><img width="150" height="40" src="http://limborey.com/wp-content/uploads/2009/09/progressbar3-150x40.png" class="attachment-thumbnail" alt="" title="progressbar3" /></a>

]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/09/30/progress-bar-using-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JavaScript Inheritance: modify property in parent class</title>
		<link>http://limborey.com/2009/08/11/javascript-inheritance-modify-property-in-parent-class/</link>
		<comments>http://limborey.com/2009/08/11/javascript-inheritance-modify-property-in-parent-class/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 06:46:17 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=112</guid>
		<description><![CDATA[In the following code, there&#8217;s a problem which is faced when we&#8217;re using inheritance through prototype.
Now, we have a parent class Person, and we have a child class Student which inherit from Person. As a default, we want to set gender to &#8220;Male&#8221;.

var Person = function(){
    this.object = {&#34;name&#34;: &#34;&#34;, &#34;gender&#34;: &#34;Male&#34;};
}

Person.prototype.sayHi [...]]]></description>
			<content:encoded><![CDATA[<p>In the following code, there&#8217;s a problem which is faced when we&#8217;re using inheritance through prototype.</p>
<p>Now, we have a parent class Person, and we have a child class Student which inherit from Person. As a default, we want to set gender to &#8220;Male&#8221;.</p>
<pre class="brush: jscript;">
var Person = function(){
    this.object = {&quot;name&quot;: &quot;&quot;, &quot;gender&quot;: &quot;Male&quot;};
}

Person.prototype.sayHi = function(){
    console.log (&quot;Hi! I am &quot; + this.object.name);
}

Person.prototype.sayGender = function(){
    console.log (&quot;I am &quot; + this.object.gender);
}

var Student = function(){}
Student.prototype = new Person();

var victoria = new Student();
victoria.object.name = &quot;Vitoria&quot;;
victoria.object.gender = &quot;Female&quot;
victoria.sayHi();
victoria.sayGender();

var sam = new Student();
sam.object.name = &quot;Sam&quot;;
sam.sayHi();
sam.sayGender();
</pre>
<p>here&#8217;s the result:</p>
<div style="border:1px solid blue;margin-left:5px;">Hi! I am Votoria<br />
I am Female<br />
Hi! I am Sam<br />
I am Female</div>
<p>As we see, the default gender &#8220;Male&#8221; has been alter to &#8220;Female&#8221;. we can prevent the default gender in the Person class to be altered by adding &#8220;<span style="color:#0000ff;">Person.apply(this);</span>&#8221; Student class.</p>
<p>After added, the code will look like this:</p>
<pre class="brush: jscript;">
var Person = function(){
    this.object = {&quot;name&quot;: &quot;&quot;, &quot;gender&quot;: &quot;Male&quot;};
}

Person.prototype.sayHi = function(){
    console.log (&quot;Hi! I am &quot; + this.object.name);
}

Person.prototype.sayGender = function(){
    console.log (&quot;I am &quot; + this.object.gender);
}

var Student = function(){
    Person.apply(this);
}
Student.prototype = new Person();

var victoria = new Student();
victoria.object.name = &quot;Vitoria&quot;;
victoria.object.gender = &quot;Female&quot;
victoria.sayHi();
victoria.sayGender();

var sam = new Student();
sam.object.name = &quot;Sam&quot;;
sam.sayHi();
sam.sayGender();
</pre>
<p>here&#8217;s the result:</p>
<div style="border:1px solid blue;margin-left:5px;">Hi! I am Votoria<br />
I am Female<br />
Hi! I am Sam<br />
I am Male</div>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/08/11/javascript-inheritance-modify-property-in-parent-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Array.filter</title>
		<link>http://limborey.com/2009/07/17/javascript-array-filter/</link>
		<comments>http://limborey.com/2009/07/17/javascript-array-filter/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 10:53:26 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=108</guid>
		<description><![CDATA[filter():  runs a function on every item in the array and returns an array of all items for which the function returns true.
Syntax:
var filteredArray = array.filter(callback[, thisObject]);

var arrayObj = [
            {&#34;uuid&#34;: &#34;C3EF0958-F530-0001-4793-1A3917C011DB&#34;,&#34;name&#34; : &#34;borey&#34;, &#34;position&#34;: &#34;developer&#34;},
        [...]]]></description>
			<content:encoded><![CDATA[<p><strong>filter()</strong>:  runs a function on every item in the array and returns an array of all items for which the function returns true.</p>
<p>Syntax:</p>
<p><strong>var filteredArray = array.filter(callback[, thisObject]);</strong></p>
<pre class="brush: jscript;">
var arrayObj = [
            {&quot;uuid&quot;: &quot;C3EF0958-F530-0001-4793-1A3917C011DB&quot;,&quot;name&quot; : &quot;borey&quot;, &quot;position&quot;: &quot;developer&quot;},
            {&quot;uuid&quot;: &quot;f47ac10b-58cc-4372-a567-0e02b2c3d479&quot;, &quot;name&quot;: &quot;sok&quot;, &quot;position&quot;: &quot;designer&quot;},
            {&quot;uuid&quot;: &quot;C3EF0948-3F50-0001-8E28-C560102CD090&quot;, &quot;name&quot;: &quot;seiha&quot;, &quot;position&quot;: &quot;developer&quot;},
            {&quot;uuid&quot;: &quot;C3EF094D-CD90-0001-3567-139E1BF01B14&quot;, &quot;name&quot;: &quot;dara&quot;, &quot;position&quot;: &quot;manager&quot;},
            {&quot;uuid&quot;: &quot;C3EF0953-FCD0-0001-A745-1C3019401ED7&quot;, &quot;name&quot;: &quot;meta&quot;, &quot;position&quot;: &quot;developer&quot;}
            ];

var updateValue = function(uuid, newObj){
    var obj = arrayObj.filter(function(obj){ return obj.uuid == uuid;  })[0];
    obj.uuid = newObj.uuid;
    obj.name = newObj.name;
    obj.position = newObj.position;
};

var displayArrayObjectValue = function(arrayObject){
    var length = arrayObject.length;
    for( var i = 0; i &lt; length; i++){
        console.log(arrayObject[i].uuid + ' '+arrayObject[i].name + ' '+arrayObject[i].position);
    }
}

var updatedObjValue = {&quot;uuid&quot;: &quot;3EF099C-4940-0001-A0F8-F92E1FC8C430&quot;, &quot;name&quot;: &quot;ibo&quot;, &quot;position&quot;: &quot;lead developer&quot;}

console.log('before change: ');
displayArrayObjectValue(arrayObj);

updateValue(&quot;C3EF0958-F530-0001-4793-1A3917C011DB&quot;, updatedObjValue);

console.log('after change: ');
displayArrayObjectValue(arrayObj);
</pre>
<p>The code above will update the value of object which has uuid = &#8220;C3EF0958-F530-0001-4793-1A3917C011DB&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/07/17/javascript-array-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript setInterval &amp; clearInterval</title>
		<link>http://limborey.com/2009/05/06/javascript-setinterval-clearinterval/</link>
		<comments>http://limborey.com/2009/05/06/javascript-setinterval-clearinterval/#comments</comments>
		<pubDate>Wed, 06 May 2009 11:26:59 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=97</guid>
		<description><![CDATA[An example to demonstrate how start interval &#38; stop it using javascript.

var x = window.setInterval(
	function(greeting, name){
		var m = document.createElement(&#34;div&#34;);
                with(m.style){
                    height [...]]]></description>
			<content:encoded><![CDATA[<p>An example to demonstrate how start interval &amp; stop it using javascript.</p>
<pre class="brush: jscript;">
var x = window.setInterval(
	function(greeting, name){
		var m = document.createElement(&quot;div&quot;);
                with(m.style){
                    height = &quot;2px&quot;;
                    width = &quot;50px&quot;;
                    position = &quot;relative&quot;;
                    backgroundColor= &quot;green&quot;;
                }
                document.body.appendChild(m);
	},
	1000,
	&quot;hello&quot;,
	&quot;world&quot;,
        document.body.onclick = function(){
	    clearInterval(x)
        }
);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/05/06/javascript-setinterval-clearinterval/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create object in javascript using JSON</title>
		<link>http://limborey.com/2009/05/04/create-object-in-javascript-using-json/</link>
		<comments>http://limborey.com/2009/05/04/create-object-in-javascript-using-json/#comments</comments>
		<pubDate>Mon, 04 May 2009 04:14:57 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=93</guid>
		<description><![CDATA[Here&#8217;s how we create javascript object using Javascript Object Notation (JSON). After the code below is executed, it would  show alert windows with text &#8220;Borey Lim&#8221;

//script to demonstrate creating object in javascript using JSON

var objectDemo = {
	firstName: &#34;&#34;,
	lastName: &#34;&#34;,
	displayName : function(){
		alert(this.firstName + &#34; &#34; + this.lastName);
	}
}

objectDemo.firstName = &#34;Borey&#34;;
objectDemo.lastName = &#34;Lim&#34;;
objectDemo.displayName();

]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how we create javascript object using Javascript Object Notation (JSON). After the code below is executed, it would  show alert windows with text &#8220;Borey Lim&#8221;</p>
<pre class="brush: jscript;">
//script to demonstrate creating object in javascript using JSON

var objectDemo = {
	firstName: &quot;&quot;,
	lastName: &quot;&quot;,
	displayName : function(){
		alert(this.firstName + &quot; &quot; + this.lastName);
	}
}

objectDemo.firstName = &quot;Borey&quot;;
objectDemo.lastName = &quot;Lim&quot;;
objectDemo.displayName();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/05/04/create-object-in-javascript-using-json/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flexible constructor in JavaScript</title>
		<link>http://limborey.com/2009/04/10/flexible-constructor-in-javascript/</link>
		<comments>http://limborey.com/2009/04/10/flexible-constructor-in-javascript/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 01:46:47 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=74</guid>
		<description><![CDATA[Javascript provides flexible constructor. Below are sample code that implement the flexible constructor:

var Student = function(_department, _course, _year){
	department = _department &#124;&#124; &#34;&#34;;
	course = _course &#124;&#124; &#34;&#34;;
	year = _year &#124;&#124; &#34;&#34;;

	this.set_department = function(_department){
		department = _department;
	}

	this.set_course = function(_course){
		course = _course;
	}

	this.set_year = function(_year){
		year = _year;
	}

	this.display_information = function(){
		console.log(&#34;Information of the student:&#34;);
		console.log(&#34;Department: &#34; + department);
		console.log(&#34;Course: &#34; + course);
		console.log(&#34;Year: &#34; + [...]]]></description>
			<content:encoded><![CDATA[<p>Javascript provides flexible constructor. Below are sample code that implement the flexible constructor:</p>
<pre class="brush: jscript;">
var Student = function(_department, _course, _year){
	department = _department || &quot;&quot;;
	course = _course || &quot;&quot;;
	year = _year || &quot;&quot;;

	this.set_department = function(_department){
		department = _department;
	}

	this.set_course = function(_course){
		course = _course;
	}

	this.set_year = function(_year){
		year = _year;
	}

	this.display_information = function(){
		console.log(&quot;Information of the student:&quot;);
		console.log(&quot;Department: &quot; + department);
		console.log(&quot;Course: &quot; + course);
		console.log(&quot;Year: &quot; + year);
	}
}

//constructor
var obj_student = new Student(&quot;Computer Information Scince&quot;, &quot;ICT&quot;, &quot;2&quot;);
obj_student.display_information();

var another_obj_student = new Student();
another_obj_student.set_department(&quot;Technology&quot;);
another_obj_student.set_course(&quot;BIS&quot;);
another_obj_student.set_year(&quot;Foundation&quot;);
another_obj_student.display_information();
</pre>
<p>Sample output:</pre>
<table border="0" width="100%" bgcolor="#99ffff">
<tbody>
<tr>
<td>Information of the student:<br />
Department: Computer Information Scince<br />
Course: ICT<br />
Year: 2<br />
Information of the student:<br />
Department: Technology<br />
Course: BIS<br />
Year: Foundation</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/04/10/flexible-constructor-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript inheritance</title>
		<link>http://limborey.com/2009/04/06/javascript-inheritance/</link>
		<comments>http://limborey.com/2009/04/06/javascript-inheritance/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 10:07:08 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=68</guid>
		<description><![CDATA[Inheritance in javascript can be implemented easily using the concept of mixin. Below is an exmple to demonstrate javascript inheritance:

ClassA = function(){
	this.display = function(){
		console.log(&#34;here's a display function in ClassA&#34;);
	}

	this.str = function(){
		return &#34;string in ClassA&#34;;
	}
}

ClassB = function(){
	ClassA.call(this);

//overriden method
	this.str = function(){
		return &#34;string in ClassB&#34;;
        }
}

//instantiate object of ClassB
obj = new [...]]]></description>
			<content:encoded><![CDATA[<p>Inheritance in javascript can be implemented easily using the concept of mixin. Below is an exmple to demonstrate javascript inheritance:</p>
<pre class="brush: jscript;">
ClassA = function(){
	this.display = function(){
		console.log(&quot;here's a display function in ClassA&quot;);
	}

	this.str = function(){
		return &quot;string in ClassA&quot;;
	}
}

ClassB = function(){
	ClassA.call(this);

//overriden method
	this.str = function(){
		return &quot;string in ClassB&quot;;
        }
}

//instantiate object of ClassB
obj = new ClassB();

//calling display method from ClassA
obj.display();

//this will invoke str method in ClassB NOT in ClassA
console.log(obj.str());
</pre>
<table border="0" width="100%" bgcolor="#99ffff">
<tbody>
<tr>
<td>here&#8217;s a display function in ClassA</td>
</tr>
<tr>
<td>string in ClassB string in ClassB</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/04/06/javascript-inheritance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript: delete property from object &amp; element from array</title>
		<link>http://limborey.com/2009/04/06/javascript-delete-property-from-object-element-from-array/</link>
		<comments>http://limborey.com/2009/04/06/javascript-delete-property-from-object-element-from-array/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 04:28:40 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/?p=63</guid>
		<description><![CDATA[As we are working with object or array, sometimes, we need to delete it&#8217;s property of element. Below is an example of a simple way to do it.


var display_before = function (str){
    return &#34;before delete &#34; + str;
}

var display_after = function (str){
    return &#34;after delete &#34; + str;
}

var obj = {x:12, y:15};
console.log(display_before(&#34;obj.x&#34;) + &#34; &#34; [...]]]></description>
			<content:encoded><![CDATA[<p>As we are working with object or array, sometimes, we need to delete it&#8217;s property of element. Below is an example of a simple way to do it.</p>
<pre class="brush: jscript;">

var display_before = function (str){
    return &quot;before delete &quot; + str;
}

var display_after = function (str){
    return &quot;after delete &quot; + str;
}

var obj = {x:12, y:15};
console.log(display_before(&quot;obj.x&quot;) + &quot; &quot; + obj.x);

//delete property x from object
delete obj.x;
console.log(display_after(&quot;obj.x&quot;) + &quot; &quot; + obj.x);

//delete array[2]
var array = [2, 4, 6, 8, 10]
console.log(display_before(&quot;array: &quot;) + array);

array.splice(2,1);    //delete value 6 from array
console.log(display_after(&quot;index 2 from array: &quot;) + array);
</pre>
<p>Sample result (in firebug plugin):</p>
<table border="0" width="100%" bgcolor="#99ffff">
<tbody>
<tr>
<td>before delete obj.x 12<br />
after delete obj.x undefined<br />
before delete array: 2,4,6,8,10<br />
after delete index 2 from array: 2,4,8,10</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/04/06/javascript-delete-property-from-object-element-from-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overloading method in javascript</title>
		<link>http://limborey.com/2009/02/09/overloading-method-in-javascript/</link>
		<comments>http://limborey.com/2009/02/09/overloading-method-in-javascript/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 10:43:00 +0000</pubDate>
		<dc:creator>Borey</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://limborey.wordpress.com/2009/02/09/overloading-method-in-javascript/</guid>
		<description><![CDATA[Since i&#8217;m going to write some code for the client side, I have to start learning OO javascript. What makes me surprise the most is how it is written. here are some codes i have tested:

as you can see in the code, i only create one function, however i can call in different ways. This [...]]]></description>
			<content:encoded><![CDATA[<p>Since i&#8217;m going to write some code for the client side, I have to start learning OO javascript. What makes me surprise the most is how it is written. here are some codes i have tested:</p>
<p><a href="http://1.bp.blogspot.com/_QDmlDbFKN-w/SZAMe0vTNvI/AAAAAAAAAAM/oJcDkZojg-w/s1600-h/overloading_js.jpeg"><img style="display:block;text-align:center;cursor:pointer;width:388px;height:286px;margin:0 auto 10px;" src="http://1.bp.blogspot.com/_QDmlDbFKN-w/SZAMe0vTNvI/AAAAAAAAAAM/oJcDkZojg-w/s320/overloading_js.jpeg" border="0" alt="" /></a><br />
as you can see in the code, i only create one function, however i can call in different ways. This is how dynamic Javascript is. Really Really dynamic!!!!<br />
<img src="/DOCUME%7E1/borey/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://limborey.com/2009/02/09/overloading-method-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
