<?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>El Blog del Antonio &#187; JQuery</title>
	<atom:link href="http://www.ramirezcobos.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ramirezcobos.com</link>
	<description>Programming Web with PHP, CSS, Javascript and ∞</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:26:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Livebuttons Plugin</title>
		<link>http://www.ramirezcobos.com/2010/12/15/jquery-livebuttons-plugin/</link>
		<comments>http://www.ramirezcobos.com/2010/12/15/jquery-livebuttons-plugin/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 15:45:23 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=716</guid>
		<description><![CDATA[Introduction
I normally develop CMS (control management systems) based on a heavy use of AJAX, and I normally endup writing tones of jQuery functions for different IDs and/or CLASSes. Thinking to create a library that will free me to create the same functions again and again and for different  [...]]]></description>
			<content:encoded><![CDATA[<h2><a rel="attachment wp-att-372" href="http://www.ramirezcobos.com/2010/01/14/jquery-1-4-are-you-ready/picture-121-300x157/"><img class="alignright size-thumbnail wp-image-372" title="jQuery" src="http://www.ramirezcobos.com/wp-content/uploads/2010/03/Picture-121-300x157-120x120.png" alt="" width="120" height="120" /></a>Introduction</h2>
<p>I normally develop CMS (control management systems) based on a heavy use of AJAX, and I normally endup writing tones of jQuery functions for different IDs and/or CLASSes. Thinking to create a library that will free me to create the same functions again and again and for different classes I thought about this simple plugin. The reason was that if I was to create a new CMS for my beloved Yii framework, I just wanted to have a system where, by setting some meta data into the HTML elements, the client script will smartly know what to do. I didn&#8217;t want to necessary worry about different classes on  my client scripts, I wanted to be just one class.</p>
<p>The idea behind goes a bit further and has something to do with Yii, I want to create extensions that will take care of the correct rendering of a button without having to worry about the client scripts **and** also the same extension could actually call jquery commands easily. I emphasized **and** because Yii already provides an ajaxLink and an ajaxButton but they are not listened to perform client jquery executions and that, as seen in its forums, is causing problems to PHP programmers a lot of times.</p>
<p>Also, I envision an environment where through this, Yii extension designers will be able to create CMS styles, completely different that the one coming from Yii, so Yii users could easily integrate a new layout without even tweaking CSS, or Themes, or Layouts, just their views and by integrating some specialized widgets API, user will be able to program a gallery (for example) with just one line of code on their views. Enough talking, here is the plugin for you to test it and tell me what do you think.</p>
<h2>How to use</h2>
<p>Include jquery and jquery.livebuttons.js on your document&#8217;s head and start monitoring for livebuttons like this:</p>
<pre class="brush: jscript; title: ; notranslate">
//
// .selector is the class name the HTML elements have
$('.selector').livebuttons();
$('.selector').livebuttons( options );
//
// we can have more than one
$('.otherselector').livebuttons( otheroptions );
</pre>
<h2>Options</h2>
<h3>useFirebug</h3>
<p>A useful property for debuggin processes. If set to true all logs will be displayed on firebug console (or chrome).</p>
<pre class="brush: jscript; title: ; notranslate">
var options = {
    useFirebug: true
}
$('.selector').livebuttons( options );
</pre>
<h3>events</h3>
<p>An array of options where to specify the events to monitor. In future releases, we will be able to specify which methods correspond for certain events.</p>
<pre class="brush: jscript; title: ; notranslate">
var options = {
    events: ['click','mouseover'] // not a good practice though *yet*
}
$('.selector').livebuttons( options );
</pre>
<h3>methods</h3>
<p>This is the most interesting part of the plugin. We could implement our own javascript methods to be used with livebuttons. All methods will receive a &#8216;command&#8217; parameter, which is actually the object in the meta-data of the HTML element (see below on the examples provided for default methods).</p>
<pre class="brush: jscript; title: ; notranslate">
var options = {
    methods: {
        alert: function( command ) {
              alert( command.message );
        }
   }
}
$('.selector').livebuttons( options );
</pre>
<p>When designing our own javascript functions to be attached to the plugin, we can access internal parser functions with <strong>this</strong> keyboard. All functions receive a command object and also a reference to the <strong>options</strong> object. This object have a reference to the parser it self and we could easily access parser&#8217;s functions by using <strong>this.parser</strong>.</p>
<h2>The Parser</h2>
<p>If you look at the code inside the plugin, you will see that the parser has a couple of good methods to use:</p>
<h3>stringify</h3>
<p>Converts an object to its JSON representation string</p>
<h3>createIFrame</h3>
<p>Creates an iframe to be used with FORMs with multipart/form-data. So you can easily send files to the server without the need of reloading the page. Check at its code to see its</p>
<h3>removeIFrame</h3>
<p>Removes the iFrame previously created with parser.createIFrame() method.</p>
<h3>parseJSON</h3>
<p>Parses a JSON string and converts it into an object. I know jQuery comes with one, but it throws an error when you include a function into a command object&#8217;s property.</p>
<h2>Default Methods</h2>
<p>You have a couple of methods that already come with the plugin. You can easily override them if required. Here they are:</p>
<h3>ajax</h3>
<p>Its name is self-explanatory. It receives a command object on the following format:</p>
<pre>
{method:'ajax',url:'',data:{},success:function(){},error:function(){}}</pre>
<p><strong>Example of live button markup</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;a class=&quot;livebutton&quot; href=&quot;#&quot;
data-cmd='{&quot;method&quot;:&quot;ajax&quot;,&quot;url&quot;:'http://localhost/',&quot;success&quot;:handleAJAX}&quot;&gt;test ajax&lt;/a&gt;
</pre>
<h3>getscript</h3>
<p>Its calling jQuery&#8217;s getScript method. It receives a command object on the following format:</p>
<pre>
{method:'getscript',url:''}</pre>
<p><strong>Example of live button markup</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;#&quot; class=&quot;livebutton&quot;
   data-cmd='{method:&quot;getscript&quot;,url:'http://localhost/script.js'}' &gt;test getscript&lt;/a&gt;
</pre>
<h3>jquery</h3>
<p>Its calling any jQuery&#8217;s method. It receives a command object on the following format:</p>
<pre>
{"method":"jquery","jqmethod": "","target":"","arguments":["url",function(){}]}</pre>
<p><strong>Example of live button markup</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;a class=&quot;livebutton&quot; href=&quot;#&quot; data-cmd=&quot;{&quot;method&quot;:&quot;jquery&quot;,&quot;jqmethod&quot;:&quot;load&quot;,&quot;target&quot;:&quot;#layer&quot;,&quot;arguments&quot;:[&quot;url&quot;:&quot;http://localhost&quot;]&quot;&gt;test load jquery function&lt;/a&gt;
</pre>
<h2>Remarks</h2>
<p>As previously said, all functions also receive the command object extracted from the HTML element, but that&#8217;s not all. The parser automatically includes a jquery reference of the HTML element to the command&#8217;s element property.</p>
<pre class="brush: jscript; title: ; notranslate">
var options = {
    methods: {
        alert: function( command ) {
              alert( command.message );
             // do not use $( command.element ) as it would like $( $( element ) )
              command.element.attr('title','I have already been clicked');
        }
   }
}
$('.selector').livebuttons( options );
</pre>
<h2>Demo</h2>
<p>For the sake of having a demo (I will build a better one) the following script will create a live button that can perform jquery &#8216;append&#8217; commands. Please note that when you load new content via AJAX on a page that has the livebuttons plugin that you have successfuly initiated, the plugin will also listen to the specified events to those livebuttons loaded via AJAX.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;script src=&quot;path\to\jquery.livebuttons.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
$('.testbuttons').livebuttons();
&lt;body&gt;
&lt;a href=&quot;#&quot; class=&quot;testbuttons&quot;
  data-cmd=&quot;{&quot;method&quot;:&quot;jquery&quot;,&quot;jqmethod&quot;:&quot;append&quot;,&quot;target&quot;:&quot;#container&quot;,&quot;arguments&quot;:[&quot;new content&lt;br&gt;&quot;]}&quot;&gt;Test append&lt;/a&gt;
&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h2>Download</h2>
<p>I seriously would like to know what do you think about this system as, again, I am planning to develop extensions for Yii that will embrace it in order to easy the tasks of PHP programmers with client Javascript. I do use this system to create a new system for a personal project and it is working quite good; but I won&#8217;t dare to create Yii extensions if you think that what I envision is wrong.</p>
<p>If the below link doesn&#8217;t work (it happens normally because you are not registered), please use the following link to download: <a href="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/upload/jquery.livebuttons.js">jquery.livebuttons.js</a>.</p>
<div style="padding: 10px; text-align: center; background-color: #ffffff; border: 3px solid #dddddd;"><table style="border: 1px solid #CCC;" cellpadding="3" width="100%">
  <tr>
    <td width="35">
      <img src="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/img/icons/default.gif" alt="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/img/icons/default.gif">
    </td>
    <td>
      <b>download:</b> <a href="http://www.ramirezcobos.com/?file_id=16">JQuery Livebuttons Plugin</a> <small>(15.33KB)</small><br />
      <b>added:</b> 15/12/2010 <br />
      <b>clicks:</b> 171 <br />
    </td>
  </tr>
</table></div>
<p><center><br />
<script type="text/javascript"><!--
google_ad_client = "pub-7060132287364604";
/* 468x60, creado 16/03/10 */
google_ad_slot = "9029910384";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
</center></p>
<a href="http://twitter.com/?status=RT%20%40%3A%20jQuery%20Livebuttons%20Plugin%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F12%2F15%2Fjquery-livebuttons-plugin%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/12/15/jquery-livebuttons-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>La Parada del Mar</title>
		<link>http://www.ramirezcobos.com/2010/12/14/la-parada-del-mar/</link>
		<comments>http://www.ramirezcobos.com/2010/12/14/la-parada-del-mar/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 19:13:15 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Javascript]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=694</guid>
		<description><![CDATA[Website developed for the Spanish Restaurant La Parada del Mar. Customer wanted to have a very simple and direct webpage where to show information about their services.
Website Features
Prettyphoto Plugin
AnythingSlider Plugin
Instant Notification Support
reCaptcha
Google Maps
Tweet this!]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-695" href="http://www.ramirezcobos.com/2010/12/14/la-parada-del-mar/captura-de-pantalla-2010-12-14-a-las-20-01-10/"><img class="alignright size-medium wp-image-695" title="La Parada del Mar" src="http://www.ramirezcobos.com/wp-content/uploads/2010/12/Captura-de-pantalla-2010-12-14-a-las-20.01.10-286x300.png" alt="Restaurant La Parada del Mar" width="286" height="300" /></a>Website developed for the Spanish <a href="http://www.laparadadelmar.com" target="_blank">Restaurant La Parada del Mar</a>. Customer wanted to have a very simple and direct webpage where to show information about their services.</p>
<p>Website Features</p>
<ul>
<li><a href="http://www.yiiframework.com/extension/jqprettyphoto/" target="_blank">Prettyphoto Plugin</a></li>
<li><a href="http://css-tricks.com/anythingslider-jquery-plugin/" target="_blank">AnythingSlider Plugin</a></li>
<li>Instant Notification Support</li>
<li><a href="http://www.yiiframework.com/wiki/94/using-recaptchlib-in-your-projects" target="_blank">reCaptcha</a></li>
<li><a href="http://code.google.com/intl/es-ES/apis/maps/index.html">Google Maps</a></li>
</ul>
<p><center><br />
<script type="text/javascript"><!--
google_ad_client = "pub-7060132287364604";
/* 468x60, creado 16/03/10 */
google_ad_slot = "9029910384";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
</center></p>
<a href="http://twitter.com/?status=RT%20%40%3A%20La%20Parada%20del%20Mar%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F12%2F14%2Fla-parada-del-mar%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/12/14/la-parada-del-mar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom Page Size for CGridView</title>
		<link>http://www.ramirezcobos.com/2010/11/30/custom-page-size-for-cgridview/</link>
		<comments>http://www.ramirezcobos.com/2010/11/30/custom-page-size-for-cgridview/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 16:38:48 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Yii]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=636</guid>
		<description><![CDATA[This post is actually something that, after permission granted from a Yii collegue Mike, was posted on Yii forum and I thought that was a *golden hint* too bad not to be shared among people interested on Yii: How to include a custom page size select box on your CGridView.
Step 1
First we need to  [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-612" href="http://www.ramirezcobos.com/2010/10/28/how-to-use-jqueryslidemenu-with-yii%e2%80%99s-cmenu/yii/"><img class="alignright size-full wp-image-612" title="Yii Framework" src="http://www.ramirezcobos.com/wp-content/uploads/2010/10/Yii.png" alt="Yii Framework" width="160" height="160" /></a>This post is actually something that, after permission granted from a Yii collegue <a href="http://www.yiiframework.com/forum/index.php?/user/9-mike/">Mike</a>, was posted on Yii forum and I thought that was a *golden hint* too bad not to be shared among people interested on Yii: How to include a custom page size select box on your CGridView.</p>
<h3>Step 1</h3>
<p>First we need to modify the actionAdmin  of the (CRUD) controller we want to include the select box that will change the page size of our CGridView. For the sake of this example, we are going to use the user controller which is created by default with Yii.</p>
<pre class="brush: php; title: ; notranslate">
//
// page size drop down changed
if (isset($_GET['pageSize'])) {
//
// pageSize will be set on user's state
Yii::app()-&gt;user-&gt;setState('pageSize',(int)$_GET['pageSize']);
//
// unset the parameter as it
// would interfere with pager
// and repetitive page size change
unset($_GET['pageSize']);
}
</pre>
<h3>Step 2</h3>
<p>Now we have to modify the model&#8217;s search() function (e.g. model/User.php):</p>
<pre class="brush: php; title: ; notranslate">
return new CActiveDataProvider(get_class($this),array(
'pagination'=&gt;array(
//
// please check how we get the
// the pageSize from user's state
'pageSize'=&gt; Yii::app()-&gt;user-&gt;getState('pageSize',
//
// we have previously set defaultPageSize
// on the params section of our main.php config file
Yii::app()-&gt;params['defaultPageSize']),
),
'criteria'=&gt;$criteria,
));
</pre>
<h3>Step 3</h3>
<p>Finally, we need to change our view (e.g. views/user/admin.php) and we are done:</p>
<pre class="brush: php; title: ; notranslate">
//
//
$pageSize=Yii::app()-&gt;user-&gt;getState('pageSize',Yii::app()-&gt;params['defaultPageSize']);
// we use header of button column for the drop down
// so change the CButtonColumn in columns array like this:
...
array(
    'class'=&gt;'CButtonColumn',
    'header'=&gt;CHtml::dropDownList('pageSize',
        $pageSize,
        array(20=&gt;20,50=&gt;50,100=&gt;100),
        array(
       //
       // change 'user-grid' to the actual id of your grid!!
        'onchange'=&gt;
        &quot;$.fn.yiiGridView.update('user-grid',{ data:{pageSize: $(this).val() }})&quot;,
    )),
),
...
</pre>
<p>Hope you find this hint as good as I thought it is. As <a href="http://www.yiiframework.com/forum/index.php?/user/9-mike/">Mike</a> states, this information is to prove how easy is to enhance Yii components if you are not afraid of Javascript.</p>
<h3>References</h3>
<p>For futher reading please refer to original post.<br />
<a href="http://www.yiiframework.com/forum/index.php?/topic/8994-dropdown-for-pagesize-in-cgridview/page__gopid__64042#entry64042">Mike&#8217;s Forum Post</a></p>
<p>Happyiing!<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7060132287364604";
/* 468x60, creado 16/03/10 */
google_ad_slot = "9029910384";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<a href="http://twitter.com/?status=RT%20%40%3A%20Custom%20Page%20Size%20for%20CGridView%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F11%2F30%2Fcustom-page-size-for-cgridview%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/11/30/custom-page-size-for-cgridview/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to use jQueryslidemenu with Yii’s CMenu</title>
		<link>http://www.ramirezcobos.com/2010/10/28/how-to-use-jqueryslidemenu-with-yii%e2%80%99s-cmenu/</link>
		<comments>http://www.ramirezcobos.com/2010/10/28/how-to-use-jqueryslidemenu-with-yii%e2%80%99s-cmenu/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 20:07:52 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Yii]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=573</guid>
		<description><![CDATA[Yii makes it really easy for all to use their already made objects  that automate everything we do. It provides also great power of  flexibility and styling but hey, we programmers tend to complicate our  lives and push a little more the power of our tools.
This tutorial makes use of the  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ramirezcobos.com/2010/10/28/how-to-use-jqueryslidemenu-with-yii%e2%80%99s-cmenu/yii/" rel="attachment wp-att-612"><img src="http://www.ramirezcobos.com/wp-content/uploads/2010/10/Yii.png" alt="Yii Framework" title="Yii Framework" width="160" height="160" class="alignright size-full wp-image-612" /></a>Yii makes it really easy for all to use their already made objects  that automate everything we do. It provides also great power of  flexibility and styling but hey, we programmers tend to complicate our  lives and push a little more the power of our tools.</p>
<p>This tutorial makes use of the <a title="jqueryslidemenu" href="http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2/">jqueryslidemenu</a> plugin to give us a cool featured slidemenu with just a little bit of  effort taking advantage of the way Yii&#8217;s CMenu widget renders its items.</p>
<h2>Installation of Script</h2>
<p>Once we download the plugin we are going to place its contents to  their correspondent folders (i.e. styles on the css folder, js files on  scripts folder, images -yes you guessed right, the images folder).  Nevertheless is up to you how you order the files as long as the images  and styles have their image paths correctly set.</p>
<h2>Creating the Menu</h2>
<p>We are going to use it in our main.php layout file for the sake of  the example -and because it is the place where we, most of us, will use  it.</p>
<p>First we register the required css and js files for our menu.</p>
<pre class="brush: php; title: ; notranslate">
// remember that you can actually point to the js files directly if
// your script file is outside of protected/subfolders
$jqueryslidemenupath = Yii::app()
     -&gt;assetManager
     -&gt;publish(Yii::app()-&gt;basePath.'/scripts/jqueryslidemenu/');
//Register jQuery, JS and CSS files
Yii::app()
     -&gt;clientScript
     -&gt;registerCoreScript('jquery');
Yii::app()
     -&gt;clientScript
     -&gt;registerCssFile($jqueryslidemenupath.'/jqueryslidemenu.css');
Yii::app()
     -&gt;clientScript
     -&gt;registerScriptFile($jqueryslidemenupath.'/jqueryslidemenu.js');
</pre>
<p>And finally we create our menu. Please note that our  menu is wrapped  with a layer &#8216;div&#8217; and one its classes to jqueryslide menu.</p>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;myslidemenu&quot; class=&quot;jqueryslidemenu&quot;&gt;
&lt;?php $this-&gt;widget('zii.widgets.CMenu',array(
   'items'=&gt;array(
      array('label'=&gt;'Home', 'url'=&gt;array('/site/index')),
      array('label'=&gt;'About', 'url'=&gt;array('/site/page', 'view'=&gt;'about')),
      array('label'=&gt;'Contact', 'url'=&gt;array('/site/contact')),
      array('label'=&gt;'jqSlideMenuTest', 'url'=&gt;array('#'),
        'items'=&gt;array(
           array('label'=&gt;'Home',
                    'url'=&gt;array('/site/index')),
           array('label'=&gt;'About',
                    'url'=&gt;array('/site/page', 'view'=&gt;'about')),
           array('label'=&gt;'Contact',
                    'url'=&gt;array('/site/contact'),
                   'items'=&gt;array(
                      array('label'=&gt;'Home',
                               'url'=&gt;array('/site/index')),
                      array('label'=&gt;'About',
                               'url'=&gt;array('/site/page', 'view'=&gt;'about')),
                      array('label'=&gt;'Contact',
                              'url'=&gt;array('/site/contact'),
                              'items'=&gt;array(
                                   array('label'=&gt;'Home',
                                            'url'=&gt;array('/site/index')),
                                   array('label'=&gt;'About',
                                            'url'=&gt;array('/site/page', 'view'=&gt;'about')),
                                   array('label'=&gt;'Contact',
                                            'url'=&gt;array('/site/contact')),
                       )),
                  )),
              )),
       array('label'=&gt;'Login',
                'url'=&gt;array('/site/login'),
                'visible'=&gt;Yii::app()-&gt;user-&gt;isGuest),
       array('label'=&gt;'Logout ('.Yii::app()-&gt;user-&gt;name.')',
                'url'=&gt;array('/site/logout'),
                'visible'=&gt;!Yii::app()-&gt;user-&gt;isGuest)),
     )); ?&gt;
&lt;/div&gt;&lt;!-- mainmenu --&gt;
</pre>
<p>That&#8217;s it&#8230; quite easy right? You can change its style to suit your &#8216;design&#8217; needs.</p>
<h2>Download Example Files</h2>
<p>Our colleague programmer <a title="Trejder" href="http://www.yiiframework.com/forum/index.php?/user/7141-trejder/">Trejder</a> has compiled an example for all of you to play with it.  <a title="download files" href="http://www.yiiframework.com/forum/index.php?app=core&amp;module=attach&amp;section=attach&amp;attach_id=897">download files</a></p>
<p>Just make sure that you have the runtime and assets&#8217;s folders  permissions to be writable and correct the index.php file Yii path&#8217;s to  the correct one on your computer.</p>
<p><center></p>
<script type="text/javascript"><!--
google_ad_client = "pub-7060132287364604";
/* 468x60, creado 16/03/10 */
google_ad_slot = "9029910384";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p></center></p>
<a href="http://twitter.com/?status=RT%20%40%3A%20How%20to%20use%20jQueryslidemenu%20with%20Yii%E2%80%99s%20CMenu%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F10%2F28%2Fhow-to-use-jqueryslidemenu-with-yii%25e2%2580%2599s-cmenu%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/10/28/how-to-use-jqueryslidemenu-with-yii%e2%80%99s-cmenu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>jqPrettyPhoto Extension for Yii</title>
		<link>http://www.ramirezcobos.com/2010/10/21/jqprettyphoto-extension-for-yii/</link>
		<comments>http://www.ramirezcobos.com/2010/10/21/jqprettyphoto-extension-for-yii/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 16:37:52 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Yii]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=563</guid>
		<description><![CDATA[I am currently developing a site for a real estate business and it is all built with Yii Framework -I am alone here so I need the best allies for this job   . During this development I come up with the creation of some cool extensions that I am, of couse, going to share with all of you.
Introducing  [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-562" href="http://www.ramirezcobos.com/2010/10/21/jqprettyphoto-extension-for-yii/captura-de-pantalla-2010-10-21-a-las-18-37-26/"><img class="alignright size-medium wp-image-562" title="PrettyPhoto" src="http://www.ramirezcobos.com/wp-content/uploads/2010/10/Captura-de-pantalla-2010-10-21-a-las-18.37.26-300x260.png" alt="" width="300" height="260" /></a>I am currently developing a site for a real estate business and it is all built with Yii Framework -I am alone here so I need the best allies for this job <img src='http://www.ramirezcobos.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . During this development I come up with the creation of some cool extensions that I am, of couse, going to share with all of you.</p>
<h2>Introducing jqPrettyPhoto</h2>
<blockquote><p>This extension is making use of the grrrreat jQuery plugin called <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/" target="_blank">PrettyPhoto</a>. Here is its description in detail:</p>
<p>rettyPhoto is a jQuery lightbox clone. Not only does it support  images, it also support for videos, flash, YouTube, iframes. It’s a full  blown media lightbox.</p>
<p>It is very easy to setup, yet very flexible if you want to customize  it a bit. Plus the script is compatible in every major browser, even  IE6.</p>
<p>It also comes with useful APIs so prettyPhoto can be launched from nearly anywhere (yes, that includes Flash)!</p></blockquote>
<h2>How to Install</h2>
<p>Unzip the contents of the downloaded package below and copy its contents into your application&#8217;s <strong>protected/extensions</strong> folder.</p>
<p>How to Use</p>
<p>Once we have move the contents of the zipped file into the extensions folder we are ready to go. Use it at your own will into your views like this:</p>
<pre class="brush: php; title: ; notranslate">&lt;/p&gt;
Yii::import('ext.jqPrettyPhoto');
jqPrettyPhoto::addPretty('.gallery a',jqPrettyPhoto::PRETTY_GALLERY,jqPrettyPhoto::THEME_FACEBOOK);
</pre>
<p>Wow! That was easy! Please allow me to explain the addPretty function. It comes with three parameters:</p>
<p>1) <strong>element/s selector</strong>: the JQUERY SELECTOR to the links you want to set pretty photo to. In the example above I had the following on the view&#8217;s HTML:</p>
<pre class="brush: xml; title: ; notranslate">&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;gallery&quot;&gt;&lt;br /&gt;
 &lt;a href=&quot;URL_TO_IMAGE_TO_OPEN&quot;&gt;&lt;img src=&quot;URL_TO_IMAGE_TO_SHOW&quot;/&gt;&lt;/a&gt;&lt;br /&gt;
</pre>
<p>2) The second parameter is of the value jqPrettyPhoto::PRETTY_GALLERY or jqPrettyPhoto::PRETTY_SINGLE, which tells the extension whether the selector will be a list of a gallery images or just a single file.</p>
<p>3) The third one is what theme to use -please refer to jqPrettyPhoto.php&#8217;s code to see more options on this one.</p>
<h2>Download</h2>
<p>** If you have problems please use <a href="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/upload/jqPrettyPhoto.zip">this link</a>.</p>
<p style="text-align: center;"><table style="border: 1px solid #CCC;" cellpadding="3" width="100%">
  <tr>
    <td width="35">
      <img src="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/img/icons/default.gif" alt="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/img/icons/default.gif">
    </td>
    <td>
      <b>download:</b> <a href="http://www.ramirezcobos.com/?file_id=13">jqPrettyPhoto Yii Extension</a> <small>(72.29KB)</small><br />
      <b>added:</b> 21/10/2010 <br />
      <b>clicks:</b> 1267 <br />
    </td>
  </tr>
</table></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7060132287364604";
/* 468x60, creado 16/03/10 */
google_ad_slot = "9029910384";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<a href="http://twitter.com/?status=RT%20%40%3A%20jqPrettyPhoto%20Extension%20for%20Yii%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F10%2F21%2Fjqprettyphoto-extension-for-yii%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/10/21/jqprettyphoto-extension-for-yii/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>jqAutocomplete Extension for Yii</title>
		<link>http://www.ramirezcobos.com/2010/10/21/jqautocomplete-extension-for-yii/</link>
		<comments>http://www.ramirezcobos.com/2010/10/21/jqautocomplete-extension-for-yii/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 16:34:59 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Yii]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=553</guid>
		<description><![CDATA[It was only a matter of time until I try to develop an extension for the Yii Framework and I have chosen the Ajax Powered Autocomplet plugin for JQuery to exercise with this technology.
How to use the Extension
I have included a test within the downloadable package that shows how to implement this  [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-358" href="http://www.ramirezcobos.com/2009/12/29/ajax-powered-autocomplete-plugin-for-jquery-js/autocomplete-3/"><img class="alignright size-full wp-image-358" title="autocomplete" src="http://www.ramirezcobos.com/wp-content/uploads/2010/03/autocomplete.gif" alt="" width="240" height="262" /></a>It was only a matter of time until I try to develop an extension for the<a href="http://www.yiiframework.com/forum/index.php?/topic/12499-extension-jqautocomplete/"> Yii Framework</a> and I have chosen the <a href="http://www.ramirezcobos.com/labs/autocomplete-for-jquery-js/">Ajax Powered Autocomplet plugin for JQuery </a>to exercise with this technology.</p>
<h2>How to use the Extension</h2>
<p>I have included a test within the downloadable package that shows how to implement this extension. The test includes a TestController, a view and a test_layout; so I hope this will easy the way for you to check it.</p>
<p>First download and unzip its contents</p>
<ul>
<li>Move jqAutocomplete contents (I said contents) into your application&#8217;s <strong>protected/extension</strong> folder</li>
<li>Copy TestController.php and paste it in (you guessed well) your application&#8217;s <strong>protected/controllers</strong> folder</li>
<li>Move <strong>test</strong> folder (not the contents but the whole folder this time) into your application&#8217;s <strong>protected/views</strong> folder</li>
<li>Finally test_layout.php into your application&#8217;s <strong>protected/layouts</strong> folder</li>
</ul>
<p>That&#8217;s it! Ready for the test. Go to your browser and type http://&lt;replace_with_your_application_url&gt;/index.php?r=test/autocomplete. If everything was good, you will be able to see the first field (JSON TEST) working as an autocomplete.</p>
<p>Please check TestController.php to see an example of AJAX response from the client autocomplete&#8217;s Request calls -and yes, you can also do it from a database result query. Look also at the test view&#8217;s code for an example on how to use the extension.</p>
<p>Download<br />
** If you have problems to download from below; please <a href="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/upload/jqAutcomplete.zip">try it here</a>.</p>
<p style="text-align: center;"><table style="border: 1px solid #CCC;" cellpadding="3" width="100%">
  <tr>
    <td width="35">
      <img src="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/img/icons/default.gif" alt="http://www.ramirezcobos.com/wp-content/plugins/downloads-manager/img/icons/default.gif">
    </td>
    <td>
      <b>download:</b> <a href="http://www.ramirezcobos.com/?file_id=12">Ajax Powered AutoComplete Extension for Yii</a> <small>(126.83KB)</small><br />
      <b>added:</b> 20/10/2010 <br />
      <b>clicks:</b> 231 <br />
    </td>
  </tr>
</table></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7060132287364604";
/* 468x60, creado 16/03/10 */
google_ad_slot = "9029910384";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<a href="http://twitter.com/?status=RT%20%40%3A%20jqAutocomplete%20Extension%20for%20Yii%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F10%2F21%2Fjqautocomplete-extension-for-yii%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/10/21/jqautocomplete-extension-for-yii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PalmStudios Model Agency</title>
		<link>http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/</link>
		<comments>http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 14:03:03 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Portfolio]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=489</guid>
		<description><![CDATA[Hi there,
I would like to introduce you my last web project: http://www.palmstudios.com
For this project I have developed a sort of MVC (Model View Controller) over the RedBeanPHP DB library (PHP 5.3.2).  This project even though it looks quite simple it has a very power CMS (Content Management  [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-490" href="http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/captura-de-pantalla-2010-07-12-a-las-16-03-00/"><img class="alignright size-medium wp-image-490" title="Captura de pantalla 2010-07-12 a las 16.03.00" src="http://www.ramirezcobos.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-16.03.00-300x248.png" alt="" width="300" height="248" /></a>Hi there,</p>
<p>I would like to introduce you my last web project: <a title="Palmstudios Model Agency" href="http://www.palmstudios.com" target="_blank">http://www.palmstudios.com</a></p>
<p>For this project I have developed a sort of MVC (Model View Controller) over the <a title="RedBean PHP" href="http://www.redbeanphp.com" target="_blank">RedBeanPHP</a> DB library (PHP 5.3.2).  This project even though it looks quite simple it has a very power CMS (Content Management System) on its backend that allows the model agency to control most of the aspects of its business:</p>
<ol>
<li>- Clients Management</li>
<li>- Models Management (Men, Women, Children &amp; Extras) -contact details, measurements, pictures, and so on&#8230;</li>
<li>- Promotional Packages Management &#8211; this is a special addon which allows the agency to create model promotional bundles to send to its clients</li>
</ol>
<p>There is a ton of client and server libraries that this application makes use of, such as:</p>
<ul>
<li>JQuery FancyBox</li>
<li>JQuery Livequery</li>
<li>JQuery AjaxQ</li>
<li>PHPMailer</li>
<li>RedBeanPHP</li>
<li>Savant3 Template Engine</li>
<li>PHPThumb</li>
<li>TinyMCE</li>
</ul>
<p>The CMS has a configuration section where site administrator can configure:</p>
<ul>
<li>Web site languages (has multiple language support)</li>
<li>Web site translations (you can even ask GOOGLE about a translation depending of the languages installed on the system)</li>
<li>Model properties (size, height, waist, etc&#8230;)</li>
<li>Hair Colors</li>
<li>Eye Colors</li>
<li>Users</li>
</ul>
<p>Here is a snapshot gallery of the Site and its CMS</p>
<a href='http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/captura-de-pantalla-2010-07-12-a-las-16-03-00/' title='Captura de pantalla 2010-07-12 a las 16.03.00'><img width="120" height="120" src="http://www.ramirezcobos.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-16.03.00-120x120.png" class="attachment-thumbnail" alt="Captura de pantalla 2010-07-12 a las 16.03.00" title="Captura de pantalla 2010-07-12 a las 16.03.00" /></a>
<a href='http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/captura-de-pantalla-2010-07-12-a-las-16-07-44/' title='Captura de pantalla 2010-07-12 a las 16.07.44'><img width="120" height="120" src="http://www.ramirezcobos.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-16.07.44-120x120.png" class="attachment-thumbnail" alt="Captura de pantalla 2010-07-12 a las 16.07.44" title="Captura de pantalla 2010-07-12 a las 16.07.44" /></a>
<a href='http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/captura-de-pantalla-2010-07-12-a-las-16-08-21/' title='Captura de pantalla 2010-07-12 a las 16.08.21'><img width="120" height="120" src="http://www.ramirezcobos.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-16.08.21-120x120.png" class="attachment-thumbnail" alt="Captura de pantalla 2010-07-12 a las 16.08.21" title="Captura de pantalla 2010-07-12 a las 16.08.21" /></a>
<a href='http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/captura-de-pantalla-2010-07-12-a-las-16-09-01/' title='Captura de pantalla 2010-07-12 a las 16.09.01'><img width="120" height="120" src="http://www.ramirezcobos.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-16.09.01-120x120.png" class="attachment-thumbnail" alt="Captura de pantalla 2010-07-12 a las 16.09.01" title="Captura de pantalla 2010-07-12 a las 16.09.01" /></a>
<a href='http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/captura-de-pantalla-2010-07-12-a-las-16-09-27/' title='Captura de pantalla 2010-07-12 a las 16.09.27'><img width="120" height="120" src="http://www.ramirezcobos.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-16.09.27-120x120.png" class="attachment-thumbnail" alt="Captura de pantalla 2010-07-12 a las 16.09.27" title="Captura de pantalla 2010-07-12 a las 16.09.27" /></a>
<a href='http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/captura-de-pantalla-2010-07-12-a-las-16-03-31/' title='Captura de pantalla 2010-07-12 a las 16.03.31'><img width="120" height="120" src="http://www.ramirezcobos.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-16.03.31-120x120.png" class="attachment-thumbnail" alt="Captura de pantalla 2010-07-12 a las 16.03.31" title="Captura de pantalla 2010-07-12 a las 16.03.31" /></a>
<a href='http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/captura-de-pantalla-2010-07-12-a-las-16-03-53/' title='Captura de pantalla 2010-07-12 a las 16.03.53'><img width="120" height="120" src="http://www.ramirezcobos.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-16.03.53-120x120.png" class="attachment-thumbnail" alt="Captura de pantalla 2010-07-12 a las 16.03.53" title="Captura de pantalla 2010-07-12 a las 16.03.53" /></a>
<h2>I am open for Freelance Jobs</h2>
<p>If any of you would like to create a model agency application like this, let me know, I will be more than happy to collaborate with you on it. I will also sell the source code of its panel for any of you who is interested.</p>
<p><center><br />
<script type="text/javascript"><!--
google_ad_client = "pub-7060132287364604";
/* 468x60, creado 16/03/10 */
google_ad_slot = "9029910384";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
</center></p>
<a href="http://twitter.com/?status=RT%20%40%3A%20PalmStudios%20Model%20Agency%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F07%2F14%2Fpalmstudios-model-agency%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/07/14/palmstudios-model-agency/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Speed Up Your Pages With Lazy Load JQuery Plugin</title>
		<link>http://www.ramirezcobos.com/2010/06/15/speed-up-your-pages-with-lazy-load-jquery-plugin/</link>
		<comments>http://www.ramirezcobos.com/2010/06/15/speed-up-your-pages-with-lazy-load-jquery-plugin/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 15:06:54 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[On The Web]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=476</guid>
		<description><![CDATA[I would like to introduce you this simple but very efficient plugin that will help us speed up the downloading time of our web pages. I am talking about mr Mika Tuupola&#8217;s Lazy Load JQuery Plugin.
This plugin loads the images of a web page as the user scrolls to their position, that is, images wont  [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-372" href="http://www.ramirezcobos.com/2010/01/14/jquery-1-4-are-you-ready/picture-121-300x157/"><img class="alignright size-full wp-image-372" title="Picture-121-300x157" src="http://www.ramirezcobos.com/wp-content/uploads/2010/03/Picture-121-300x157.png" alt="" width="300" height="157" /></a>I would like to introduce you this simple but very efficient plugin that will help us speed up the downloading time of our web pages. I am talking about mr <a href="http://www.appelsiini.net/projects/lazyload/enabled_gazillion.html" target="_blank">Mika Tuupola&#8217;s Lazy Load JQuery Plugin</a>.</p>
<p>This plugin loads the images of a web page as the user scrolls to their position, that is, images wont load until they are not within the visible viewport margins of the window.</p>
<p><strong>How to use</strong></p>
<p>First we need to insert the following references into our code</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!-- insert a reference to jquery and the jquery.lazyload plugin --&gt;
&lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.lazyload.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>And now this few lines of code in our document.ready function</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
$(function() {
          $(&quot;img&quot;).lazyload({
              placeholder : &quot;img/grey.gif&quot;,
              effect      : &quot;fadeIn&quot;
           });
       });
&lt; /script&gt;
</pre>
<p>And that&#8217;s it! Easy right? </p>
<a href="http://twitter.com/?status=RT%20%40%3A%20Speed%20Up%20Your%20Pages%20With%20Lazy%20Load%20JQuery%20Plugin%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F06%2F15%2Fspeed-up-your-pages-with-lazy-load-jquery-plugin%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/06/15/speed-up-your-pages-with-lazy-load-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Restaurant Casablanca</title>
		<link>http://www.ramirezcobos.com/2010/05/14/restaurant-casablanca/</link>
		<comments>http://www.ramirezcobos.com/2010/05/14/restaurant-casablanca/#comments</comments>
		<pubDate>Fri, 14 May 2010 10:12:57 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Portfolio]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=423</guid>
		<description><![CDATA[
Another site finished: www.brunocasablanca.com
Yeah, is a restaurant business, located in one of the most beautiful places in the Balearic Islands: Betlem, in La Colonia de San Pedro, Majorca, Spain. The site uses a web panel to control:
Picture Galleries
Web site  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ramirezcobos.com/wp-content/uploads/2010/02/Imagen-5.png"></a><a href="http://www.ramirezcobos.com/wp-content/uploads/2010/03/Imagen-5-300x274.png"></a><a href="http://www.ramirezcobos.com/wp-content/uploads/2010/02/Imagen-5-300x274.png"></a><strong><span style="font-weight: normal;"> </span></strong></p>
<div id="attachment_410" class="wp-caption alignright" style="width: 310px"><a rel="attachment wp-att-410" href="http://www.ramirezcobos.com/2010/03/31/torrenova-rentacar/picture-1-5/"><a rel="attachment wp-att-425" href="http://www.ramirezcobos.com/2010/05/14/restaurant-casablanca/screen-shot-2010-05-14-at-11-59-50/"><img class="alignright size-medium wp-image-425" title="Screen shot 2010-05-14 at 11.59.50" src="http://www.ramirezcobos.com/wp-content/uploads/2010/05/Screen-shot-2010-05-14-at-11.59.50-300x214.png" alt="" width="300" height="214" /></a></a><p class="wp-caption-text">Bruno Casablanca Restaurant and Pizzeria</p></div>
<p><em>Another site finished: <a href="http://www.brunocasablanca.com" target="_blank">www.brunocasablanca.com</a></em></p>
<p>Yeah, is a restaurant business, located in one of the most beautiful places in the Balearic Islands: Betlem, in La Colonia de San Pedro, Majorca, Spain. The site uses a web panel to control:</p>
<ul>
<li>Picture Galleries</li>
<li>Web site content</li>
<li>Translations</li>
<li>Events</li>
<li>Suggestions</li>
</ul>
<p>In this site I make use of one of the greatest galleries around <a href="http://www.pirolab.it/pirobox/" target="_blank">Pirobox</a>, <a href="http://blog.philipbrown.id.au/2009/04/boxen-a-jquery-iframe-plugin/" target="_blank">boxen</a> -to display the menu, and <a href="http://page-flip.com/products/" target="_blank">FlippingBook HTML Edition</a> for the menu viewing. You can check the website and see how I implemented these three cool tools, feel free to ask me any doubt related to them in case you wish to use it in any of your sites.</p>
<a href="http://twitter.com/?status=RT%20%40%3A%20Restaurant%20Casablanca%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F05%2F14%2Frestaurant-casablanca%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/05/14/restaurant-casablanca/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Lightbox</title>
		<link>http://www.ramirezcobos.com/2010/02/08/visual-lightbox/</link>
		<comments>http://www.ramirezcobos.com/2010/02/08/visual-lightbox/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 15:38:19 +0000</pubDate>
		<dc:creator>Antonio Ramirez</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[On The Web]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">http://www.ramirezcobos.com/?p=273</guid>
		<description><![CDATA[This post is for those who wish to implement a beautiful Lightbox plugin on their site or blog and, unfortunately, do not have a clue about Javascript and/or jQuery and/or Html.
VisualLightBox is a free application that helps you easily generate online photo albums, lightbox gallery with a nice  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ramirezcobos.com/wp-content/uploads/2010/02/lightboxXL-thumb.jpg"><a href="http://www.ramirezcobos.com/wp-content/uploads/2010/02/add-images-to-gallery.jpg"><img class="alignright size-medium wp-image-385" title="add-images-to-gallery" src="http://www.ramirezcobos.com/wp-content/uploads/2010/02/add-images-to-gallery-300x210.jpg" alt="" width="300" height="210" /></a></a>This post is for those who wish to implement a beautiful Lightbox plugin on their site or blog and, unfortunately, do not have a clue about Javascript and/or jQuery and/or Html.</p>
<p>VisualLightBox is a free application that helps you easily generate online photo albums, lightbox gallery with a nice Lightbox-style overlay effect, in a few clicks without writing a single line of code.</p>
<p>Just drag&amp;drop your photos to VisualLightBox wizard window, press &#8220;Publish&#8221; and your own css web site album with beautiful LightBox effects will open in the browser instantly!<br />
No css, image editing, javascript, html coding, just a click to get your cool web page album ready.</p>
<p>It takes less than a minute to have your own image gallery.</p>
<p>For full documentation please go to http://lightbox2.com/</p>
<p>Newbies, now there is no excuse to have your featured lightbox on your site!<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7060132287364604";
/* 468x60, creado 16/03/10 */
google_ad_slot = "9029910384";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<a href="http://twitter.com/?status=RT%20%40%3A%20Visual%20Lightbox%20-%20El%20Blog%20del%20Antonio%20http%3A%2F%2Fwww.ramirezcobos.com%2F2010%2F02%2F08%2Fvisual-lightbox%2F" class="tweet-this" ><img src="http://www.ramirezcobos.com/wp-content/plugins/simple-tweet/img/tweet.gif" title="Tweet this!" alt="Tweet this!" />Tweet this!</a>]]></content:encoded>
			<wfw:commentRss>http://www.ramirezcobos.com/2010/02/08/visual-lightbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.ramirezcobos.com @ 2012-02-06 17:38:45 by W3 Total Cache -->
