<?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>Programming Ideas, Logics, Tips and Tricks &#187; ajax</title>
	<atom:link href="http://www.sajithmr.me/tag/ajax/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:44:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Facebook Styles from jQuery</title>
		<link>http://www.sajithmr.me/facebook-styles-from-jquery</link>
		<comments>http://www.sajithmr.me/facebook-styles-from-jquery#comments</comments>
		<pubDate>Sat, 08 May 2010 10:22:22 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook design]]></category>
		<category><![CDATA[facebook layout]]></category>
		<category><![CDATA[facebook style edit]]></category>
		<category><![CDATA[facebox]]></category>
		<category><![CDATA[facybox]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=655</guid>
		<description><![CDATA[A wide range of jQuery plugin which help us to create Facebook style designs are follows: I got this huge collection from this website. I am just rewriting that post here. 1) Facybox Website here 2) Facebox http://famspam.com/facebox 3) FCBKComplete Go to webstie 4) Facebook style registration Go to website 5) Gmail/Facebook style jQuery chat [...]]]></description>
			<content:encoded><![CDATA[<p>A wide range of jQuery plugin which help us to create Facebook style designs are follows:</p>
<p>I got this huge collection from <a href="http://www.jquery.wisdomplug.com" target="_blank">this</a> website. I am just rewriting that post here.</p>
<p>1) Facybox</p>
<p><a href="http://bitbonsai.com/facybox/" target="_blank"><img class="alignnone size-full wp-image-658" title="logo-facybox" src="http://www.sajithmr.me/wp-content/uploads/2010/05/logo-facybox.png" alt="logo-facybox" width="264" height="90" /></a></p>
<p>Website <a href="http://bitbonsai.com/facybox/" target="_blank">here</a></p>
<p>2) Facebox</p>
<p><a title="Facebox" href="http://famspam.com/facebox" target="_blank"><img class="alignnone size-full wp-image-656" title="facebox" src="http://www.sajithmr.me/wp-content/uploads/2010/05/facebox.jpg" alt="facebox" width="245" height="121" /></a></p>
<p><a href="http://famspam.com/facebox" target="_blank">http://famspam.com/facebox</a></p>
<p>3) FCBKComplete</p>
<p><img class="alignnone size-medium wp-image-659" title="15ee246.jpg" src="http://www.sajithmr.me/wp-content/uploads/2010/05/15ee246.jpg-300x210.png" alt="15ee246.jpg" width="300" height="210" /></p>
<p>Go to <a href="http://www.emposha.com/javascript/fcbkcomplete.html" target="_blank">webstie</a></p>
<p>4) Facebook style registration</p>
<p><img class="alignnone size-full wp-image-657" title="297" src="http://www.sajithmr.me/wp-content/uploads/2010/05/297.jpg" alt="297" width="434" height="238" /></p>
<p>Go to <a href="http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery" target="_blank">website</a></p>
<p>5) Gmail/Facebook style jQuery chat</p>
<p><img class="alignnone size-full wp-image-660" title="facechat" src="http://www.sajithmr.me/wp-content/uploads/2010/05/facechat.png" alt="facechat" width="210" height="204" /></p>
<p>Go to <a href="http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/" target="_blank">website</a></p>
<p>6) Facebook style comment using jQuery</p>
<p><img class="alignnone size-medium wp-image-661" title="facecomment" src="http://www.sajithmr.me/wp-content/uploads/2010/05/facecomment-300x101.png" alt="facecomment" width="300" height="101" /></p>
<p>Go to <a href="http://www.9lessons.info/2009/11/facebook-style-application-with-jquery.html" target="_blank">website</a></p>
<p>7) Facebook style auto complete</p>
<p><img class="alignnone size-full wp-image-662" title="search" src="http://www.sajithmr.me/wp-content/uploads/2010/05/search.png" alt="search" width="394" height="153" /></p>
<p>Go to <a href="http://www.web2ajax.fr/examples/facebook_searchengine/" target="_blank">website</a></p>
<p> <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Facebook style picture edit</p>
<p><img class="alignleft size-full wp-image-663" title="tag" src="http://www.sajithmr.me/wp-content/uploads/2010/05/tag.png" alt="tag" width="376" height="201" /></p>
<p>Go to <a href="http://netindonesia.net/blogs/cipto/archive/2009/10/24/jquery-plugin-edit-image-facebook-style.aspx" target="_blank">website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-styles-from-jquery/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JBar &#8211; Jquery Bar</title>
		<link>http://www.sajithmr.me/jbar-jquery-bar</link>
		<comments>http://www.sajithmr.me/jbar-jquery-bar#comments</comments>
		<pubDate>Sun, 27 Dec 2009 11:47:33 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[jbar]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=545</guid>
		<description><![CDATA[Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like &#8220;You account has been updated&#8221; or &#8220;Your photo has been successfully deleted&#8221; Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter&#8217;s settings page) I [...]]]></description>
			<content:encoded><![CDATA[<p>Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like &#8220;You account has been updated&#8221; or &#8220;Your photo has been successfully deleted&#8221;</p>
<p>Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter&#8217;s settings page)</p>
<p>I added some more functions to this plugin to display the notification in different context, say information, warning or error message. The function show_flash(&#8216;message here&#8217;); can be used for this purpose. Second parameter is the type of message. For example, show_flash(&#8216;Error in deleting file&#8217;, &#8216;error&#8217;) OR  show_flash(&#8216;Email address entered is invalid&#8217;, &#8216;warning&#8217;)</p>
<p>If you use sessions to save flash message , for example in codeigniter $this-&gt;session-&gt;set_flashdata(&#8216;message&#8217;,'hello&#8217;); you can use this plugin to display them by adding a php code in the footer  (or header) of every page</p>
<p>&lt;?php if($this-&gt;session-&gt;flashdata(&#8216;message&#8217;) != &#8221; )  : ?&gt;</p>
<p>&lt;script&gt;show_flash(&#8216;&lt;?= $this-&gt;session-&gt;flashdata(&#8216;message&#8217;) ?&gt;&#8217;)&lt;/script&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>Here you can download the full source code:  <a href="http://www.sajithmr.me/downloads/jbar.zip">http://www.sajithmr.me/downloads/jbar.zip</a></p>
<p><img class="alignnone size-large wp-image-566" title="Screen shot 2009-12-27 at 11.30.12" src="http://www.sajithmr.me/wp-content/uploads/2009/12/Screen-shot-2009-12-27-at-11.30.12-1024x182.png" alt="Screen shot 2009-12-27 at 11.30.12" width="717" height="127" /></p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jbar-jquery-bar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fancy box</title>
		<link>http://www.sajithmr.me/fancy-box</link>
		<comments>http://www.sajithmr.me/fancy-box#comments</comments>
		<pubDate>Sun, 08 Nov 2009 16:58:16 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[fancybox]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=471</guid>
		<description><![CDATA[Finally I found a good light-box which really matches the name &#8220;Light box&#8221; in FancyBox.  It is a jQuery based light window. It has very less features while compare with any other light box, but simple to use. Compatible with all browsers. Go here to find it : http://fancybox.net/ You need to add the below [...]]]></description>
			<content:encoded><![CDATA[<p>Finally I found a good light-box which really matches the name &#8220;Light box&#8221; in FancyBox.  It is a jQuery based light window. It has very less features while compare with any other light box, but simple to use. Compatible with all browsers.</p>
<p><img class="alignnone size-medium wp-image-472" title="bg_logo" src="http://www.sajithmr.me/wp-content/uploads/2009/11/bg_logo-300x81.gif" alt="bg_logo" width="300" height="81" /></p>
<p>Go here to find it : <a href="http://fancybox.net/" target="_blank">http://fancybox.net/</a></p>
<p>You need to add the below javascript in addition to the jquery js file.</p>
<p><code>&lt;script type="text/javascript" src="path-to-file/jquery.fancybox.js"&gt;&lt;/script&gt; </code></p>
<p>To create a link to open in fancybox, call the function fancybox. For example, if you have a link pointing an image &lt;a href=&#8221;myimage.gif&#8221; id=&#8221;imglink&#8221; /&gt;</p>
<p>Call</p>
<p>&lt;script&gt;</p>
<p>$(&#8220;#imglink&#8221;).fancybox();</p>
<p>&lt;/script&gt;</p>
<p>The window automatically resize with image. If you put <strong>title</strong> attribute, it shows the title below with the light window.</p>
<p>Instead of image, you can point a file. If you need to open that file in iframe, use <span style="color: #008000;"><strong>class</strong></span>=<span style="color: #3366ff;"><em><strong>&#8220;iframe&#8221;</strong></em></span></p>
<p>Visit<a href="http://fancybox.net/howto" target="_blank"> http://fancybox.net/howto</a> for more usability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/fancy-box/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XAJAX</title>
		<link>http://www.sajithmr.me/xajax</link>
		<comments>http://www.sajithmr.me/xajax#comments</comments>
		<pubDate>Wed, 03 Jun 2009 16:00:24 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php source code]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[call]]></category>
		<category><![CDATA[capitalize]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[xajax]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=432</guid>
		<description><![CDATA[Basically using xajax &#8220;You can directly call php functions from your javascript code&#8221; Xajax will do the rest.  For example, if you are going to write a javascript function Capitalize which captilaze your textbox content when you press a button. Here is the pure html/javascript code for that: ============================================= &#60;script&#62; function Capitalize() {      [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://xajaxproject.org/" target="_blank"><img class="alignnone size-medium wp-image-433" title="xajax_logo" src="http://www.sajithmr.com/wp-content/uploads/2009/06/xajax_logo-300x179.png" alt="" width="300" height="179" /></a></p>
<p>Basically using xajax &#8220;You can directly call php functions from your javascript code&#8221;</p>
<p>Xajax will do the rest. </p>
<p>For example, if you are going to write a javascript function Capitalize which captilaze your textbox content when you press a button.</p>
<p>Here is the pure html/javascript code for that:</p>
<p>=============================================</p>
<p><strong><span style="color: #99cc00;">&lt;script&gt;</span></strong></p>
<p><span> </span><strong>function</strong> Capitalize()</p>
<p><span> </span>{</p>
<p>      var t = document.getElementById(&#8216;cap&#8217;).value;</p>
<p>      document.getElementById(&#8216;update&#8217;).innerHTML = t.toUpperCase() ;</p>
<p><span> </span>}</p>
<p><span style="color: #99cc00;"><strong>&lt;/script&gt;</strong></span></p>
<p> </p>
<p><span style="color: #0000ff;">&lt;input type=&#8221;text&#8221; id=&#8221;cap&#8221; name=&#8221;cap&#8221; /&gt;</span></p>
<p><span style="color: #0000ff;">&lt;input type=&#8221;button&#8221; id=&#8221;capbutton&#8221; value=&#8221;Capitalize&#8221; onclick=&#8221;Capitalize()&#8221; /&gt;</span></p>
<p><span style="color: #0000ff;">&lt;div id=&#8221;update&#8221;&gt;&lt;/div&gt;</span></p>
<p>==============================================</p>
<p>Now see the difference when we use xajax, we can write this Capitalize function in php code and can call from javascript.</p>
<p><strong>function</strong> Capitalize($value)</p>
<p>{</p>
<p>    $objResponse = new xajaxResponse();</p>
<p>    $objResponse-&gt;assign(&#8220;update&#8221;,&#8221;innerHTML&#8221;,strtoupper($value));</p>
<p>    return $objResponse;</p>
<p><span> </span></p>
<p>}</p>
<p>and you can call from your button&#8217;s onclick function:</p>
<p><span style="color: #ff6600;"> onclick=&#8221;xajax_Capitalize(document.getElementById(&#8216;cap&#8217;).value)&#8221; </span></p>
<p>Here the same functionality we moved from client to server. Thus the point is you can simply call all the functions you written in php (Server Side) from javascript code via onClick, onMouseOver or window.onLoad etc.</p>
<p>You can get the full source code of Capitalize example here:</p>
<p><a href="http://www.sajithmr.com/downloads/capitalize.zip">http://www.sajithmr.com/downloads/capitalize.zip</a></p>
<p>To download and for documentation go: </p>
<p><a href="http://xajaxproject.org/">http://xajaxproject.org/</a></p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/xajax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery &#8211; Play with html</title>
		<link>http://www.sajithmr.me/jquery-play-with-html</link>
		<comments>http://www.sajithmr.me/jquery-play-with-html#comments</comments>
		<pubDate>Tue, 02 Jun 2009 23:23:00 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[manipulation]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=430</guid>
		<description><![CDATA[Start jquery for manipulating html file and execute javascript just like sql queries. Simply pointer the dom object with a $  and manipulate with different built in function. For example  $(&#8220;p.neat&#8221;).addClass(&#8220;ohmy&#8221;).show(&#8220;slow&#8221;); Don&#8217;t need to write javascript inside each node. It is like prototyping. Insted of adding an onClick=&#8221;function()&#8221; inside the node, jquery define the onclick [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sajithmr.com/wp-content/uploads/2009/06/jquery-logo.png"><img class="alignnone size-full wp-image-426" title="jquery-logo" src="http://www.sajithmr.com/wp-content/uploads/2009/06/jquery-logo.png" alt="" width="190" /></a></p>
<p>Start jquery for manipulating html file and execute javascript just like sql queries.</p>
<p>Simply pointer the dom object with a $  and manipulate with different built in function.</p>
<p>For example </p>
<p><span style="color: #008000;">$(&#8220;p.neat&#8221;).addClass(&#8220;ohmy&#8221;).show(&#8220;slow&#8221;);</span></p>
<p>Don&#8217;t need to write javascript inside each node. It is like prototyping. Insted of adding an onClick=&#8221;function()&#8221; inside the node, jquery define the onclick function from the top level. Your html code will be clean and tidy. If CSS removes all the styling bits, Jquery removes all the javascript bits from html.</p>
<p>You can remap every default action from an html object.</p>
<p>For example normally when you click a link  (&lt;a&gt; tag) it navigate you through the href value. But if you add the jquery code as below:</p>
<pre>$(document).ready(function(){
   <strong>$("a").click(function(event){
     alert("Thanks for clicking!");
   });</strong>
 })</pre>
<pre>It adds a thanks alert for every click in links.</pre>
<pre>and if you add :</pre>
<pre>
<pre><strong>event.preventDefault();</strong></pre>
<pre><strong>It prevents the default action also.</strong></pre>
<pre><strong>You can go to JQuery homepage: <a href="http://jquery.com/">http://jquery.com/</a></strong></pre>
<pre><strong>and can learn more about JQuery.</strong></pre>
<pre><strong>The intention of this post was not an explaination about jquery, but some addition website which develops addons based on jquery.</strong></pre>
<pre><strong>Those are:</strong></pre>
<pre><a href="http://jqueryui.com/">http://jqueryui.com/</a></pre>
</pre>
<pre>
<pre><strong><a href="http://jquerystyle.com/">jquerystyle.com/</a>
</strong></pre>
<pre><strong><a href="http://visualjquery.com/">visualjquery.com/</a>
</strong></pre>
<pre><strong><a href="http://15daysofjquery.com/">http://15daysofjquery.com/</a>
</strong></pre>
<pre><strong><a href="http://usejquery.com/">http://usejquery.com/</a>
</strong></pre>
<pre><strong>
</strong></pre>
<pre><strong><a href="http://blog.themeforest.net/?s=jquery">http://blog.themeforest.net/?s=jquery</a>
</strong></pre>
<pre><strong>Comment me if you know any other jquery websites.</strong></pre>
<pre><strong>Logging out</strong></pre>
<pre><strong>-Sajith</strong></pre>
<pre><strong></strong></pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jquery-play-with-html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Show WordPress Currently Reading Posts</title>
		<link>http://www.sajithmr.me/show-wordpress-currently-reading-posts</link>
		<comments>http://www.sajithmr.me/show-wordpress-currently-reading-posts#comments</comments>
		<pubDate>Sat, 12 Jul 2008 09:36:47 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[currently]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[sexy]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[watching]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/show-wordpress-currently-reading-posts/</guid>
		<description><![CDATA[After the success of my previous wordpress plugins , Announcement, Show My Page Rank, Sexy Rating, Add to this , Stumble Reviews, I created one more interesting plugin, called Currently Reading Posts Plugin. Whenever a visitor visits your website, he can see what are the posts currently reading by other visitors. It is like youtube&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p> <font size="12">A</font>fter the success of my previous wordpress plugins , <a href="http://wordpress.org/extend/plugins/announcement/" title="Wordpress Announcement Plugin" target="_blank">Announcement</a>, <a href="http://wordpress.org/extend/plugins/show-my-pagerank/" title="Wordpress Page Rank Plugin" target="_blank">Show My Page Rank</a>, <a href="http://wordpress.org/extend/plugins/sexyrate/" title="Sexy Rating Plugin" target="_blank">Sexy Rating</a>, <a href="http://wordpress.org/extend/plugins/addtothis/" title="Social Bookmarking Plugin" target="_blank">Add to this</a> , <a href="http://wordpress.org/extend/plugins/stumble-reviews/" title="Stumble Review Plugin" target="_blank">Stumble Reviews</a>, I created one more interesting plugin, called Currently Reading Posts Plugin.</p>
<p>Whenever a visitor visits your website, he can see what are the posts currently reading by other visitors. It is like youtube&#8217;s currently watching videos.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/07/cw.jpg" alt="Wordpress Currently Watching Plugin" /></p>
<p>You can see its current working at the top right corner of this website.</p>
<p>Download the plugin for here: <a href="http://www.sajithmr.com/downloads/CurrentlyWatching.zip" title="Currently Watching Plugin">http://www.sajithmr.com/downloads/CurrentlyWatching.zip</a></p>
<p>Go to Admin &gt; Plugins &gt; and activate the plugin.</p>
<p>Paste this code: &lt;?php wp_show_currently_watching() ?&gt; by editing your template / theme . (I placed the code in header.php file)</p>
<p>It is implemented with ajax support.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/show-wordpress-currently-reading-posts/feed</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title>Sexy Rating &#8211; WordPress Plugin</title>
		<link>http://www.sajithmr.me/sexy-rating-wordpress-plugin</link>
		<comments>http://www.sajithmr.me/sexy-rating-wordpress-plugin#comments</comments>
		<pubDate>Thu, 19 Jun 2008 10:03:09 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rate]]></category>
		<category><![CDATA[sexy]]></category>
		<category><![CDATA[visitor]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/sexy-rating-wordpress-plugin/</guid>
		<description><![CDATA[If you wanna know , what is others review or opinion about your website, You can use this wordpress plugin. It will provide the blog readers and your regular visitor to rate your blog. You can put this plugin anywhere in your blog. The plugin name is sexyrate plugin. Here is the screen shot: There [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/06/thumbs-up.jpg" style="margin: 10px; float: left" /></p>
<p><font size="6">I</font>f you wanna know , what is others review or opinion about your website, You can use this wordpress plugin. It will provide the blog readers and your regular visitor to rate your blog. You can put this plugin anywhere in your blog. The plugin name is  sexyrate plugin.</p>
<p>Here is the screen shot:</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/06/sample.jpg" alt="Sexy Rate Plugin Screen Shot" /></p>
<p>There are 4 types for rating , Perfect, Good , Bad and Too-Bad. One user can rate one time only. The whole thing is made out of Ajax. For providing more attraction , the plugin is created with images of sexy ladies <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    .</p>
<p>If you want to place this plugin, what to do is , download it from <a href="http://www.sajithmr.com/downloads/sexyrate.zip" title="Wordpress SexyRate Plugin">http://downloads.wordpress.org/plugin/sexyrate.zip</a></p>
<p>Go to your wordpress Admin &gt; Plugin and activate this plugin. After that , go to Admin &gt; Presentation &gt; Theme Editor and edit any place you want (header, single.php , index.php, home.php or sidebar.php) as suit to your blog and add this line:</p>
<p>&lt;?php wp_show_my_rate() ?&gt;</p>
<p>*Remember, this plugin is referred to those who has white backgroud wordpress theme.</p>
<p>Comment me your opinion about this plugin</p>
<p>Later<br />
Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/sexy-rating-wordpress-plugin/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Gmail Architecture</title>
		<link>http://www.sajithmr.me/gmail-architecture</link>
		<comments>http://www.sajithmr.me/gmail-architecture#comments</comments>
		<pubDate>Tue, 25 Mar 2008 19:53:31 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/gmail-architecture/</guid>
		<description><![CDATA[Gmail is the best application website i ever seen. Simple implementation, Super Ajax, Cute Chatting, Status Messages, Fast Mail Checking, Live updating and its features are endless as my wordpress database wont withstand when you type: www.gmail.com, the following action will happen. See it is very interesting. Script1 It first load the javascript file : [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/gmail-logo1.jpg" alt="Gmail Logo" /><br />
Gmail is the best application website i ever seen. Simple implementation, Super Ajax, Cute Chatting, Status Messages, Fast Mail Checking, Live updating and its features are endless as my wordpress database wont withstand</p>
<p>when you type: www.gmail.com, the following action will happen. See it is very interesting.</p>
<p>Script1<br />
<u>It first load the javascript file : https://mail.google.com/mail?view=page&amp;name=browser&amp;ver=1k96igf4806cy</u></p>
<p>It checks the browser type, os etc</p>
<p>the function <strong>navigator.userAgent.toLowerCase()</strong> checks with <font color="#008000">opera, msie,mac,gecko,safari,palmsource,regking,windows ce,avantgo,stb,pda; sony/com2</font>  etc browsers</p>
<p>that is script 1&#8242;s job.</p>
<p><u>Script 2 calculate the round trip time for a 1 pixel image.</u> This is for finding the internet speed of the user</p>
<p><font color="#008000"><strong>function</strong></font> GetRoundtripTimeFunction(start)<br />
{<br />
<strong><font color="#008000"> return </font></strong><font color="#008000"><font color="#000000">f</font></font>unction()<br />
{<br />
<font color="#008000"><strong>var </strong></font>end = (new Date()).getTime();<br />
SetGmailCookie(&#8220;GMAIL_RTT&#8221;, (end &#8211; start));</p>
<p>}<br />
}</p>
<p><u>Since gmail uses iframes , this script also make sure to load the actual home</u><br />
<strong><font color="#008080">top.location = self.location.href</font></strong></p>
<p><strong>I</strong>t also set cookie to show which of the google service is using.</p>
<p><strong>T</strong>hen loads the login form and set focus on password field.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/gmail-login.jpg" alt="Gmail Login" /></p>
<p><u>Script 3 handles the https connection and cookie settings for secured login</u></p>
<p><em>Yet the web 2.0 concept is on the peak, gmail uses table layout design instad of div style designs <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p>Gmail&#8217;s login form &#8216;s action is pointing to <font color="#ff6600">&#8220;https://www.google.com/accounts/ServiceLoginAuth?service=mail&#8221;</font></p>
<p>This is the general url for google account login. Here <strong>service=mail</strong> parameter indicates , this is gmail logging</p>
<p>When the logging verification done, the page is redirected into corresponding service by javascript:</p>
<p><font color="#0000ff">location.replace(&#8220;http://www.google.co.in/accounts/SetSID?&#8230;&#8230;etc etc&#8221;);</font></p>
<p>After setting proper session and cookies for login, the non secured site http://mail.google.com/mail page automatically get refresh by this meta tag:<br />
<font color="#339966"> &lt;meta content=&#8221;0;URL=http://mail.google.com/mail/&#8221; http-equiv=&#8221;Refresh&#8221;/&gt;</font></p>
<p>When loading the mail page after setting proper login sessions, around 28 ajax web request begin to start, and load all the mails, labels, channels etc</p>
<p>The above mentioned all javascript  is also here in this mail loading page</p>
<p>The first division (div) inside the body tag is that for loading. A while text &#8220;loading&#8230;&#8221; with red backgroud.<br />
<strong> &lt;div class=&#8221;msg&#8221;&gt; <font color="#000000">Loading… </font>&lt;/div&gt;</strong></p>
<p>This is the waiting symbol for all the ajax call to load</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/loading.jpg" alt="Loading" /></p>
<p>There is also a timer is working to check the loading time of ajax requests. If it takes more time than expected  (or calculated), it show this error <em>&#8220;This seems to be taking longer than usual&#8221;</em></p>
<p>Automatically they provide navigation links for basic html version.</p>
<p>The total page of gmail is created by a set of iframes<br />
viz</p>
<p>HIST_IFRAME<br />
SOUND_IFRAME<br />
CANVAS_IFRAME<br />
JS_IFRAME</p>
<p>The Sound_Iframe session loads a flash object (shock wave file) for playing the sound , when chat works. (Google chat indicator)</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/chatwindow.jpg" alt="Chat window" /></p>
<p><strong><font color="#339966">&lt;embed id=&#8221;flash_object&#8221; type=&#8221;application/x-shockwave-flash&#8221; pluginspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221; quality=&#8221;high&#8221; style=&#8221;position: absolute; top: 0px; left: 0px; height: 100px; width: 100px;&#8221; src=&#8221;im/sound.swf&#8221;/&gt;</font></strong></p>
<p>Gmail saves each sections- labels,  inbox, mails etc in array with a unique id. This unique id is for checking the updations on the fly using ajax.</p>
<p>For example : <font color="#0000ff">http://mail.google.com/mail/?ui=2&amp;ik=42e598c952&amp;view=tl&amp;start=50&amp;num=70&amp;auto=1&amp;ari=120&amp;rt=j&amp;search=inbox</font></p>
<p>The above url pics all the data as javascript array format. Check this link after logging in gmail. You can see your labels, your from email accounts, your settings,<br />
your last arrived 70 emails subject and from etc information in javascript array format.</p>
<p>This is the url which is to be called when you click older and newer mail (pagination below)</p>
<p>Gmail always call this url : <font color="#0000ff">http://mail.google.com/mail/channel/bind?at=xn3j2zpul6ptan694kr6javrldi43s&amp;VER=6&amp;it=93079&amp;SID=584B451AB93DBDC&amp;RID=16351&amp;zx=lniy7w-6psisw&amp;t=1</font></p>
<p>(leave the parameters value) for checking updatations. This is gmails rpc checking for new updations .</p>
<p>If there is any updation new rpc with post method automatically called to get new data. The calling url is same , the one above<br />
<font color="#0000ff"> http://mail.google.com/mail/?ui=2&amp;ik=42e598c952&amp;view=tl&amp;start=0&amp;num=70&amp;auto=1&amp;ari=120&amp;rt=j&amp;search=inbox</font></p>
<p>It results new data as javascript array format. The rest of the arrangements are handled by the script from client side.</p>
<p>Whenever you open a mail from inbox, the browser send another request for loading the sponsered links (advtisement) though this rpc<br />
<font color="#0000ff"> http://mail.google.com/mail/?ui=2&amp;ik=42e598c952&amp;view=ad&amp;th=118e57dc03d67f16&amp;search=inbox</font></p>
<p>The <strong>CANVAS_IFRAME</strong> is the main iframe contains all the layout of gmail</p>
<p>It contains the left side chat, main inbox or mails right side ads, and all the controls</p>
<p>The left side chat is created using table.</p>
<p>JS_IFRAME contains all the javascripts files for gmail full implementation. There are around <strong>89</strong> js files.</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/chat.jpg" alt="Chat" /></p>
<p>When you chat with somebody, the url calling is : <font color="#0000ff">http://mail.google.com/mail/channel/bind?at=xn3j2zpul6ptan694kr6javrldi43s&amp;VER=6&amp;it=891&amp;SID=7D4E9A779225DC1&amp;RID=50595&amp;zx=hrsqkf-nwummu&amp;t=1</font></p>
<p>as POST method with parameters:<br />
<strong><font color="#808080"> req2_text    &lt;your chat&gt;<br />
req2_to    &lt;sender&#8217;s email address&gt;<br />
req0_type    cf<br />
req1_cmd    a<br />
req0_focused    1</font></strong></p>
<p>Now,</p>
<p><font color="#0000ff">http://mail.google.com/mail/channel/bind?at=xn3j2zpul6ptan694kr6javrldi43s&amp;VER=6&amp;it=531&amp;RID=rpc&amp;SID=48DD6BA8E1D3A326&amp;CI=1&amp;AID=176&amp;TYPE=xmlhttp&amp;zx=m0iiwn-ok5jqr&amp;t=1</font></p>
<p>the above url return the chat friends and theire status messages</p>
<p>==========================================================</p>
<p>Same url is using for getting the chat messages.</p>
<p>For example when kenney.jacob@gmail chat with me , the message comes as an array like this:</p>
<p>[184,["m","kenney.jacob@gmail.com","730DFDF6F013F640_161","active","hi da","hi da",1206444193169,</p>
<p>,,0,0,0,0,[]</p>
<p>,&#8221;square&#8221;]</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/03/foster-says.jpg" alt="Foster says" /></p>
<p>Here active implies the chat is active or not (the window with orange color) and with a chat alert if the window is not active.</p>
<p><font color="#0000ff">http://mail.google.com/mail/channel/test?at=xn3j2zpul6ptan694kr6javrldi43s&amp;VER=6&amp;it=24343&amp;MODE=init&amp;zx=1vyx51-ze670&amp;t=1</font></p>
<p>The above url checks whether the chat is enable or not. which returns an array:<br />
<strong> ["b","chatenabled"]</strong></p>
<p>Gmails file uploading is another interesting thing. I already posted ajax file uploading :  <a href="http://www.sajithmr.com/upload-files-like-gmail/" title="Upload Files Like Gmail" target="_blank">http://www.sajithmr.com/upload-files-like-gmail/</a></p>
<p>I will post more about gmail architecture soon .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/gmail-architecture/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
	</channel>
</rss>

