<?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/"
	>

<channel>
	<title>Dax Panganiban</title>
	<atom:link href="http://daxpanganiban.com/feed" rel="self" type="application/rss+xml" />
	<link>http://daxpanganiban.com</link>
	<description>web developer in progress</description>
	<pubDate>Sat, 13 Feb 2010 07:32:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Expecting a Baby Girl!</title>
		<link>http://daxpanganiban.com/personal/expecting-a-baby-girl</link>
		<comments>http://daxpanganiban.com/personal/expecting-a-baby-girl#comments</comments>
		<pubDate>Sat, 13 Feb 2010 07:32:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/personal/expecting-a-baby-girl</guid>
		<description><![CDATA[My wife and I just got back from the clinic today. She took an ultrasound and we found out we are going to have a baby girl! My first born is a baby girl! Everything is right where it should be&#8230;I hope and pray she&#8217;ll come out healthy. I&#8217;m so happy today  
]]></description>
			<content:encoded><![CDATA[<p>My wife and I just got back from the clinic today. She took an ultrasound and we found out we are going to have a baby girl! My first born is a baby girl! Everything is right where it should be&#8230;I hope and pray she&#8217;ll come out healthy. I&#8217;m so happy today <img src='http://daxpanganiban.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/personal/expecting-a-baby-girl/feed</wfw:commentRss>
		</item>
		<item>
		<title>CakePHP sessions</title>
		<link>http://daxpanganiban.com/php/cakephp-sessions</link>
		<comments>http://daxpanganiban.com/php/cakephp-sessions#comments</comments>
		<pubDate>Tue, 09 Feb 2010 08:28:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/?p=88</guid>
		<description><![CDATA[If you are developing an CakePHP application where ajax is mostly used. It is advisable that you set the following session configurations inside your core.php.

Configure::write('Session.timeout', '86400'); // expires in 30 days

Configure::write('Security.level', 'medium');

If your application calls more than one ajax request at the same time, it is recommended that you set your ajax requests to synchronous [...]]]></description>
			<content:encoded><![CDATA[<p>If you are developing an CakePHP application where ajax is mostly used. It is advisable that you set the following session configurations inside your core.php.</p>
<pre class="brush: php;">
Configure::write('Session.timeout', '86400'); // expires in 30 days

Configure::write('Security.level', 'medium');
</pre>
<p>If your application calls more than one ajax request at the same time, it is recommended that you set your ajax requests to synchronous to prevent session regeneration id errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/php/cakephp-sessions/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to check if a plugin has been loaded in jQuery?</title>
		<link>http://daxpanganiban.com/javascript/how-to-check-if-a-plugin-has-been-loaded-in-jquery</link>
		<comments>http://daxpanganiban.com/javascript/how-to-check-if-a-plugin-has-been-loaded-in-jquery#comments</comments>
		<pubDate>Tue, 09 Feb 2010 08:17:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/?p=85</guid>
		<description><![CDATA[This tutorial illustrates how to check if a plugin exists or if plugin has been already loaded using  jQuery. This is particularly useful if you are writing your jQuery code that depends on that plugin.

if(jQuery().plugin_name) {
// plugin exists
} else {
// plugin not loaded
}

]]></description>
			<content:encoded><![CDATA[<p>This tutorial illustrates how to check if a plugin exists or if plugin has been already loaded using  jQuery. This is particularly useful if you are writing your jQuery code that depends on that plugin.</p>
<pre class="brush: js;">
if(jQuery().plugin_name) {
// plugin exists
} else {
// plugin not loaded
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/javascript/how-to-check-if-a-plugin-has-been-loaded-in-jquery/feed</wfw:commentRss>
		</item>
		<item>
		<title>A New Beginning</title>
		<link>http://daxpanganiban.com/personal/a-new-beginning</link>
		<comments>http://daxpanganiban.com/personal/a-new-beginning#comments</comments>
		<pubDate>Mon, 24 Aug 2009 06:23:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/personal/a-new-beginning</guid>
		<description><![CDATA[I just started on my new job at a startup company here in Cebu City. I&#8217;m excited on this new opportunity to work with a new team and deal with new projects.
]]></description>
			<content:encoded><![CDATA[<p>I just started on my new job at a startup company here in Cebu City. I&#8217;m excited on this new opportunity to work with a new team and deal with new projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/personal/a-new-beginning/feed</wfw:commentRss>
		</item>
		<item>
		<title>Using Zend Framework&#8217;s Paginator Library</title>
		<link>http://daxpanganiban.com/php/using-zend-frameworks-paginator-library</link>
		<comments>http://daxpanganiban.com/php/using-zend-frameworks-paginator-library#comments</comments>
		<pubDate>Tue, 23 Jun 2009 04:26:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[pagination]]></category>

		<category><![CDATA[zend framework]]></category>

		<category><![CDATA[zend paginator]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/?p=74</guid>
		<description><![CDATA[Here&#8217;s a tutorial on how to use ZF&#8217;s paginator library.
Inside your controller:

    public function displayResultsAction() {
        // First condition gets filtered info from a form and passes it to the model
        if($this-&#62;_request-&#62;getPost('Submit')) {
      [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a tutorial on how to use ZF&#8217;s paginator library.</p>
<p>Inside your controller:</p>
<pre class="brush: php;">
    public function displayResultsAction() {
        // First condition gets filtered info from a form and passes it to the model
        if($this-&gt;_request-&gt;getPost('Submit')) {
            $dept_code= $this-&gt;_request-&gt;getPost('dept_code');

            $results = $this-&gt;report_model-&gt;getReports($dept_code);
      	} elseif($this-&gt;_request-&gt;getParam('dept_code')) {
        // Get the filtered info from the url params being passed by zend paginator
       	    $dept_code= $this-&gt;_request-&gt;getParam('dept_code');

       	    $results = $this-&gt;report_model-&gt;getReports($dept_code);
       	} else {
            // do anything here...
            // I just display the default report results
            $dept_code = '';

       	    $results = $this-&gt;report_model-&gt;getDefaultReports();
        }

        $page = $this-&gt;_request-&gt;getParam('page', 1);

        $paginator = Zend_Paginator::factory($results);
        //Set item count per page
        $paginator-&gt;setItemCountPerPage(20);

        $paginator-&gt;setCurrentPageNumber($page);

        $this-&gt;view-&gt;results = $paginator;
        $this-&gt;view-&gt;dept_code = $dept_code;
    }
</pre>
<p>Inside your results view page:</p>
<pre class="brush: php;">
&lt;!-- html code here --&gt;

&lt;table class=&quot;view&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th width=&quot;100&quot;&gt;Id #&lt;/th&gt;
            &lt;th width=&quot;150&quot;&gt;Dept Code&lt;/th&gt;
            &lt;th width=&quot;200&quot;&gt;Department&lt;/th&gt;
            &lt;th width=&quot;200&quot;&gt;Project Name&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
    &lt;?php   foreach($this-&gt;results as $row) { ?&gt;
        &lt;tr class=&quot;view-details&quot;&gt;
            &lt;td&gt;&lt;?=$row-&gt;Id?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?=$row-&gt;DeptCode?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?=$row-&gt;DeptName?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;?=$row-&gt;ProjName?&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;?php   }    ?&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;!-- specify path of pagination control under your views in the 3rd param --&gt;
&lt;!-- Adding extra params in the url is specified on the 4th function param here --&gt;
&lt;?=$this-&gt;paginationControl($this-&gt;results, 'Sliding', 'reports/results-pagination.phtml', array('dept_code' =&gt; $this-&gt;dept_code))?&gt;

&lt;!-- html code here --&gt;
</pre>
<p>Inside your pagination file view:</p>
<pre class="brush: php;">
&lt;?php if ($this-&gt;pageCount): ?&gt;
&lt;div id=&quot;paginationControl&quot;&gt;
&lt;!-- Previous page link --&gt;
&lt;?php if (isset($this-&gt;previous)): ?&gt;
&lt;?php   if($this-&gt;dept_code == '') { ?&gt;
    &lt;a href=&quot;&lt;?= $this-&gt;url(array('page' =&gt; $this-&gt;previous)); ?&gt;&quot;&gt;&amp;lt; Previous&lt;/a&gt; |
&lt;?php   } else { ?&gt;
   &lt;a href=&quot;&lt;?= $this-&gt;url(array('page' =&gt; $this-&gt;previous, 'dept_code' =&gt; $this-&gt;dept_code)); ?&gt;&quot;&gt;&amp;lt; Previous&lt;/a&gt; |
&lt;?php   } ?&gt;
&lt;?php else: ?&gt;
  &lt;span class=&quot;disabled&quot;&gt;&amp;lt; Previous&lt;/span&gt; |
&lt;?php endif; ?&gt; 

&lt;!-- Numbered page links --&gt;
&lt;?php foreach ($this-&gt;pagesInRange as $page): ?&gt;
    &lt;?php if ($page != $this-&gt;current): ?&gt;
    &lt;a href=&quot;&lt;?=$this-&gt;baseUrl()?&gt;/reports/display-results?page=&lt;?=$page?&gt;&lt;?=($this-&gt;dept_code!= '') ? '&amp;dept_code=' . $this-&gt;dept_code: ''?&gt;&quot;&gt;&lt;?= $page; ?&gt;&lt;/a&gt; |
    &lt;?php else: ?&gt;
    &lt;?= $page; ?&gt; |
   &lt;?php endif; ?&gt;
&lt;?php endforeach; ?&gt;

&lt;!-- Next page link --&gt;
&lt;?php if (isset($this-&gt;next)): ?&gt;
  &lt;a href=&quot;&lt;?=$this-&gt;baseUrl()?&gt;/reports/display-results?page=&lt;?=$this-&gt;next?&gt;&lt;?=($this-&gt;dept_code != '') ? '&amp;dept_code=' . $this-&gt;dept_code: ''?&gt;&quot;&gt;Next &amp;gt;&lt;/a&gt;
&lt;?php else: ?&gt;
    &lt;span class=&quot;disabled&quot;&gt;Next &amp;gt;&lt;/span&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/php/using-zend-frameworks-paginator-library/feed</wfw:commentRss>
		</item>
		<item>
		<title>Get value of radio button using jQuery</title>
		<link>http://daxpanganiban.com/javascript/get-value-of-radio-button-using-jquery</link>
		<comments>http://daxpanganiban.com/javascript/get-value-of-radio-button-using-jquery#comments</comments>
		<pubDate>Mon, 08 Jun 2009 08:52:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[jQuery]]></category>

		<category><![CDATA[radio buttons]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/?p=72</guid>
		<description><![CDATA[Here&#8217;s a tutorial on how to get the value of a checked or selected radio button out of a group of radio buttons:

...
&#60;input type=&#34;radio&#34; name=&#34;sample&#34; value=&#34;1&#34; /&#62;
&#60;input type=&#34;radio&#34; name=&#34;sample&#34; value=&#34;2&#34; checked=&#34;checked&#34; /&#62;
&#60;input type=&#34;radio&#34; name=&#34;sample&#34; value=&#34;3&#34; /&#62;
...

//javascript code

&#60;script type=&#34;text/javascript&#34;&#62;
&#60;!--
    // displays the selected radio button in an alert box
    alert($('input[name=sample]:checked').val())
--&#62;
&#60;/script&#62;

]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a tutorial on how to get the value of a checked or selected radio button out of a group of radio buttons:</p>
<pre class="brush: php;">
...
&lt;input type=&quot;radio&quot; name=&quot;sample&quot; value=&quot;1&quot; /&gt;
&lt;input type=&quot;radio&quot; name=&quot;sample&quot; value=&quot;2&quot; checked=&quot;checked&quot; /&gt;
&lt;input type=&quot;radio&quot; name=&quot;sample&quot; value=&quot;3&quot; /&gt;
...

//javascript code

&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
    // displays the selected radio button in an alert box
    alert($('input[name=sample]:checked').val())
--&gt;
&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/javascript/get-value-of-radio-button-using-jquery/feed</wfw:commentRss>
		</item>
		<item>
		<title>Translate timestamp into words using PHP</title>
		<link>http://daxpanganiban.com/php/translate-timestamp-into-words-using-php</link>
		<comments>http://daxpanganiban.com/php/translate-timestamp-into-words-using-php#comments</comments>
		<pubDate>Thu, 28 May 2009 09:38:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[date_diff]]></category>

		<category><![CDATA[php timestamp]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/?p=64</guid>
		<description><![CDATA[Here&#8217;s a nifty class I use for getting the date difference and translating them into words.

 class Date  {

    	public static function date_diff($dateTimeBegin,$dateTimeEnd) {

    		$dateTimeBegin = @strtotime($dateTimeBegin);

    		if($dateTimeBegin === -1) throw new InvalidDate(&#34;$dateTimeBegin: invalid date&#34;);

    		$dateTimeEnd=@strtotime($dateTimeEnd);

    		if($dateTimeEnd === -1) [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nifty class I use for getting the date difference and translating them into words.</p>
<pre class="brush: php;">
 class Date  {

    	public static function date_diff($dateTimeBegin,$dateTimeEnd) {

    		$dateTimeBegin = @strtotime($dateTimeBegin);

    		if($dateTimeBegin === -1) throw new InvalidDate(&quot;$dateTimeBegin: invalid date&quot;);

    		$dateTimeEnd=@strtotime($dateTimeEnd);

    		if($dateTimeEnd === -1) throw new InvalidDate(&quot;$dateTimeEnd: invalid date&quot;);

    		$dif=$dateTimeEnd - $dateTimeBegin;

    		if ($dif == 0) return &quot;&lt; 1 second&quot;;

    		if ($dif == 1) return &quot;1 second&quot;;

    		$return_val = null;
    		$weeks      = floor($dif / 604800);

    		if ($weeks &gt; 0) {
    			$dif -= $weeks * 604800;
    			$return_val .= &quot;$weeks week&quot;.(($weeks&gt;1)?'s':'');
    		}

    		$days = floor($dif / 86400);

    		if ($days &gt; 0) {
    			$dif -= $days * 86400;
    			$return_val .= !is_null($return_val)?' and ':'';
    			$return_val .= &quot;$days day&quot;.(($days&gt;1)?'s':'');
    		}

    		$hours = floor($dif/3600);

    		if ($hours &gt; 0) {
    			$dif -= $hours * 3600;
    			$return_val .= !is_null($return_val)?' and ':'';
    			$return_val .= &quot;$hours hour&quot;.(($hours&gt;1)?'s':'');
    		}

    		$minutes = floor($dif/60);

    		if ($minutes &gt; 0) {
    			$dif -= $minutes * 60;
    			$return_val .= !is_null($return_val)?' and ':'';
    			$return_val .= &quot;$minutes minute&quot;.(($minutes&gt;1)?'s':'');
    		}

    		$seconds = $dif;

    		if ($seconds &gt; 0) {
    			$return_val .= !is_null($return_val)?' and ':'';
    			$return_val .= &quot;$seconds second&quot;.(($seconds&gt;1)?'s':'');
    		}

    		return $return_val;
    	}

    	public static function format_date($date) {
    	    $return_val = null;
    		$weeks      = floor($date / 604800);

    		if ($weeks &gt; 0) {
    			$dif -= $weeks * 604800;
    			$return_val .= &quot;$weeks week&quot;.(($weeks&gt;1)?'s':'');
    		}

    		$days = floor($date / 86400);

    		if ($days &gt; 0) {
    			$date -= $days * 86400;
    			$return_val .= !is_null($return_val)?' and ':'';
    			$return_val .= &quot;$days day&quot;.(($days&gt;1)?'s':'');
    		}

    		$hours = floor($date/3600);

    		if ($hours &gt; 0) {
    			$date -= $hours * 3600;
    			$return_val .= !is_null($return_val)?' and ':'';
    			$return_val .= &quot;$hours hour&quot;.(($hours&gt;1)?'s':'');
    		}

    		$minutes = floor($date/60);

    		if ($minutes &gt; 0) {
    			$date -= $minutes * 60;
    			$return_val .= !is_null($return_val)?' and ':'';
    			$return_val .= &quot;$minutes minute&quot;.(($minutes&gt;1)?'s':'');
    		}

    		$seconds = $date;

    		if ($seconds &gt; 0) {
    			$return_val .= !is_null($return_val)?' and ':'';
    			$return_val .= &quot;$seconds second&quot;.(($seconds&gt;1)?'s':'');
    		}

    		return $return_val;
    	}
    }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/php/translate-timestamp-into-words-using-php/feed</wfw:commentRss>
		</item>
		<item>
		<title>Adding security to your SVN directory using .htaccess</title>
		<link>http://daxpanganiban.com/server-related-stuff/adding-security-to-your-svn-directory-using-htaccess</link>
		<comments>http://daxpanganiban.com/server-related-stuff/adding-security-to-your-svn-directory-using-htaccess#comments</comments>
		<pubDate>Mon, 25 May 2009 09:02:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server Related Stuff]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/?p=61</guid>
		<description><![CDATA[If you are familiar with SVN, your directory tree of your project or website would be populated by .svn folders. These folders are a security vulnerability since this is where you keep your file revisions and other information regarding the structure and layout of your website. Here&#8217;s a simple solution made by Adam Gotterer that [...]]]></description>
			<content:encoded><![CDATA[<p>If you are familiar with SVN, your directory tree of your project or website would be populated by .svn folders. These folders are a security vulnerability since this is where you keep your file revisions and other information regarding the structure and layout of your website. Here&#8217;s a simple solution made by <a href="http://www.adamgotterer.com/2009/01/26/hacking-the-svn-directory/">Adam Gotterer</a> that protect and secure those directories by using .htaccess:</p>
<p>RewriteRule (\.svn)/(.*?) - [F,L]</p>
<p>Another good tip is to use SVN export instead of a checkout or rsync.</p>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/server-related-stuff/adding-security-to-your-svn-directory-using-htaccess/feed</wfw:commentRss>
		</item>
		<item>
		<title>Connect to a Unix system using PHP SSH2</title>
		<link>http://daxpanganiban.com/php/ssh2-for-php</link>
		<comments>http://daxpanganiban.com/php/ssh2-for-php#comments</comments>
		<pubDate>Fri, 22 May 2009 03:15:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/?p=51</guid>
		<description><![CDATA[In order to use this class, SSH2 lib must be installed in your PHP configuration. Go here for detailed instructions on how to install and compile SSH2 lib in your web server.

class Ssh {

        private $host = '';
        private $user = [...]]]></description>
			<content:encoded><![CDATA[<p>In order to use this class, SSH2 lib must be installed in your PHP configuration. Go <a title="SSH2 Lib installation" href="http://us3.php.net/manual/en/ssh2.installation.php" target="_blank">here</a> for detailed instructions on how to install and compile SSH2 lib in your web server.</p>
<pre class="brush: php;">
class Ssh {

        private $host = '';
        private $user = '';
        private $port = '22';
        private $password = '';
        private $con = null;
        private $shell_type = 'xterm';
        private $shell = null;
        private $log = '';

        public function __construct($params) {
            if($params['host'] != '') $this-&gt;host  = $params['host'];
            if($params['port'] != '') $this-&gt;port  = $params['port'];
        }

        public function connectShell() {
            $this-&gt;con = @ssh2_connect($this-&gt;host, $this-&gt;port);

            if(!$this-&gt;con) {
                $this-&gt;log .= &quot;Connection failed!\n&quot;;

                return FALSE;
            } else {
                return TRUE;
            }
        }

        public function authPassword($user = '', $password = '' ) {
            if($user != '') $this-&gt;user = $user;

            if($password != '') $this-&gt;password = $password;

            if(!@ssh2_auth_password($this-&gt;con, $this-&gt;user, $this-&gt;password) ) {
                $this-&gt;log .= &quot;Authorization failed!\n&quot;;

                return FALSE;
            } else {
                return TRUE;
            }
        }

        public function execShell($command) {
            if(!($stream = @ssh2_exec($this-&gt;con, $command)) ){
                $this-&gt;log .= &quot;Fail: Unable to execute command!\n&quot;;

                return FALSE;
            } else {
                // collect returning data from command
                stream_set_blocking($stream, true );
                $this-&gt;log .= stream_get_contents($stream);
                fclose($stream);                

                return TRUE;
            }
        }

        public function sendFile($local_file, $remote_file, $mode = '0644') {
            if(!ssh2_scp_send($this-&gt;con, $local_file, $remote_file)) {
                $this-&gt;log .= &quot;Cannot send file to server.\n&quot;;

                return FALSE;
            } else {
                return TRUE;
            }
        }

        public function getLog() {
            return $this-&gt;log;
        }

    }
</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/php/ssh2-for-php/feed</wfw:commentRss>
		</item>
		<item>
		<title>Ajax preloading/loading animation using jQuery BlockUI</title>
		<link>http://daxpanganiban.com/javascript/ajax-preloadingloading-animation-using-jquery-blockui</link>
		<comments>http://daxpanganiban.com/javascript/ajax-preloadingloading-animation-using-jquery-blockui#comments</comments>
		<pubDate>Wed, 20 May 2009 10:43:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[ajax load]]></category>

		<category><![CDATA[jQuery BlockUI]]></category>

		<category><![CDATA[page block]]></category>

		<guid isPermaLink="false">http://daxpanganiban.com/?p=26</guid>
		<description><![CDATA[This tutorial shows you how to block/disable your web page whenever an application is processing an ajax request. First, you would have to download the latest jQuery library and the jQuery BlockUI plugin. Usage is very simple; Here&#8217;s a sample to block user activity for the page whenever an ajax request is called:

&#60;script type=&#34;text/javascript&#34; src=&#34;jquery-latest.js&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial shows you how to block/disable your web page whenever an application is processing an ajax request. First, you would have to download the latest <a title="jQuery website" href="http://www.jquery.com" target="_blank">jQuery</a> library and the <a title="jQuery BlockUI" href="http://malsup.com/jquery/block/#overview" target="_blank">jQuery BlockUI plugin</a>. Usage is very simple; Here&#8217;s a sample to block user activity for the page whenever an ajax request is called:</p>
<pre class="brush: plain; highlight: [7];">
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-latest.js&quot; language=&quot;javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.blockui.js&quot; language=&quot;javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
&lt;!--
	$(document).ready( function () {
		&lt;!-- Page block animation during ajax requests --&gt;
		$().ajaxStart($.blockUI).ajaxStop($.unblockUI);		

		$('#form_button').click( function () {
			$.ajax({
			&lt;!-- Ajax actions here --&gt;
				....
			});
		});
	});
--&gt;
&lt;/script&gt;
</pre>
<p>For more options on using jQuery BlockUI plugin go <a title="jQuery BlockUI" href="http://malsup.com/jquery/block/#overview" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://daxpanganiban.com/javascript/ajax-preloadingloading-animation-using-jquery-blockui/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
