<?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>Rajesh Segu &#187; Web Design</title>
	<atom:link href="http://www.rajeshsegu.com/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rajeshsegu.com</link>
	<description>Technology and Random</description>
	<lastBuildDate>Sat, 03 Jul 2010 18:04:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Evaluating JSON Data</title>
		<link>http://www.rajeshsegu.com/2009/12/evaluating-json-data/</link>
		<comments>http://www.rajeshsegu.com/2009/12/evaluating-json-data/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 17:25:00 +0000</pubDate>
		<dc:creator>rajeshsegu</dc:creator>
				<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.rajeshsegu.com/?p=60</guid>
		<description><![CDATA[Evaluating JSON data is the most fundamental and common use-case for any modern ajax based web application. The most commonly used method to evaluate json strings has always been eval() but there are few other methodologies that I have learnt recently. 1. eval() var jsonData = window[&#34;eval&#34;](  &#34;(&#34;  +  jsonString +  &#34;)&#34;   ); Support:  All Browsers [...]]]></description>
			<content:encoded><![CDATA[<p>Evaluating <a title="json.org" href="http://json.org" target="_blank">JSON</a> data is the most fundamental and common use-case for any modern ajax based web application. The most commonly used method to evaluate json strings has always been eval() but there are few other methodologies that I have learnt recently.</p>
<h3>1. eval()</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">var jsonData = window[&quot;eval&quot;](  &quot;(&quot;  +  jsonString +  &quot;)&quot;   );</pre></div></div>

<p>Support:  All Browsers variants</p>
<h3>2. new Function()</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">var jsonData = new Function( &quot; return (  &quot;  +  jsonString +   &quot;  ); &quot; );</pre></div></div>

<p>Support: All Browsers variants</p>
<h3>3. Native JSON Object</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">var jsonData =  JSON.parse( jsonString );</pre></div></div>

<p>Support: IE8, FF3</p>
<p><a href="http://weblogs.asp.net/yuanjian/archive/2009/03/22/json-performance-comparison-of-eval-new-function-and-json.aspx" target="_blank">Performance benchmarks</a> for these JSON evaluation methods proves that<br />
Performance of Native   <strong>JSON Object &gt; eval() &gt; new Function</strong><br />
PS: new Function &gt; eval() for the gekho browsers</p>
<p>So, we could create a wrapper to make sure JSON data is evaluated efficiently.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">function parseJSONData( jsonString ){
         if(JSON !== 'undefined' ){
             return JSON.parse( jsonString );
        }
       if(AjxEnv.isGekho){
            return new Function( &quot;return (  &quot;+jsonString+ &quot; ); &quot; );
       }
       return window['eval'](  &quot;(&quot; + jsonString + &quot;)&quot;  );
};</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.rajeshsegu.com/2009/12/evaluating-json-data/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>30 Best CSS Examples</title>
		<link>http://www.rajeshsegu.com/2008/05/30-best-css-examples/</link>
		<comments>http://www.rajeshsegu.com/2008/05/30-best-css-examples/#comments</comments>
		<pubDate>Thu, 01 May 2008 06:10:51 +0000</pubDate>
		<dc:creator>rajeshsegu</dc:creator>
				<category><![CDATA[HTML&CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://www.rajeshsegu.com/?p=14</guid>
		<description><![CDATA[The best way to learn CSS is through trying out or learning from what others have tried. Recently, I chose the later to understand CSS better. Of the many lying out there on the internet, I found this link the best suited for different approaches of modern CSS techniques 30 Exceptional CSS Techniques and Examples [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The best way to learn CSS is through trying out or learning from what others have tried. Recently, I chose the later to understand CSS better. Of the many lying out there on the internet, I found this link the best suited for different approaches of modern CSS techniques</p>
<h2><a title="Permanent Link to 30 Exceptional CSS Techniques and Examples" rel="bookmark" href="http://sixrevisions.com/css/30_css_techniques_examples">30 Exceptional CSS Techniques and Examples</a></h2>
<p style="text-align: justify;">Hope these 30 exceptional CSS examples would guide you to something new and interesting .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rajeshsegu.com/2008/05/30-best-css-examples/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutuorials for Advanced JavaScript</title>
		<link>http://www.rajeshsegu.com/2008/04/tutuorials-for-advanced-javascript/</link>
		<comments>http://www.rajeshsegu.com/2008/04/tutuorials-for-advanced-javascript/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 13:20:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ajax]]></category>

		<guid isPermaLink="false">http://www.rajeshsegu.com/?p=7</guid>
		<description><![CDATA[These are the best tutorials out there, don&#8217;t miss these if you are/wannabe javascript programmer. ( Hold your nerves untill these videos load. ) PS: Douglas Crockford is the JavaScript architect of Yahoo!]]></description>
			<content:encoded><![CDATA[<p>These are the best tutorials out there, don&#8217;t miss these if you are/wannabe javascript programmer. ( Hold your nerves untill these videos load. )<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="512" height="463" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="flashVars" value="playlistId=100444713&amp;isCarouselEnabled=1&amp;lang=en-us&amp;intl=us" /><param name="src" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.1.14" /><embed type="application/x-shockwave-flash" width="512" height="463" src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.1.14" flashvars="playlistId=100444713&amp;isCarouselEnabled=1&amp;lang=en-us&amp;intl=us" allowfullscreen="true"></embed></object></p>
<p>PS:                                                  Douglas Crockford is the JavaScript architect of Yahoo!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rajeshsegu.com/2008/04/tutuorials-for-advanced-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
