<?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>Muhammad Azeem&#039;s Blog</title>
	<atom:link href="http://mazeem.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mazeem.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 26 Jun 2009 06:03:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mazeem.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Muhammad Azeem&#039;s Blog</title>
		<link>http://mazeem.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mazeem.wordpress.com/osd.xml" title="Muhammad Azeem&#039;s Blog" />
	<atom:link rel='hub' href='http://mazeem.wordpress.com/?pushpress=hub'/>
		<item>
		<title>jQuery: Write Less, Do More.</title>
		<link>http://mazeem.wordpress.com/2009/06/26/jquery-write-less-do-more/</link>
		<comments>http://mazeem.wordpress.com/2009/06/26/jquery-write-less-do-more/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 05:35:37 +0000</pubDate>
		<dc:creator>mazeem</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://mazeem.wordpress.com/?p=3</guid>
		<description><![CDATA[www.jquery.com Video Tutorial for beginners http://www.youtube.com/watch?v=8mwKq7_JlS8 Cheat Sheet: http://www.gscottolson.com/jquery/jQuery1.2.cheatsheet.v1.0.pdf API Reference: http://oscarotero.com/jquery/ jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. It was released in January 2006. Both Microsoft and Nokia have announced plans to bundle jQuery on their platforms, Microsoft adopting it initially within Visual Studio for use within Microsoft&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mazeem.wordpress.com&amp;blog=8332155&amp;post=3&amp;subd=mazeem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jquery.com/">www.jquery.com</a></p>
<p>Video Tutorial for beginners</p>
<p><a href="http://www.youtube.com/watch?v=8mwKq7_JlS8">http://www.youtube.com/watch?v=8mwKq7_JlS8</a></p>
<p>Cheat Sheet:</p>
<p><a href="http://www.gscottolson.com/jquery/jQuery1.2.cheatsheet.v1.0.pdf">http://www.gscottolson.com/jquery/jQuery1.2.cheatsheet.v1.0.pdf</a></p>
<p>API Reference:</p>
<p><a href="http://oscarotero.com/jquery/">http://oscarotero.com/jquery/</a></p>
<p><strong>jQuery</strong> is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. It was released in January 2006.</p>
<p>Both Microsoft and Nokia have announced plans to bundle jQuery on their platforms, Microsoft adopting it initially within Visual Studio for use within Microsoft&#8217;s ASP.NET AJAX framework and ASP.NET MVC Framework whilst Nokia will integrate it into their Web Run-Time platform.</p>
<p><strong>The $ function:</strong></p>
<p>One of the critical concepts in any jQuery code is the so called &#8216;$&#8217; function. &#8216;$&#8217; is actually an &#8216;alias&#8217; for the &#8216;jQuery&#8217; namespace.</p>
<p>Example 1: jQuery provides a function for trimming strings. This function can be used as:</p>
<pre>str = "    foo     ";
jQuery.trim(str); // returns "foo"</pre>
<p>Or, it can also be used as:</p>
<pre>str = "    foo     ";
$.trim(str);</pre>
<p>These are equivalent. Usage of &#8216;$&#8217; instead of &#8216;jQuery&#8217; is an ad-hoc convention, and is considered to be a faster way of accessing.</p>
<p>Example 2: To select all the paragraphs that have the class &#8216;foo&#8217; and add another class called &#8216;bar&#8217; to all of them:</p>
<pre>$("p.foo").addClass("bar");</pre>
<p>Example 3: To execute a function &#8216;myfunc&#8217; immediately after the page is loaded (called the ready handler in jQuery lingo):</p>
<pre>$(document).ready(function() {
    myfunc();
});</pre>
<p>This is typically used in a context like this:</p>
<pre>$(document).ready(function() {
  // Stripe all the tables in the document using the oddStripe and evenStripe CSS classes.
  $('tr:nth-child(odd)').addClass("oddStripe");
  $('tr:nth-child(even)').addClass("evenStripe");
});</pre>
<p><strong>Using jQuery:</strong></p>
<p>jQuery usually exists as a single JavaScript file, containing all the common DOM, Event, Effects, and Ajax functions. It can be included within any web page by using the following mark-up:</p>
<pre>&lt;script type="text/javascript" src="/path/to/jQuery.js"&gt;&lt;/script&gt;</pre>
<p>The latest stable versions of jQuery can also be loaded using the Google AJAX Libraries API. This method of obtaining the library has many benefits including unified caching and decreased latency and can be included with the following mark-up:</p>
<pre>&lt;script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt;
&lt;script&gt;
google.load("jquery", "1.3.2");
&lt;/script&gt;</pre>
<p>Another popular way is to load the jQuery library directly from Google&#8217;s servers:</p>
<pre>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;</pre>
<p>jQuery has two styles of interaction:</p>
<ul>
<li>Via the <strong>$</strong> function, which is a factory method      for the jQuery object. These functions, often called <em>commands</em>, are <em>chainable</em>;      they each return the jQuery object</li>
<li>Via <strong>$</strong>.-prefixed      functions. These are <em>utility functions</em> which do not work on the      jQuery object per se.</li>
</ul>
<p>A typical workflow for manipulation of multiple DOM nodes begins with <code>$</code> function being called with a CSS selector string, which results in the jQuery object referencing zero or more elements in the HTML page. This node set can be manipulated by applying instance methods to the jQuery object, or the nodes themselves can be manipulated. For example:</p>
<pre>$("div.test").add("p.quote").addClass("blue").slideDown("slow");</pre>
<p>…finds the union of all <strong>div </strong>tags with class attribute test and all p tags with class attribute <strong>quote</strong>, adds the class attribute <strong>blue </strong>to each matched element, and then slides them down with an animation. The <strong>$</strong> and <strong>add </strong>functions affect the matched set, while the <strong>addClass </strong>and <strong>slideDown </strong>affect the referenced nodes.</p>
<p>The methods prefixed with $. are convenience methods or affect global properties and behaviour. For example, the following is an example of the map function called <strong>each</strong> in jQuery:</p>
<pre>$.each([1,2,3], function() {
  document.write(this + 1);
});</pre>
<p>&#8230; writes 234 to the document.</p>
<p>It is possible to perform Ajax routines using the <strong>$.ajax</strong> and associated methods to load and manipulate remote data.</p>
<pre>$.ajax({
  type: "POST",
  url: "some.php",
  data: "name=John&amp;location=Boston",
  success: function(msg){
    alert( "Data Saved: " + msg );
  }
});</pre>
<p>&#8230; will request <strong>some.php</strong> with parameters <strong>name=John</strong> and <strong>location=Boston</strong> and when the request is finished successfully, the response will be alerted.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mazeem.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mazeem.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mazeem.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mazeem.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mazeem.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mazeem.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mazeem.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mazeem.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mazeem.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mazeem.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mazeem.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mazeem.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mazeem.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mazeem.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mazeem.wordpress.com&amp;blog=8332155&amp;post=3&amp;subd=mazeem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mazeem.wordpress.com/2009/06/26/jquery-write-less-do-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6aa7dd4d0940dc79ecaec9237b903f9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mazeem</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://mazeem.wordpress.com/2009/06/26/hello-world/</link>
		<comments>http://mazeem.wordpress.com/2009/06/26/hello-world/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 04:59:08 +0000</pubDate>
		<dc:creator>mazeem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mazeem.wordpress.com&amp;blog=8332155&amp;post=1&amp;subd=mazeem&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mazeem.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mazeem.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mazeem.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mazeem.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mazeem.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mazeem.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mazeem.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mazeem.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mazeem.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mazeem.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mazeem.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mazeem.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mazeem.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mazeem.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mazeem.wordpress.com&amp;blog=8332155&amp;post=1&amp;subd=mazeem&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mazeem.wordpress.com/2009/06/26/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6aa7dd4d0940dc79ecaec9237b903f9e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mazeem</media:title>
		</media:content>
	</item>
	</channel>
</rss>
