<?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>Pablo Noel &#187; Code</title>
	<atom:link href="http://pablonoel.com/blog/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://pablonoel.com</link>
	<description>Graphic Design &#38; Comunication Systems</description>
	<lastBuildDate>Tue, 08 Jun 2010 20:58:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clean inputs on focus</title>
		<link>http://pablonoel.com/code/clean-inputs-on-focus/</link>
		<comments>http://pablonoel.com/code/clean-inputs-on-focus/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 20:58:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://pablonoel.com/?p=78</guid>
		<description><![CDATA[A fast and nice way using Jquery to clean input values on focus, and put the default value back when is empty:
$(".clean").each(function(){
var value = $(this).val();
$(this).focusin(function(){if($(this).val() == value){$(this).val("");};});
$(this).focusout(function(){if($(this).val() == ''){$(this).val(value);};});
});
Just add the class &#8220;.clean&#8221; to your input tag and voilá.
]]></description>
			<content:encoded><![CDATA[<p>A fast and nice way using Jquery to clean input values on focus, and put the default value back when is empty:</p>
<p><code>$(".clean").each(function(){<br />
var value = $(this).val();<br />
$(this).focusin(function(){if($(this).val() == value){$(this).val("");};});<br />
$(this).focusout(function(){if($(this).val() == ''){$(this).val(value);};});<br />
});</code></p>
<p>Just add the class &#8220;.clean&#8221; to your input tag and voilá.</p>
]]></content:encoded>
			<wfw:commentRss>http://pablonoel.com/code/clean-inputs-on-focus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cocombobox Jquery Plugin for enhanced Comboboxs / Select Boxes</title>
		<link>http://pablonoel.com/code/cocombobox-jquery-plugin-for-enhanced-comboboxs-select-boxes/</link>
		<comments>http://pablonoel.com/code/cocombobox-jquery-plugin-for-enhanced-comboboxs-select-boxes/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 15:30:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[combobox]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://pablonoel.com/?p=67</guid>
		<description><![CDATA[Working on a couple of proyects i find myself searching for a solution for the customization for our so-long-used Select tag,  a.k.a Combobox. If you work with HTML you will know that its so freaking hard to add custom graphics and behaviors to this element, so i made a &#8220;simple&#8221; and kind of naiv solution [...]]]></description>
			<content:encoded><![CDATA[<p>Working on a couple of proyects i find myself searching for a solution for the customization for our so-long-used <a title="Select Tag at W3Schools" href="http://www.w3schools.com/TAGS/tag_Select.asp">Select tag</a>,  a.k.a <a title="Combobox at Wikipedia" href="http://en.wikipedia.org/wiki/Combo_box">Combobox</a>. If you work with HTML you will know that its so freaking hard to add custom graphics and behaviors to this element, so i made a &#8220;simple&#8221; and kind of naiv solution for this.</p>
<h3>Cocombobox Jquery Plugin</h3>
<p>This will add a &#8220;Combobox&#8221; kind of interaction to a standard list of elements, view the example page:</p>
<p><a title="Select Box - Combobox Jquery Plugin replacement" href="http://pablonoel.com/lab/jquery/cocombobox/">http://pablonoel.com/lab/jquery/cocombobox/</a></p>
<h4>Default HTML:</h4>
<p><code>&lt;form action="#" method="post"&gt;<br />
&lt;h3&gt;Combobox Default Configuration&lt;/h3&gt;<br />
&lt;ol&gt;<br />
&lt;li&gt;Select an Option&lt;/li&gt;<br />
&lt;li&gt;&lt;a title="enlace" rel="first" href="#"&gt;First Option&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a title="enlace" rel="second" href="#"&gt;Second Option&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a title="enlace" rel="third" href="#"&gt;Third Option&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ol&gt;<br />
&lt;/form&gt;</code></p>
<h4>Default Call</h4>
<p><code>$("ol").cocombobox();</code></p>
<h4>Generated HTML</h4>
<p><code>&lt;form action="#" method="post"&gt;<br />
&lt;h3&gt;Combobox Default Configuration&lt;/h3&gt;<br />
&lt;div style="position: relative; height: 20px; z-index: 9938;" class="comboboxccbx"&gt;&lt;ol style="overflow: hidden; position: absolute; height: 20px; z-index: 9938;" class="min"&gt;<br />
&lt;li id="option"&gt;Select an Option&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="#" title="enlace" rel="first"&gt;First Option&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="#" title="enlace" rel="second"&gt;Second Option&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="#" title="enlace" rel="third"&gt;Third Option&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ol&gt;&lt;input name="combobox" id="combobox" value="" type="hidden"&gt;&lt;/div&gt;<br />
&lt;/form&gt;</code><br />
There is no documentation yet, and no changelog, but this is the first release, you can <a title="Download Plugin" href="http://pablonoel.com/lab/jquery/cocombobox/jquery.cocombobox.js">Download it</a> and tell me your comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://pablonoel.com/code/cocombobox-jquery-plugin-for-enhanced-comboboxs-select-boxes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
