<?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; JQuery</title>
	<atom:link href="http://topweb2.net/blog/category/jquery/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>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>jquery 1.3 cheat sheet</title>
		<link>http://topweb2.net/blog/jquery-1-3-cheat-sheet</link>
		<comments>http://topweb2.net/blog/jquery-1-3-cheat-sheet#comments</comments>
		<pubDate>Thu, 10 Dec 2009 19:23:17 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[cheat sheets]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=102</guid>
		<description><![CDATA[without a lot of talking
jquery cheat sheet in png format  1920×1200

source gmtaz.com
]]></description>
			<content:encoded><![CDATA[<p>without a lot of talking</p>
<p>jquery cheat sheet in png format  1920×1200</p>
<p style="text-align: center;"><a href="http://topweb2.net/blog/wp-content/uploads/2009/12/jquery_1_3.png"><img class="size-medium wp-image-103 aligncenter" title="jquery_1_3" src="http://topweb2.net/blog/wp-content/uploads/2009/12/jquery_1_3.png" alt="jquery_1_3" width="300" height="187" /></a></p>
<p style="text-align: left;">source <a href="http://www.gmtaz.com/index.php/jquery-13-cheatsheet-wallpaper/" target="_blank">gmtaz.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/jquery-1-3-cheat-sheet/feed</wfw:commentRss>
		<slash:comments>0</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>
