<?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>Ayub&#039;s Weblog</title>
	<atom:link href="http://mayub.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mayub.wordpress.com</link>
	<description>Want to explore all kind of open source programming and cloud computing</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:00:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mayub.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f0fa3e5be8d25343b6407f92ab7e7279?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Ayub&#039;s Weblog</title>
		<link>http://mayub.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mayub.wordpress.com/osd.xml" title="Ayub&#039;s Weblog" />
	<atom:link rel='hub' href='http://mayub.wordpress.com/?pushpress=hub'/>
		<item>
		<title>About jQuery</title>
		<link>http://mayub.wordpress.com/2009/12/23/about-jquery/</link>
		<comments>http://mayub.wordpress.com/2009/12/23/about-jquery/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 10:46:52 +0000</pubDate>
		<dc:creator>mayub</dc:creator>
				<category><![CDATA[About jQuery]]></category>

		<guid isPermaLink="false">http://mayub.wordpress.com/?p=37</guid>
		<description><![CDATA[jQuery is designed to change the way that we write JavaScript. It is actually a new kind of JavaScript library that is fast and concise. jQuery is a lightweight &#8220;write less, do more&#8221; JavaScript library. jQuery can do the following task. Greatly simplifies JavaScript programming. Simplifies HTML document traversing. Event handling. Animating and Ajax interactions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mayub.wordpress.com&amp;blog=3411980&amp;post=37&amp;subd=mayub&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>jQuery is designed to change the way that we write JavaScript. It is actually a new kind of JavaScript library that is fast and concise. jQuery is a lightweight &#8220;write less, do more&#8221; JavaScript library. jQuery can do the following task.</p>
<ol>
<li>Greatly simplifies JavaScript programming.</li>
<li>Simplifies HTML document traversing.</li>
<li>Event handling.</li>
<li>Animating and Ajax interactions for rapid development.</li>
</ol>
<h2>jQuery Features</h2>
<p>jQuery is a library of JavaScript Functions. The jQuery library contains the following features:</p>
<ul>
<li>HTML element selections</li>
<li>HTML event functions</li>
<li>HTML element manipulation</li>
<li>CSS manipulation</li>
<li>JavaScript Effects and      animations</li>
<li>HTML DOM traversal and      modification</li>
<li>AJAX</li>
<li>Utilities</li>
</ul>
<h2>jQuery Syntax</h2>
<p>The jQuery syntax is tailor made for <strong>selecting</strong> HTML elements and performs some <strong>action</strong> on the element(s).</p>
<p>Basic syntax is: <strong>$(selector).action()</strong></p>
<ul>
<li>A dollar sign to define      jQuery</li>
<li>A (selector) to &#8220;query      (or find)&#8221; HTML elements</li>
<li>An jQuery action() to be      performed upon the element(s)</li>
</ul>
<p>Examples:</p>
<p>$(this).hide() &#8211; hides current element</p>
<p>$(&#8220;p&#8221;).hide() &#8211; hides all paragraphs</p>
<p>$(&#8220;p.test&#8221;).hide() &#8211; hides all paragraphs with</p>
<p>$(&#8220;#test&#8221;).hide() &#8211; hides the element with</p>
<h2>A Simple example code of jQuery</h2>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;jQuery Example by ayub&lt;/title&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;jquery-1.3.2.js&#8221;&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function()<br />
{<br />
$(&#8220;button&#8221;).click(function()<br />
{<br />
$(this).hide()<br />
});<br />
});<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;button type=&#8221;button&#8221;&gt;Click me&lt;/button&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>You will get <strong>jquery-1.3.2.js </strong>from this link <a href="http://docs.jquery.com/Downloading_jQuer">http://docs.jquery.com/Downloading_jQuery</a></p>
<p>This example shows how jQuery hide a button when you click on this button. Here $ sign to define jQuery and button act as selector that select button HTML element. And hide() is an jQuery action() that performed on button HTML element.</p>
<h2>jQuery Element Selectors</h2>
<p>jQuery uses CSS style selectors to select HTML elements.</p>
<p>$(&#8220;p&#8221;) selects all &lt;p&gt; elements</p>
<p>$(&#8220;p.intro&#8221;) selects all &lt;p&gt; elements with.</p>
<p>$(&#8220;p#demo&#8221;) selects the &lt;p&gt; element with.</p>
<h2>jQuery Attribute Selectors</h2>
<p>jQuery uses XPath style selectors to select elements with given attributes.</p>
<p>$(&#8220;[href]&#8220;) select all elements with an href attribute.</p>
<p>$(&#8220;[href='#']&#8220;) select all elements with an href value=&#8221;#&#8221;.</p>
<p>$(&#8220;[href!='#']&#8220;) select all elements with an href attribute&lt;&gt;&#8221;#&#8221;.</p>
<p>$(&#8220;[href$='.jpg']&#8220;) select all elements with an href attribute containing &#8220;.jpg&#8221;.</p>
<h2>jQuery CSS Selectors</h2>
<p>jQuery CSS selectors can be used to change CSS properties for HTML elements.</p>
<p>$(&#8220;p.intro&#8221;).css(&#8220;background-color&#8221;,&#8221;yellow&#8221;)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mayub.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mayub.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mayub.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mayub.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mayub.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mayub.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mayub.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mayub.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mayub.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mayub.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mayub.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mayub.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mayub.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mayub.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mayub.wordpress.com&amp;blog=3411980&amp;post=37&amp;subd=mayub&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mayub.wordpress.com/2009/12/23/about-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07631048f2ae856194bdd830bcce945b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mayub</media:title>
		</media:content>
	</item>
		<item>
		<title>How AJAX work?</title>
		<link>http://mayub.wordpress.com/2009/10/27/how-ajax-work/</link>
		<comments>http://mayub.wordpress.com/2009/10/27/how-ajax-work/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 12:10:46 +0000</pubDate>
		<dc:creator>mayub</dc:creator>
				<category><![CDATA[How AJAX work?]]></category>

		<guid isPermaLink="false">http://mayub.wordpress.com/?p=25</guid>
		<description><![CDATA[AJAX is based on existing standards. These standards have been used by developers for several years. It uses following web standards: JavaScript XML HTML CSS AJAX is not a new programming language, but a new technique for creating better, faster, and more interactive web applications. With AJAX, a JavaScript can communicate directly with the server, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mayub.wordpress.com&amp;blog=3411980&amp;post=25&amp;subd=mayub&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>AJAX is based on existing standards. These standards have been used by developers for several years. It uses following web standards:</p>
<ul>
<li>JavaScript</li>
<li>XML</li>
<li>HTML</li>
<li>CSS</li>
</ul>
<p>AJAX is not a new programming language, but a new technique for creating better, faster, and more interactive web applications.</p>
<p>With AJAX, a JavaScript can communicate directly with the server, with the <strong>XMLHttpRequest</strong> object. With this object,  a JavaScript can  trade data with a web server, without reloading the page. The XMLHttpRequest object is supported in all major browsers (Internet Explorer,  Firefox, Chrome, Opera, and Safari).</p>
<p>AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request  small bits of information from the server instead of whole pages.</p>
<p>The AJAX technique makes Internet applications smaller, faster and more user-friendly.</p>
<p><strong>Important note: </strong>All new browsers use the built-in JavaScript <strong>XMLHttpRequest </strong>object to create  an XMLHttpRequest object (IE5 and IE6 uses an ActiveXObject).</p>
<p><strong>Three important property of  XMLHttpRequest object:</strong></p>
<h2>1.The onreadystatechange property:</h2>
<p>After a request to a server, we need a function to receive the data returned  from the server.The onreadystatechange property stores the function that will process the response from a server.  The function is stored in the  property to be called automatically.The following code sets the onreadystatechange property and stores an empty function inside it:</p>
<p>xmlhttp.onreadystatechange=function()<br />
{<br />
// Write some code here<br />
}</p>
<p>Here xmlhttp is <strong> </strong>a variable<strong> </strong>that hold the XMLHttpRequest object in JavaScript defination.</p>
<h2>2.The readyState property:</h2>
<p>The readyState property holds the status of the server&#8217;s response. Each time the readyState property changes,  the onreadystatechange function will be executed. Possible values for the readyState property:</p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th width="10%" align="left">State</th>
<th align="left">Description</th>
</tr>
<tr>
<td>0</td>
<td>The request is not initialized</td>
</tr>
<tr>
<td>1</td>
<td>The request has been set up</td>
</tr>
<tr>
<td>2</td>
<td>The request has been sent</td>
</tr>
<tr>
<td>3</td>
<td>The request is in process</td>
</tr>
<tr>
<td>4</td>
<td>The request is complete</td>
</tr>
</tbody>
</table>
<p>Add an If statement to the onreadystatechange function to test if  the response is complete (means that now we can get our data):</p>
<p>xmlhttp.onreadystatechange=function()<br />
{<br />
if(xmlhttp.readyState==4)<br />
{<br />
// Get data from the server&#8217;s response<br />
}</p>
<h2>3.The responseText property:</h2>
<p>The data sent back from a server can be retrieved with the responseText property. Now, we want to set the value of the &#8220;Time&#8221; input field equal to responseText:</p>
<p>xmlhttp.onreadystatechange=function()<br />
{<br />
if(xmlhttp.readyState==4)<br />
{<br />
document.myForm.time.value=xmlhttp.responseText;<br />
}<br />
}</p>
<p><strong>Sample example code:</strong></p>
<p>&lt;html&gt;<br />
&lt;body&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function ajaxFunction()<br />
{<br />
var xmlhttp;<br />
if (window.XMLHttpRequest)<br />
{<br />
// code for IE7+, Firefox, Chrome, Opera, Safari<br />
xmlhttp=new XMLHttpRequest();<br />
}<br />
else if (window.ActiveXObject)<br />
{<br />
// code for IE6, IE5<br />
xmlhttp=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);<br />
}<br />
else<br />
{<br />
alert(&#8220;Your browser does not support XMLHTTP!&#8221;);<br />
}</p>
<p>xmlhttp.onreadystatechange=function()<br />
{<br />
if(xmlhttp.readyState==4)<br />
{<br />
document.myForm.time.value=xmlhttp.responseText;<br />
}<br />
}<br />
xmlhttp.open(&#8220;GET&#8221;,&#8221;print.php&#8221;,true);<br />
xmlhttp.send(null);</p>
<p>}</p>
<p>&lt;/script&gt;<br />
&lt;form name=&#8221;myForm&#8221;&gt;<br />
Just type a character: &lt;input type=&#8221;text&#8221; name=&#8221;username&#8221; onKeyUp=&#8221;ajaxFunction();&#8221; /&gt;<br />
&lt;br/&gt;<br />
Time: &lt;input type=&#8221;text&#8221; name=&#8221;time&#8221; /&gt;<br />
&lt;br/&gt;<br />
&lt;input type=&#8221;reset&#8221; value=&#8221;Reset&#8221;/&gt;<br />
&lt;/form&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>and content of print.php is as bellow:</p>
<p>&lt;?php<br />
print strftime(&#8216;%c&#8217;);<br />
?&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mayub.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mayub.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mayub.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mayub.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mayub.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mayub.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mayub.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mayub.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mayub.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mayub.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mayub.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mayub.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mayub.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mayub.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mayub.wordpress.com&amp;blog=3411980&amp;post=25&amp;subd=mayub&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mayub.wordpress.com/2009/10/27/how-ajax-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07631048f2ae856194bdd830bcce945b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mayub</media:title>
		</media:content>
	</item>
		<item>
		<title>Why DIV is better than Table?</title>
		<link>http://mayub.wordpress.com/2009/10/27/why-div-is-better-than-table/</link>
		<comments>http://mayub.wordpress.com/2009/10/27/why-div-is-better-than-table/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 11:05:09 +0000</pubDate>
		<dc:creator>mayub</dc:creator>
				<category><![CDATA[Why DIV is better than Table?]]></category>

		<guid isPermaLink="false">http://mayub.wordpress.com/?p=21</guid>
		<description><![CDATA[For the following reason DIV is better than Table. Div Loads faster than Tables. Tables can be inflexible. Accessibility issues are easier with DIV. Tables don’t print as well. Div is great for SEO – powerful to do content positioning. So basically you can place the bulk of your rich content closer to the top [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mayub.wordpress.com&amp;blog=3411980&amp;post=21&amp;subd=mayub&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For the following reason DIV is better than Table.</p>
<ol>
<li> Div Loads faster than Tables.</li>
<li>Tables can be inflexible.</li>
<li>Accessibility issues are easier with DIV.</li>
<li>Tables don’t print as well.</li>
<li>Div is great for SEO – powerful to do content positioning. So basically you can place the bulk of your rich content closer to the top of your HTML code, but it will still render on the browser in the same place.</li>
<li>DIVs can reduce the size of page &#8211; Use of DIVs and CSS can allow you to reduce the size of your HTML significantly, depending on how nested your tables are. TABLE tags require, TR, TD, and some cases include, TH, THEAD, TBODY, TFOOT. This adds quite a few tags that can all be condensed into a few DIVs.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mayub.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mayub.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mayub.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mayub.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mayub.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mayub.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mayub.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mayub.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mayub.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mayub.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mayub.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mayub.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mayub.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mayub.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mayub.wordpress.com&amp;blog=3411980&amp;post=21&amp;subd=mayub&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mayub.wordpress.com/2009/10/27/why-div-is-better-than-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07631048f2ae856194bdd830bcce945b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mayub</media:title>
		</media:content>
	</item>
	</channel>
</rss>
