<?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>Asim Sajjad</title>
	<atom:link href="http://asajjad.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://asajjad.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sun, 21 Dec 2008 13:41:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='asajjad.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Asim Sajjad</title>
		<link>http://asajjad.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://asajjad.wordpress.com/osd.xml" title="Asim Sajjad" />
	<atom:link rel='hub' href='http://asajjad.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Jquery for Beginners</title>
		<link>http://asajjad.wordpress.com/2008/12/21/jquery-for-beginners/</link>
		<comments>http://asajjad.wordpress.com/2008/12/21/jquery-for-beginners/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 13:41:08 +0000</pubDate>
		<dc:creator>Asim Sajjad</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://asajjad.wordpress.com/?p=12</guid>
		<description><![CDATA[Every web developer not all 100% but i think 99% of developer must use the javascript in there project, for input validation , showing and hiding of the controls, slowly showing and slowly hiding etc .They have used the javascript in there project and they have write same code again and again in different projects [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asajjad.wordpress.com&amp;blog=5875180&amp;post=12&amp;subd=asajjad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every web developer not all 100% but i think 99% of developer must use the javascript in there project, for input validation , showing and hiding of the controls, slowly showing and slowly hiding etc .They have used the javascript in there project and they have write same code again and again in different projects or even in different form/pages. I personally love to use javascript in my web application where it is necessary and i love javascript coding. During my search on the javascript on net i have found many javascript libraries which can be use to achieve functionalists which i have mention above. The libraries include prototype, mootoo , jquery etc. All of these libraries are really good. But i have use the jquery and try to get more out of jquery library.<br />
Let us start how we can start with jquery. First of all you have to get latest version of the jquery file from the <a href="http://jquery.com/"><span style="font-weight:bold;color:#3333ff;">jquery</span></a> web site.</p>
<h2><a href="http://4.bp.blogspot.com/_EEu2SY0P-Jg/SUNGN9HLxDI/AAAAAAAAADQ/ap-S-LzEjss/s1600-h/Jquery.bmp"><img style="display:block;width:330px;cursor:pointer;height:253px;text-align:center;margin:0 auto 10px;" src="http://4.bp.blogspot.com/_EEu2SY0P-Jg/SUNGN9HLxDI/AAAAAAAAADQ/ap-S-LzEjss/s400/Jquery.bmp" border="0" alt="" /></a></h2>
<p>for user i have pasted the image of the location from where you can download the jquery file. as you can see there are two files which has same, the difference is in there size one is for production and one is for Development, you can download one of this or both. You can download the production file from <a href="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js">jquery-1.2.6.min.js</a> 54.5 KB. Next you have to include the jquery file into your page like this</p>
<p>&lt;<strong><span style="color:#a31515;">script</span> <span style="color:red;">src</span>=&#8221;scripts/jquery.js&#8221; <span style="color:red;">type</span>=&#8221;text/javascript&#8221;&gt;&lt;/<span style="color:#a31515;">script</span>&gt;<br />
</strong><br />
And this is the simple starting point for you reader who are just new to the jquery. you have to put this code in the script tag of type &#8216;text/javascript&#8217;.</p>
<div style="border:1px solid black;overflow:scroll;padding-left:2px;height:150px;">$(document).ready( <span style="color:#3333ff;">function</span>()</p>
<div>{<br />
alert(<strong><span style="color:red;">&#8216;Hello world&#8217;</span></strong>);<br />
});</div>
</div>
<p>The above code is simple one and it contain just hello world message which is shown when the page is fully loaded. But this code contain the basic things you need to start with, first of all the dollar <span style="font-weight:bold;color:#3333ff;">($)</span> sign, which is call the selector, if you want to select any control in the you page then you can use this dollar sign to get that control suppose you have the control whose id is <span style="font-weight:bold;color:#ff0000;">&#8220;cmdButton&#8221;</span> then what you need is to get that button but using <span style="font-weight:bold;">$(&#8216;#cmdButton&#8217;)</span> statement, One more important thing which i would like to share with you is that the syntax above to get the control is used when you don&#8217;t have master page in you project, or your page didn&#8217;t open in master page but if your page is open in your master page then what you need to do is to get the control is <span style="font-weight:bold;">$(&#8216;#&#8217;+'&lt;%=cmdButton.ClientID%&gt;&#8217;)</span> this syntax is used to get the control in jquery.</p>
<p>From the code above you have seen the number sign <strong><span style="color:blue;">(#)</span></strong> The number sign is used to select the control/element by there id. You can select element by there css <strong>className, </strong>with there <strong>ElementTag</strong> and even with the element properties etc for complete referece how you can access the elements you can click <a href="http://docs.jquery.com/Selectors"><strong>here</strong></a> . For quick reference some of the how to access the elements.</p>
<ul>
<li>To access element with there id , where myDiv is the id of the div control in the page.$(<strong><span style="color:red;">&#8220;#myDiv&#8221;</span> </strong>).<a title="CSS/css" href="http://docs.jquery.com/CSS/css">css</a>(<strong><span style="color:red;">&#8220;border&#8221;</span></strong>,<strong><span style="color:red;">&#8220;3pxsolid red&#8221;</span></strong>);</li>
<li>To access element with there tag name . This example will apply red border of red color to all the divs in the page regardless of the id and the class name.$(<strong><span style="color:red;">&#8220;div&#8221;</span></strong>).<a title="CSS/css" href="http://docs.jquery.com/CSS/css">css</a>(<strong><span style="color:red;">&#8220;border&#8221;</span></strong>,<strong><span style="color:red;">&#8220;3px solid red&#8221;</span></strong>);</li>
<li>To access element with there css className . The example below will access the control whose css class name is myClass and apply the red border of 3px to every control which has myClass css class name.$(<strong><span style="color:red;">&#8220;.myClass&#8221;</span></strong>).<a title="CSS/css" href="http://docs.jquery.com/CSS/css">css</a>(<strong><span style="color:red;">&#8220;border&#8221;</span></strong>,<strong><span style="color:red;">&#8220;3px solid red&#8221;</span></strong>);</li>
</ul>
<p>Now come to the $(document).ready(<span style="color:blue;">function</span>(){}); event handler .This is the first thing to learn about jQuery: If you want an event to work on your page, you should call it inside the $(document).ready() <span style="color:#3333ff;">function</span>. Everything inside it will load as soon as the DOM is loaded and before the page contents are loaded <a href="http://docs.jquery.com/Tutorials:Introducing_$%28document%29.ready%28%29"><strong><span style="color:blue;">(Source)</span></strong></a>. The question which come in you mind is why we need the $(document).ready(<span style="color:blue;">function</span>(){}); The first thing that most Javascript programmers end up doing is adding some code to their program, similar to this:<br />
window.onload = <span style="color:blue;">function</span>(){ alert(&#8220;welcome&#8221;); }<br />
Inside of which is the code that you want to run right when the page is loaded. Problematically, however, the Javascript code isn&#8217;t run until all images are finished downloading (this includes banner ads). The reason for using window.onload in the first place is due to the fact that the HTML &#8216;document&#8217; isn&#8217;t finished loading yet, when you first try to run your code. To circumvent both problems, jQuery has a simple statement that checks the document and waits until it&#8217;s ready to be manipulated, known as the ready event <a title="Events" href="http://docs.jquery.com/Tutorials:How_jQuery_Works"><strong>(Source</strong></a>)</p>
<p>why we need to use jquery, as you can see the syntax of the jquery is very easy to learn and easy to read.Second think which i like about jquery is that if you call one jquery function then that function will return same object, which is chainability , mean you can apply as many function by place the (.) dot sign and call the next function and so on and on.</p>
<p>Hope you like this. if you have any question then ask me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asajjad.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asajjad.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asajjad.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asajjad.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asajjad.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asajjad.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asajjad.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asajjad.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asajjad.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asajjad.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asajjad.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asajjad.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asajjad.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asajjad.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asajjad.wordpress.com&amp;blog=5875180&amp;post=12&amp;subd=asajjad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asajjad.wordpress.com/2008/12/21/jquery-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c6a4ceaaed4cc25edb99b4087a610c7?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Asim</media:title>
		</media:content>

		<media:content url="http://4.bp.blogspot.com/_EEu2SY0P-Jg/SUNGN9HLxDI/AAAAAAAAADQ/ap-S-LzEjss/s400/Jquery.bmp" medium="image" />
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://asajjad.wordpress.com/2008/12/17/hello-world/</link>
		<comments>http://asajjad.wordpress.com/2008/12/17/hello-world/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 01:31:39 +0000</pubDate>
		<dc:creator>Asim Sajjad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[My Name is Asim Sajjad and this is my first blog using WordPress. i am thinking what to write on this blog , and to whom to deticate this blog. Send me your suggestion regarding this blog plz<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asajjad.wordpress.com&amp;blog=5875180&amp;post=1&amp;subd=asajjad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My Name is Asim Sajjad and this is my first blog using WordPress. i am thinking what to write on this blog , and to whom to deticate this blog.</p>
<p>Send me your suggestion regarding this blog plz</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asajjad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asajjad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asajjad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asajjad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/asajjad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/asajjad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/asajjad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/asajjad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asajjad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asajjad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asajjad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asajjad.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asajjad.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asajjad.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asajjad.wordpress.com&amp;blog=5875180&amp;post=1&amp;subd=asajjad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://asajjad.wordpress.com/2008/12/17/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5c6a4ceaaed4cc25edb99b4087a610c7?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Asim</media:title>
		</media:content>
	</item>
	</channel>
</rss>
