<?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>Top Web2 &#187; Javascript</title>
	<atom:link href="http://topweb2.net/blog/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://topweb2.net/blog</link>
	<description>Javascript , CSS , XHTML  , Web 2 ,PHP  and more</description>
	<lastBuildDate>Tue, 11 May 2010 13:56:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>top 5 html5 games</title>
		<link>http://topweb2.net/blog/top-5-html5-games</link>
		<comments>http://topweb2.net/blog/top-5-html5-games#comments</comments>
		<pubDate>Tue, 11 May 2010 13:56:21 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[games]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=124</guid>
		<description><![CDATA[HTML 5 Canvas Games :-
html5 the new horse that many developers and company bets on such as Apple after their fight with flash and also the big and rich one google 
html5 brings to us new tools and techniques transforming the browser to rich and smart environment
one of the greatest things that html5 introduce is [...]]]></description>
			<content:encoded><![CDATA[<h1>HTML 5 Canvas Games :-</h1>
<p>html5 the new horse that many developers and company bets on such as Apple after their fight with flash and also the big and rich one google <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
html5 brings to us new tools and techniques transforming the browser to rich and smart environment<br />
one of the greatest things that html5 introduce is canvas element that magical element do more that expectation , for many years javascript developers try to animate and draw things over pure html but it wasnt stable and dont support any thing like rotating or transform or effects like shadow or gradient so if you tell any one before that you are going to develop a game that using only pure html &amp; javascript it will call you a crazy or an amateur<br />
but canvas element support all of those it support 2d drawing , image effects , text effects and many other things without crash the browser or being so heavy and slow</p>
<h3>what about 3d:</h3>
<p>canvas element till now support only 2d but it will support 3d soon via engine using some of openGL libraries or maybe DirectX when it happens we will see full 3d games runs from native browsers without any kind of plugins</p>
<p>ok lets see some actions</p>
<h2>Top 10 HTML5 Games:-</h2>
<h3>1- z-war:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/z-war.jpg"><img class="alignnone size-medium wp-image-125" title="z-war" src="http://topweb2.net/blog/wp-content/uploads/2010/05/z-war.jpg" alt="" width="300" height="224" /></a></p>
<p>the best game till now written in javascript using DHTML or Canvas big game with music supporting good accelerating and semi 3d using good canvas effects and load every element as canvas if you choose canvas style in rendering. created by Darkimmortal</p>
<h3>2- canvasscape:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/canvascape.jpg"><img class="alignnone size-medium wp-image-126" title="canvascape" src="http://topweb2.net/blog/wp-content/uploads/2010/05/canvascape.jpg" alt="" width="300" height="209" /></a></p>
<p>its a semi 3d game developed by Ben Joffe and there is two version of these game one without texture and one with<br />
use the keyboard arrows to move and shot your enemies</p>
<h3>3- fred jones in adventure:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/fred-jones-adventureland.jpg"><img class="alignnone size-medium wp-image-127" title="fred-jones-adventureland" src="http://topweb2.net/blog/wp-content/uploads/2010/05/fred-jones-adventureland.jpg" alt="" width="300" height="187" /></a></p>
<p>lovely and highly programmed one created by:PurpleFloyd its support 5 levels with various kind of enemies good one</p>
<h3>4- flashy tetris:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/tetris.jpg"><img class="alignnone size-medium wp-image-128" title="tetris" src="http://topweb2.net/blog/wp-content/uploads/2010/05/tetris.jpg" alt="" width="300" height="187" /></a></p>
<p>who dont love tetris ? <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but now its done by html5 canvas it fast well rendered the game uses a haXe scene graph engine called Easel its engine support rich animation and flashy effects.</p>
<h3>5-jsCanvas Bike:-</h3>
<p><a href="http://topweb2.net/blog/wp-content/uploads/2010/05/canvas-bike.jpg"><img class="alignnone size-medium wp-image-129" title="canvas-bike" src="http://topweb2.net/blog/wp-content/uploads/2010/05/canvas-bike.jpg" alt="" width="300" height="187" /></a></p>
<p>motocross game you earn points for doing flips , good one but its kinda slow</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/top-5-html5-games/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>seo friendly ajax</title>
		<link>http://topweb2.net/blog/seo-friendly-ajax</link>
		<comments>http://topweb2.net/blog/seo-friendly-ajax#comments</comments>
		<pubDate>Tue, 04 May 2010 13:39:47 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=113</guid>
		<description><![CDATA[hey guys its been a long time since last time i wrote in this blog , i want you to excuse me for that because it was a tough time to me , any way lets hit the point in this article we are here to talk about most technique used today in the modern [...]]]></description>
			<content:encoded><![CDATA[<p>hey guys its been a long time since last time i wrote in this blog , i want you to excuse me for that because it was a tough time to me , any way lets hit the point in this article we are here to talk about most technique used today in the modern web site .</p>
<p>the main reason that makes me writing this articles is one of my friends told me that he is not going to use ajax in his web site because he needs to be highly seo optimized.</p>
<p>many reason that makes my friend and many other think like that is poor developers that uses this technology in the bad way , you can write javascript code to perform ajax in many ways some of it can get the benefits of seo and we are here to clear and study that ways so lets begin</p>
<p>first : google or other search engines cant crawl javascript so the secret is dont EVER let javascript handle the links without html support in another meaning lets see that example</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;mylink.html&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;anyone.jpg&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;anyone.jpg&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;location.href='mylink.html'&quot;</span> <span style="color: #339933;">/&gt;</span></pre></div></div>

<p>the two lines declare two simple ways to link and the two ways actually work but one of them is seo friendly which is the first one because we use simple html tag attribute (href)</p>
<p>the same thing in the ajax make the links in simple anchors with (href) attribute but handle click event of this anchor make the ajax request and prevent the browser default action by returning false</p>
<p>lets see it in action</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a.ajx'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.response'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ajaxfile.html'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ajaxfile.html&quot;</span> <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ajx&quot;</span><span style="color: #339933;">&gt;</span>Click me i am seo friendly ajax link<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;response&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>when search engine crawel the page it reads only the html tags so he read this anchor and (href) attribute and follow the page ajaxfile.html to crawel it and add it to the site map</p>
<p>and when human go to this page and click on the link the click event fired and we do tha ajax request and because the return false the page never reloaded</p>
<p>this is the point think as the search engine and you will win</p>
<p>feel free to feedback me</p>
<p>thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/seo-friendly-ajax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>stop spam on your blog &#8211; WP Email Guard</title>
		<link>http://topweb2.net/blog/stop-spam-on-your-blog-wp-email-guard</link>
		<comments>http://topweb2.net/blog/stop-spam-on-your-blog-wp-email-guard#comments</comments>
		<pubDate>Thu, 10 Sep 2009 13:10:25 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=64</guid>
		<description><![CDATA[did you getting tired from spammers , are you afraid of post any emails in your posts to avoid spammers crawlers , do you tried any solutions before , now post emails easly and without fear with this awesome plugin , get it now from here http://wordpress.org/extend/plugins/wp-email-guard/

the idea behind this plugin is to replace normal email [...]]]></description>
			<content:encoded><![CDATA[<p>did you getting tired from spammers , are you afraid of post any emails in your posts to avoid spammers crawlers , do you tried any solutions before , now post emails easly and without fear with this awesome plugin , get it now from here <a href="http://wordpress.org/extend/plugins/wp-email-guard/" target="_blank">http://wordpress.org/extend/plugins/wp-email-guard/</a></p>
<p><span id="more-64"></span></p>
<p>the idea behind this plugin is to replace normal email with special javascript code which the spammers cant crawel and read it so the email remain secure and at the same time it simple and readable for humans  , enjoy it and if you like it please rate us in wordpress plugins</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/stop-spam-on-your-blog-wp-email-guard/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jquery &#8211; basic selectors</title>
		<link>http://topweb2.net/blog/jquery-basic-selectors</link>
		<comments>http://topweb2.net/blog/jquery-basic-selectors#comments</comments>
		<pubDate>Wed, 04 Mar 2009 16:17:43 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://topweb2.net/?p=11</guid>
		<description><![CDATA[hi guys we will talk to day about my favourite javascript framework ( jquery )
and the first lesson you should learn in jquery is Selectors or how you can select a DOM element in the page
ok lets start
first to select a DOM you must wait the full page to load, the javascript programmers know that [...]]]></description>
			<content:encoded><![CDATA[<p>hi guys we will talk to day about my favourite javascript framework ( jquery )<br />
and the first lesson you should learn in jquery is Selectors or how you can select a DOM element in the page</p>
<p>ok lets start</p>
<p>first to select a DOM you must wait the full page to load, the javascript programmers know that if we want to control an element in the web page we use<br />
window.onload event to run the code in it<br />
but the problem is that this event will fire after all page downloaded including images and other heavy element</p>
<p>jquery has a similar event but the event fired when the DOM is ready</p>
<p><code><br />
$('document').ready(function(){<br />
// your code here<br />
});<br />
</code></p>
<p><span id="more-11"></span></p>
<p>ok now we know when we will run our code and how and where we write <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>now the good part of our articles : selectors</p>
<p>if you know css you will use selectors perfectly because simply<br />
jquery selectors = CSS<br />
yea its a true, don&#8217;t believe me look at the next example</p>
<p><code><br />
//jquery code<br />
$('document').ready(function(){<br />
$('div.mydiv').hide('slow');<br />
});<br />
</code></p>
<p><code><br />
/* css code */<br />
div.mydiv{<br />
display:none;<br />
}<br />
</code></p>
<p>do you believe me now try to pick a different between the jquery selector and css selector <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  no different</p>
<p>so if you want to select a element with id simple_id<br />
simply type<br />
$(&#8216;#simple_id&#8217;)</p>
<p>global elements</p>
<p>for example<br />
$(&#8216;a&#8217;)</p>
<p>class<br />
$(&#8216;.simple_class&#8217;)</p>
<p>just know css selectors and use it with jquery</p>
<p>the next post in jquery i will discuss the advanced selectors with jquery &amp; css 3 , so keep watching me <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/jquery-basic-selectors/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Top 10 java script frameworks</title>
		<link>http://topweb2.net/blog/top-10-javascript-frameworks</link>
		<comments>http://topweb2.net/blog/top-10-javascript-frameworks#comments</comments>
		<pubDate>Tue, 03 Mar 2009 16:23:07 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://topweb2.net/?p=3</guid>
		<description><![CDATA[we will talking today about javascript frameworks
first : what we mean by javascript framework ??
&#8220;A software framework, in computer programming, is an abstraction in which common code providing generic functionality can be selectively overridden or specialized by user code providing specific functionality.&#8221;
from wikipedia
so we can say that javascript framework is abstracting to tranditional javascript codes [...]]]></description>
			<content:encoded><![CDATA[<p>we will talking today about javascript frameworks</p>
<p>first : what we mean by javascript framework ??<br />
&#8220;A <strong>software framework</strong>, in computer programming, is an abstraction in which common code providing generic functionality can be selectively overridden or specialized by user code providing specific functionality.&#8221;<br />
from wikipedia</p>
<p>so we can say that javascript framework is abstracting to tranditional javascript codes so you can do amazing things with javascript just with a few lines of code<br />
you can control DOM ,doing amazing animation , ajax and alot of cool things that helps when you develop a website</p>
<p>now ,we  knows what it means but there is alot of frameworks what is the best</p>
<p>we will go in a short tour with the best 10 javascript frameworks</p>
<p><span id="more-3"></span></p>
<p>1- jquery:-</p>
<p>the best framework ever for javascript , specially with the new realese 1.3 the jquery become lighter , faster , more powerful<br />
you can control DOM easly with the DOM engine using CSS3</p>
<p>website :-  <cite><a href="http://www.jquery.com" target="_blank">jquery.com</a> </cite></p>
<p>license : <a title="MIT License" href="http://en.wikipedia.org/wiki/MIT_License" target="_blank">MIT</a> &amp; <a title="GPL" href="http://en.wikipedia.org/wiki/GPL" target="_blank">GPL</a></p>
<p>2- prototype:-</p>
<p>the fastest framework it really very fast an also contain a good DOM engine but not powerful as  jquery.<br />
note: i tried very hard to make prototype works side by side but i failed so if you have any ideas please suggest:)</p>
<p>website:- <cite><a href="http://www.prototypejs.org" target="_blank">www.prototypejs.org</a></cite></p>
<p>license : <a title="GPL" href="http://en.wikipedia.org/wiki/GPL" target="_blank">GPL</a></p>
<p>3- mootools:-</p>
<p>its a really a nice one , honestly i didn&#8217;t work with it but many developers prefer it , i saw many demos but i didnt test its DOM engine ( if you test it please feed back me)</p>
<p>website:- <cite><a href="http://www.mootools.net" target="_blank">mootools.net</a></cite></p>
<p>license : <a title="GPL" href="http://en.wikipedia.org/wiki/GPL" target="_blank">GPL</a></p>
<p>4- google web toolkit:-</p>
<p>big big big so big one , it have many features i cant even imagine how google developers code it , google <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
in short:- it perfectly for large projects , it have many features you cant find in any other framework</p>
<p>website :- <cite><a href="http://www.code.google.com" target="_blank">code.google.com/webtoolkit</a></cite></p>
<p>license:- <a title="Apache License" href="http://en.wikipedia.org/wiki/Apache_License" target="_blank">Apache License</a></p>
<p>5- Ext Js:-<br />
big framework too , but so slow in compare with other frameworks , so big and so complicated too.</p>
<p>website :- <cite><a href="http://www.extjs.com" target="_blank">extjs.com</a></cite></p>
<p>license:- commercial version  1.3</p>
<p>6- DOJO :-<br />
new framework i didnt test it , but many developers beign to work with , so easy and powerful , and may be it face jquery &amp; prototype &amp; mootools one day <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>website :- <cite><a href="http://www.dojotoolkit.org" target="_blank">www.dojotoolkit.org</a></cite></p>
<p>license :- <a title="BSD License" href="http://en.wikipedia.org/wiki/BSD_License" target="_blank">BSD</a> &amp; <a title="Academic Free License" href="http://en.wikipedia.org/wiki/Academic_Free_License" target="_blank">AFL</a></p>
<p>7- script.aculo.us :-<br />
poor framework , based on protoype ,  it have small features and i dont recommended it</p>
<p>website :- <cite><a href="http://www.script.aculo.us" target="_blank">script.aculo.us</a></cite></p>
<p>license : <a title="GPL" href="http://en.wikipedia.org/wiki/GPL" target="_blank">GPL</a></p>
<p>8- YUI:-<br />
big framework coded by yahoo , but so big so complex as ext js</p>
<p>website:- <cite><a href="http://developer.yahoo.com/yui" target="_blank">developer.yahoo.com/yui</a></cite></p>
<p>license:- <a title="BSD License" href="http://en.wikipedia.org/wiki/BSD_License" target="_blank">BSD License</a></p>
<p>9- midori:-<br />
small but good framework for small projects</p>
<p>website :- <cite><a href="http://www.midorijs.com" target="_blank">www.midorijs.com</a></cite></p>
<p>license :- <a title="MIT License" href="http://en.wikipedia.org/wiki/MIT_License" target="_blank">MIT License</a></p>
<p>10-MochiKit:-<br />
small but good framework for small projects, highly documented as they said</p>
<p>website:- <cite><a href="http://www.mochikit.com" target="_blank">mochikit.com</a></cite></p>
<p>license :- <a title="MIT License" href="http://en.wikipedia.org/wiki/MIT_License" target="_blank">MIT</a> &amp; <a title="Academic Free License" href="http://en.wikipedia.org/wiki/Academic_Free_License" target="_blank">AFL</a></p>
<p>that is all i have for now , if you have any other javascript frameworks do you want to add to this list , just comment <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>references:- frameworks websites , wikipedia , and   google</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/top-10-javascript-frameworks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
