<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks</title>
	
	<link>http://www.sajithmr.me</link>
	<description />
	<lastBuildDate>Mon, 09 Nov 2009 20:27:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/sajithmr" type="application/rss+xml" /><feedburner:emailServiceId>sajithmr</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Onchange, form submit – Error</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/HEkcQYZlUf4/</link>
		<comments>http://www.sajithmr.me/onchange-form-submit-error/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:27:27 +0000</pubDate>
		<dc:creator>Sajith M.R</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[form submit]]></category>
		<category><![CDATA[onchange]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=480</guid>
		<description><![CDATA[If you are facing onchange and form submit of select-box (combo box) in html, you are not alone.
In sometimes onchange = &#8220;document.formname.submit()&#8221; won&#8217;t submit the form, while it works on other html pages.
There is hidden truth of this problem is , there may be some other input having the name &#8220;submit&#8221;. This cause problem in [...]]]></description>
			<content:encoded><![CDATA[<p>If you are facing onchange and form submit of <strong>select-box</strong> (combo box) in html, you are not alone.</p>
<p>In sometimes onchange = &#8220;<span style="color: #008000;"><strong>document.formname.submit()</strong></span>&#8221; won&#8217;t submit the form, while it works on other html pages.</p>
<p>There is hidden truth of this problem is , there may be some other input having the name &#8220;submit&#8221;. This cause problem in IE and some other browsers. So rename the input field name from <strong>submit</strong> to any other name (In most case we use the name of submit button as &#8220;submit&#8221;).</p>
<p>It is a rare tip,  you may  face this someday !!!</p>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/HEkcQYZlUf4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/onchange-form-submit-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/onchange-form-submit-error/</feedburner:origLink></item>
		<item>
		<title>Webservice call from PHP – wsdl2php makes it simple</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/2Ya7_N9Nt5M/</link>
		<comments>http://www.sajithmr.me/webservice-call-from-php-wsdl2php-makes-it-simple/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 19:14:51 +0000</pubDate>
		<dc:creator>Sajith M.R</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=475</guid>
		<description><![CDATA[From PHP we usually do a lot of coding to create a webservice client. We use nusoap library for this purpose. But in the case of complex objects, it is very hard to create a soap client call. We need to create a class structure before invoke a wsdl call.

As a solution, you can use [...]]]></description>
			<content:encoded><![CDATA[<p>From PHP we usually do a lot of coding to create a webservice client. We use nusoap library for this purpose. But in the case of complex objects, it is very hard to create a soap client call. We need to create a class structure before invoke a wsdl call.</p>
<p><img class="alignnone size-medium wp-image-477" title="php" src="http://www.sajithmr.me/wp-content/uploads/2009/11/php-300x195.png" alt="php" width="240" height="156" /></p>
<p>As a solution, you can use wsdl2php converter tool. It is a command line tool, you can provide the wsdl url as an input and it generates a php file to make the soap client call. The tool may show some error during its conversion , but in the end, you will get a PHP code which executes.</p>
<p>Download wsdl2php from: <a href="http://www.urdalen.no/wsdl2php/" target="_blank">http://www.urdalen.no/wsdl2php/</a></p>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/2Ya7_N9Nt5M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/webservice-call-from-php-wsdl2php-makes-it-simple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/webservice-call-from-php-wsdl2php-makes-it-simple/</feedburner:origLink></item>
		<item>
		<title>Fancy box</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/oU1hwFjO1lA/</link>
		<comments>http://www.sajithmr.me/fancy-box/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 16:58:16 +0000</pubDate>
		<dc:creator>Sajith M.R</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 javascript in [...]]]></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>$(&#8221;#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>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/oU1hwFjO1lA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/fancy-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/fancy-box/</feedburner:origLink></item>
		<item>
		<title>Jquery-Mootool Conflict</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/6CZXJ-tuX_U/</link>
		<comments>http://www.sajithmr.me/jquery-mootool-conflict/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 16:15:16 +0000</pubDate>
		<dc:creator>Sajith M.R</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[conflict]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[mootool]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=460</guid>
		<description><![CDATA[If you are using mootool and jquery same time in your html pages, it normally won&#8217;t work. Because both are using $ variable for the base object. So only the last js file included will be active.

To avoid this, follow the steps:
Include mootool js first
Include jquery js file  second
Like this:
&#60;script src=&#8221;javascript/mootools-release-1.11.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62;
&#60;script src=&#8221;javascript/jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62;
Then [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using mootool and jquery same time in your html pages, it normally won&#8217;t work. Because both are using $ variable for the base object. So only the last js file included will be active.</p>
<p><img class="alignnone size-full wp-image-465" title="jquery-mootools" src="http://www.sajithmr.me/wp-content/uploads/2009/11/jquery-mootools.jpg" alt="jquery-mootools" width="217" height="220" /></p>
<p>To avoid this, follow the steps:</p>
<p>Include mootool js first<br />
Include jquery js file  second</p>
<p>Like this:</p>
<p>&lt;script src=&#8221;javascript/mootools-release-1.11.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;javascript/jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</p>
<p>Then type:</p>
<p>&lt;script&gt;<br />
jQuery.noConflict();<br />
&lt;/script&gt;</p>
<p>For mootool functions, continue with $ object and jQuery function , user <strong>jQuery </strong>object</p>
<p>For example , instead of $(&#8221;#div&#8221;), user jQuery(&#8221;#div&#8221;), another example is jQuery(&#8221;.common&#8221;).load(&#8217;myfile.php&#8217;)</p>
<p>Enjoy Coding !!!</p>
<p>&#8211; Sajith</p>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/6CZXJ-tuX_U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jquery-mootool-conflict/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/jquery-mootool-conflict/</feedburner:origLink></item>
		<item>
		<title>Firephp</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/v0ZYnrELaPU/</link>
		<comments>http://www.sajithmr.me/firephp/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 22:45:46 +0000</pubDate>
		<dc:creator>Sajith M.R</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firephp]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=452</guid>
		<description><![CDATA[We like firebug , We like PHP , if so, We also begin to  like FirePHP !!!
Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console.

In our php life, we know we can use echo function to print or debug the value of a variable and [...]]]></description>
			<content:encoded><![CDATA[<p>We like firebug , We like PHP , if so, We also begin to  like FirePHP !!!</p>
<p>Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console.</p>
<p><a href="http://www.sajithmr.com/wp-content/uploads/2009/08/firebug-extlist-firephp.png"><img class="alignnone size-full wp-image-453" title="firebug-extlist-firephp" src="http://www.sajithmr.com/wp-content/uploads/2009/08/firebug-extlist-firephp.png" alt="" width="422" height="457" /></a></p>
<p>In our php life, we know we can use echo function to print or debug the value of a variable and we usually do that. But if there is any header function such as image manipulation, redirection etc, if you use echo or print either it leads into unwanted results or we get the common error, cannot modify header information headers already sent  !!!</p>
<p>The one solution for this is, writing the variable value into a log file and check the log file after execution. But the advantage of fire php is, you can log messages, or value of a variable and can see through firebug console.</p>
<p>For example:</p>
<p>&lt;?php $fire_php-&gt;log(&#8217;Enter into function&#8217;); ?&gt;</p>
<p>&lt;?php $fire_php-&gt;log($result); ?&gt;</p>
<p>You can also categorize your error as warning or error . eg:</p>
<p>&lt;?php $fire_php-&gt;warn(&#8217;Variable value is not set&#8217;)?&gt; or</p>
<p>&lt;?php $fire_php-&gt;error(&#8217;No parameter passed&#8217;) ?&gt;</p>
<p>For more go to: <a style="text-decoration: none;" href="http://www.firephp.org/">http://www.firephp.org/</a></p>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/v0ZYnrELaPU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/firephp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/firephp/</feedburner:origLink></item>
		<item>
		<title>Yahoo Media Player</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/vyQXtmkzaZA/</link>
		<comments>http://www.sajithmr.me/yahoo-media-player/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 18:22:08 +0000</pubDate>
		<dc:creator>Sajith M.R</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[playlist]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=447</guid>
		<description><![CDATA[It may be an unwanted post, but I recently got this information while sufing through.. It is nothing but a javascript file from Yahoo. It is duty is to convery every mp3 link inside an html page into mp3 player and it also creates a playlist according the the mp3 links available.

What you have to [...]]]></description>
			<content:encoded><![CDATA[<p>It may be an unwanted post, but I recently got this information while sufing through.. It is nothing but a javascript file from Yahoo. It is duty is to convery every mp3 link inside an html page into mp3 player and it also creates a playlist according the the mp3 links available.</p>
<pre id="line11"><a href="http://www.sajithmr.com/wp-content/uploads/2009/08/yplayer.jpg"><img class="alignnone size-full wp-image-448" title="yplayer" src="http://www.sajithmr.com/wp-content/uploads/2009/08/yplayer.jpg" alt="" width="499" height="67" /></a></pre>
<p>What you have to do, is just add this js file below your html page which contains some mp3 href</p>
<pre id="line11">&lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">src</span>=<span class="attribute-value">"http://mediaplayer.yahoo.com/js"</span>&gt;&lt;/<span class="end-tag">script</span>&gt;</pre>
<pre id="line11">You can see the demo here,if your browser supports flash</pre>
<pre id="line11"><a href="http://www.sajithmr.com/downloads/yplayer.html" target="_blank">http://www.sajithmr.com/downloads/yplayer.html</a></pre>
<pre id="line11">Take view source to see how does it work</pre>
<pre id="line11">Thanks</pre>
<pre id="line11">Sajith</pre>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/vyQXtmkzaZA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/yahoo-media-player/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/yahoo-media-player/</feedburner:origLink></item>
		<item>
		<title>Mysql Table Editor</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/4ys4seawhpc/</link>
		<comments>http://www.sajithmr.me/mysql-table-editor/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 04:31:56 +0000</pubDate>
		<dc:creator>Sajith M.R</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php source code]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[msql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=439</guid>
		<description><![CDATA[
In a php project, if we get the requirement , we usually start design and database. But the data entry procedure is very hard. In this case PhpMyadmin is a good comfort. 
Here is another tool from phpguru.org , MySQL Table Editor. Using this library you can make your database table editable from your php code. 
You [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sajithmr.com/wp-content/uploads/2009/06/mysql-table-editor.png"><img class="alignnone size-full wp-image-442" title="mysql-table-editor" src="http://www.sajithmr.com/wp-content/uploads/2009/06/mysql-table-editor.png" alt="" width="291" height="59" /></a></p>
<p>In a php project, if we get the requirement , we usually start design and database. But the data entry procedure is very hard. In this case PhpMyadmin is a good comfort. </p>
<p>Here is another tool from phpguru.org , MySQL Table Editor. Using this library you can make your database table editable from your php code. </p>
<p>You can  :</p>
<ol>
<li>Select the table to be displayed</li>
<li>decide which column should be hidden</li>
<li>Whether a column should be editable or not</li>
<li>Add advanced searching option</li>
<li>Download the table as csv format</li>
<li>Add pagination</li>
<li>Set alias display name for your column</li>
</ol>
<div>Download Library from: </div>
<div><a href="http://www.phpguru.org/downloads/TableEditor/TableEditor.zip">http://www.phpguru.org/downloads/TableEditor/TableEditor.zip</a></div>
<div></div>
<div>Documentation:</div>
<div><a href="http://www.phpguru.org/static/TableEditor.html">http://www.phpguru.org/static/TableEditor.html</a></div>
<div></div>
<div>Sample Code Below:</div>
<pre lang="php">

<?php
require_once('TableEditor.php');
//database connection object
$db_conn = mysql_connect('localhost','root','');
mysql_select_db('mydbname'); 

//select the table to be edited, here it is accounts
$editor = new TableEditor($db_conn, 'accounts');
//I dont want to display id and password column
$editor->noDisplay('id');
$editor->noDisplay('password');
//the email column should not be editable
$editor->noEdit('email');
//set display name for column email and login
$editor->setDisplayNames(array('email'       => 'Email',
                              'login'     => 'Username'
                              ));
//sort order of first name
$editor->setDefaultOrderby('namefirst', 0);
//set which are the filed to be searchable
$editor->setConfig('searchableFields', array('namefirst', 'namelast', 'email'));
//can set the type of input field
$editor->setInputType('available', 'select');
//finally display the editor window
$editor->display();
?>
</pre>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/4ys4seawhpc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/mysql-table-editor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/mysql-table-editor/</feedburner:origLink></item>
		<item>
		<title>XAJAX</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/z4Ac4mchp4A/</link>
		<comments>http://www.sajithmr.me/xajax/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 16:00:24 +0000</pubDate>
		<dc:creator>Sajith M.R</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()
 {
      var t = document.getElementById(&#8217;cap&#8217;).value;
      document.getElementById(&#8217;update&#8217;).innerHTML [...]]]></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(&#8217;cap&#8217;).value;</p>
<p>      document.getElementById(&#8217;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(&#8221;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(&#8217;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>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/z4Ac4mchp4A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/xajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/xajax/</feedburner:origLink></item>
		<item>
		<title>JQuery – Play with html</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/H-zUF6DNlkg/</link>
		<comments>http://www.sajithmr.me/jquery-play-with-html/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 23:23:00 +0000</pubDate>
		<dc:creator>Sajith M.R</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 
$(&#8221;p.neat&#8221;).addClass(&#8221;ohmy&#8221;).show(&#8221;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 function from the top [...]]]></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;">$(&#8221;p.neat&#8221;).addClass(&#8221;ohmy&#8221;).show(&#8221;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>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/H-zUF6DNlkg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jquery-play-with-html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/jquery-play-with-html/</feedburner:origLink></item>
		<item>
		<title>Symfony V/S Codeigniter</title>
		<link>http://feedproxy.google.com/~r/sajithmr/~3/IuqHwi4fgps/</link>
		<comments>http://www.sajithmr.me/symfony-vs-codeigniter/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 12:55:58 +0000</pubDate>
		<dc:creator>Sajith M.R</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=409</guid>
		<description><![CDATA[     V/S     
I have developed more than 7 web projects using Symfony framework. Mobshare.in, Amvizone.com, Campaignmanger.in , Movieonline.in etc are some of the websites. But for the past 5 months my developement is in Codeigniter. It is very very lighter than Symfony and has almost all the features of Symfony. Both are MVC [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.symfony-project.org/images/symfony_logo.gif" alt="symfony Web PHP framework" />     V/S     <img src="http://codeigniter.com/images/design/ci_logo2.gif" alt="CodeIgniter" width="170" height="73" /></p>
<p>I have developed more than 7 web projects using <a href="http://www.symfony-project.org/" target="_blank">Symfony</a> framework. Mobshare.in, Amvizone.com, Campaignmanger.in , Movieonline.in etc are some of the websites. But for the past 5 months my developement is in <a href="http://codeigniter.com/" target="_blank">Codeigniter</a>. It is very very lighter than Symfony and has almost all the features of Symfony. Both are MVC framework. But symfony has 4 layer while the latter has only two. Symfony uses modules (extra layer) for Controllers. But Codeigniter eleminates  that layer. It is similer to Ruby on Rails. </p>
<p>Symfony uses naming convention to map controller and view. For example controller index need indexSuccess.php file as view or indexError.php as error. But in Codeigniter, we have to specify the view manually from the controller</p>
<p>$this-&gt;load-&gt;view(&#8217;myview.php&#8217;); </p>
<p>Symfony has command line tool to develop all the model classes. One thing you have to do is specify the scheme.yml file. But in Codeigniter, you have to make model classes from the scratch. However a lot of database operation libraries are available with it to make the coding life easier. Since we have to load each libraries manually, Codeigniter gaurantee the speed of execution. (Autoloading option is there, but in most of the case we can eliminate unwanted libraries from autoloading &#8211; just like execute on the fly)</p>
<p>There is no built in ajax and javascript function in codeigniter. But you can add it as plugin. Like Symfony it also has cache management, logs, testing, helpers, url rules, documentator, scaffolding etc</p>
<p>Codeigniter has a simple folder hierachy that everybody can understand and very less learning curve than Symfony. </p>
<p> </p>
<p>Go through this link if you wanna know about all the features of codeigniter : <a href="http://codeigniter.com/user_guide/toc.html">http://codeigniter.com/user_guide/toc.html</a></p>
<p>I found another interesting comparison of these two in : <a href="http://www.devtrench.com/codeigniter-vs-symfony/">http://www.devtrench.com/codeigniter-vs-symfony/</a></p>
<img src="http://feeds.feedburner.com/~r/sajithmr/~4/IuqHwi4fgps" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/symfony-vs-codeigniter/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.sajithmr.me/symfony-vs-codeigniter/</feedburner:origLink></item>
	</channel>
</rss>
