<?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>Codigo Manso &#187; jQuery</title>
	<atom:link href="http://www.codigomanso.com/en/category/programacion/javascript-programacion/jquery-programacion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigomanso.com</link>
	<description>Programación, informática y tecnología</description>
	<lastBuildDate>Sun, 21 Aug 2011 10:54:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mansofk: the super mega ultra lightweight js framework</title>
		<link>http://www.codigomanso.com/en/2010/05/mansofk-el-super-mega-ultra-lightweight-js-framework/</link>
		<comments>http://www.codigomanso.com/en/2010/05/mansofk-el-super-mega-ultra-lightweight-js-framework/#comments</comments>
		<pubDate>Tue, 04 May 2010 19:01:40 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mooTools]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[js framework]]></category>
		<category><![CDATA[lightweight]]></category>
		<category><![CDATA[mansofk]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=869</guid>
		<description><![CDATA[I needed a javascript framework that was able to change the CSS of the elements, that was able to do AJAX requests, able to load external JS and CSS dynamically, able to add or change HTML on the fly, able to handle events, able to do animations and able to avoid collisions with other frameworks [...]]]></description>
			<content:encoded><![CDATA[<p>I needed a javascript framework that was able to change the CSS of the elements, that was able to do AJAX requests, able to load external JS and CSS dynamically, able to add or change HTML on the fly, able to handle events, able to do animations and able to avoid collisions with other frameworks or with other versions of himself, and, on top, I wanted a framework that was ultra lightweight and I wanted something that worked on IE6+, FF, Safari, Chrome and Opera.</p>
<p>After being tired of looking for this, I finally decided to do it myself, and honoring the blog I called it<strong> manso framework</strong>, <strong>mansofk</strong> for firends.</p>
<p>I got all that functionality in just 1.5 KB!!</p>
<p>The main features are:</p>
<ul>
<li>Easy to rename the framework to avoid collissions (with other frameworks or other versions of mansofk)</li>
<li>Chaining support</li>
<li>Dynamic load of external elements
<ul>
<li>Supports loading external CSS files upon request</li>
<li>Supports loading external JS files upon request</li>
</ul>
</li>
<li>Simple DOM manipulations
<ul>
<li>Select elements by ID</li>
<li>Add new HTML on an element</li>
<li>Replace the HTML of an element</li>
</ul>
</li>
<li>Support CSS manipulations
<ul>
<li>Get the current property of an element</li>
<li>Change the property of an element</li>
<li>Change several properties at once</li>
</ul>
</li>
<li>Simple CSS animations
<ul>
<li>Supports several attributes at once</li>
<li>Several parameters, supports changing the duration or the frames per second</li>
<li>You can choose the linear function and the cubic function</li>
</ul>
</li>
<li>Event support
<ul>
<li>bind</li>
<li>unbind</li>
</ul>
</li>
<li>AJAX calls
<ul>
<li>Using GET and POST</li>
<li>Support parsing XML data</li>
<li>Supports parsing JSON data</li>
<li>Supports getting plain text</li>
</ul>
</li>
<li>Super lightweight
<ul>
<li>3.3 KB minified</li>
<li>1.5 KB gzipped!</li>
</ul>
</li>
</ul>
<p style="text-align: justify;">You are all free to use this framework for whatever you want, but don&#8217;t blame at me if it fails (although bugs are welcome).</p>
<p style="text-align: justify;">Following you have the minified version using <a href="http://closure-compiler.appspot.com/home" target="_blank">Google   Closure Compiler</a> and the development version:</p>
<ul style="text-align: justify;">
<li><a href="http://www.codigomanso.com/archives/mansofk/mansofk-1.0.min.js" target="_self">mansofk-1.0.min.js</a> (3.3 KB for using in production, gzipped is just 1.5KB)</li>
<li><a href="http://www.codigomanso.com/archives/mansofk/mansofk-1.0.js" target="_self">mansofk-1.0.js</a> (11KB for using during development)</li>
</ul>
<p style="text-align: justify;">So&#8230;  that&#8217;s it!  I think it would be great to give you a demo, but right now I&#8217;m out of time, so I leave it for another day.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2010/05/mansofk-el-super-mega-ultra-lightweight-js-framework/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>[SOLVED] Uploadify and session problems</title>
		<link>http://www.codigomanso.com/en/2010/03/uploadify-and-session-problems-solved/</link>
		<comments>http://www.codigomanso.com/en/2010/03/uploadify-and-session-problems-solved/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 09:10:09 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[uploadify]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=836</guid>
		<description><![CDATA[
Uploadify is a wonderful plugin for jQuery that allows you to upload several files at once,  it does the uploads transparently  using flash (take a look at the demo on this link).
In fact, the great advantage I see is not to be able to upload several files at once, this can be done by javascript [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.uploadify.com"><img class="aligncenter" title="Uploadify" src="http://www.uploadify.com/_images/uploadify-logo.jpg" alt="" width="560" height="90" /></a></p>
<p style="text-align: justify;"><a href="http://www.uploadify.com" target="_blank">Uploadify</a> is a wonderful plugin for jQuery that allows you to upload several files at once,  it does the uploads transparently  using flash (take a look at the <a href="http://www.uploadify.com/demo/" target="_blank">demo on this link</a>).</p>
<p style="text-align: justify;">In fact, the great advantage I see is not to be able to upload several files at once, this can be done by javascript with no extra plugins, the great advantage is the progress bar it shows to the user, which is great for obvious usability reasons (user looking a screen where nothing happens&#8230; not good :p).</p>
<p style="text-align: justify;">Apart of uploading files, you can also upload any other variables or data (take a look to <a href="http://www.uploadify.com/documentation/" target="_blank">scriptData</a>). This can be really useful if you want, for example,to send the data in another form at the same time a file is being uploaded.</p>
<p style="text-align: justify;">The great disadvantage of uploadify, is that each file is sent in a separate request. This means that if you are uplading 30 files, each file is sent in a separate HTTP request. Please note that the problem here is not the speed, because you can easily make uploadify sends several files at once, in parallel, the problem appears if you have to send form data on the first request only&#8230; The fact that are different requests makes things a little more difficult to handle on the server, but anyway, this only happens on specific cases&#8230;</p>
<p style="text-align: justify;">Anyway, I recently used uploadify in a project where users should be logged in, in order to upload files. The thing is, when I first tried uploadify, it didn&#8217;t work&#8230; files were being apparently uploaded, but they were not stored in the server. I tried again and again, and the same problem&#8230; Finally I discovered why.</p>
<p style="text-align: justify;">Uploadify does not send cookies, and because of that, it cannot send session information on the request, so the server does not know that the user sending the files is registered, it thinks it&#8217;s an annonymous user. The good thing, is that once I realiced what was the problem, the solution was quite simple.</p>
<p>The solution to keep the session using uploadify is the same as when the client cannot store cookies. Basically is just adding session name and identifier at the end of the URL, as a GET request.</p>
<p style="text-align: justify;">In PHP, adding session to the URL would be something like:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$url</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'?'</span> <span style="color: #339933;">.</span> <span style="color: #990000;">session_name</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'='</span> <span style="color: #339933;">.</span> <span style="color: #990000;">session_id</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Once I did that, the application was working with uploadify <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2010/03/uploadify-and-session-problems-solved/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Click effect for jQuery</title>
		<link>http://www.codigomanso.com/en/2010/02/click-effect-in-javascript-for-jquery/</link>
		<comments>http://www.codigomanso.com/en/2010/02/click-effect-in-javascript-for-jquery/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:57:52 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Diseño]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=823</guid>
		<description><![CDATA[Today I&#8217;ve been playing for a while with javascript. The truth is that I haven&#8217;t found what I was looking for, but let&#8217;s assume that this is because I&#8217;m a programmer and not a designer.
Anyway, what I was trying to do is to create some kind of click effect. Ok, let me try again. What [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Today I&#8217;ve been playing for a while with javascript. The truth is that I haven&#8217;t found what I was looking for, but let&#8217;s assume that this is because I&#8217;m a programmer and not a designer.</p>
<p style="text-align: justify;">Anyway, what I was trying to do is to create some kind of click effect. Ok, let me try again. What I wanted to do, is that when someone clicked on a link, that some kind of circle/rectangle/whatever expanded disappearing. Let&#8217;s try with an example. Have you seen those TV ads for games for the Wii? At the beginning there are like three or four circles that disappear. Something like that, but less sophisticate is what I wanted to do.</p>
<p style="text-align: justify;">After trying several things, even after playing with images, I come up with a solution that is quite aproximated, although still needs something extra I don&#8217;t know how to do.</p>
<ul>
<li><a href="http://www.codigomanso.com/archives/html/click-simulator-example/index.html" target="_blank">See the click effect in a live demo</a> (demo)</li>
<li><a href="http://www.codigomanso.com/archives/html/click-simulator-example/jSimulateClick.js">Download the jQuery plugin jSimulateClick </a></li>
</ul>
<p>The example has two interesting parts.</p>
<p>The first part is where the effect is associated to the elements of class &#8216;clickable-round&#8217;. When you click on any &#8216;clickable-round&#8217; element, a circle will appear and diffuminate:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.clickable-round'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 $<span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">currentTarget</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jSimulateClick</span> <span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">pageX</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> event.<span style="color: #660066;">pageY</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'round'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The other interesting fragment associated the event to the elements that contain the class &#8216;clickable-square&#8217;. When you click on any of those elements, the effect will be quite similar to the previous one, but instead of drawing a circle, a square that will go from one pixel to the width and height of the clicked object will appear.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.clickable-square'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $<span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">currentTarget</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">jSimulateClick</span> <span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">pageX</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> event.<span style="color: #660066;">pageY</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>If you want to play with the plugin, my advice is that you start playing with the border width, border color, the duration, or even the size of the circle/rectangle&#8230;</p>
<p>You can use this javascript for any personal or commercial application, or do whatever you want with it.</p>
<p>Finally, I would appreciate any comment for improving the effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2010/02/click-effect-in-javascript-for-jquery/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>jQuery 1.4.1 is out</title>
		<link>http://www.codigomanso.com/en/2010/01/jquery-1-4-1-esta-fuera/</link>
		<comments>http://www.codigomanso.com/en/2010/01/jquery-1-4-1-esta-fuera/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 12:33:44 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=818</guid>
		<description><![CDATA[Some weeks after the release of jQuery 1.4, now the first bug fix release for this fantastic javascript framework is out.
The new version fixes several bugs, and includes some improvements.
Download jQuery 1.4.1 and have a look at the release notes.
]]></description>
			<content:encoded><![CDATA[<p>Some weeks after the release of jQuery 1.4, now the first bug fix release for this fantastic javascript framework is out.</p>
<p>The new version fixes several bugs, and includes some improvements.</p>
<p><a href="http://code.jquery.com/jquery-1.4.1.min.js">Download jQuery 1.4.1</a> and have a look at the <a href="http://jquery14.com/day-12/jquery-141-released" target="_blank">release notes</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2010/01/jquery-1-4-1-esta-fuera/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>jQuery 1.3.2 is out!</title>
		<link>http://www.codigomanso.com/en/2009/02/sale-jquery-132-solucionando-bugs/</link>
		<comments>http://www.codigomanso.com/en/2009/02/sale-jquery-132-solucionando-bugs/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 11:57:25 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery 1.3.2]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=575</guid>
		<description><![CDATA[The version 1.3.2 of jQuery is finally out. It solves several bugs and improves the performance in some parts of the code.
The list of most important changes are:

 Elements are now returned in document order.
 .live() can now prevent bubbling.
 :visible/:hidden are now significantly faster.
 As are all the width/height methods.
 Selectors are much faster [...]]]></description>
			<content:encoded><![CDATA[<p>The version 1.3.2 of jQuery is finally out. It solves several bugs and improves the performance in some parts of the code.</p>
<p>The list of most important changes are:</p>
<ul>
<li> Elements are now returned in document order.</li>
<li> .live() can now prevent bubbling.</li>
<li> :visible/:hidden are now significantly faster.</li>
<li> As are all the width/height methods.</li>
<li> Selectors are much faster in Internet Explorer.</li>
<li> appendTo/etc. have had a slight API tweak.</li>
</ul>
<p>Now update your files <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Links:</p>
<ul>
<li><a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js" target="_blank">Download jQuery 1.3.2 minified</a></li>
<li><a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.js" target="_blank">Download jQuery 1.3.2</a></li>
<li><a href="http://blog.jquery.com/2009/02/20/jquery-132-released/" target="_blank">Read the official jQuery blog announce</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2009/02/sale-jquery-132-solucionando-bugs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A couple of ways for detecting Firebug</title>
		<link>http://www.codigomanso.com/en/2009/01/como-ver-si-firebug-esta-activo/</link>
		<comments>http://www.codigomanso.com/en/2009/01/como-ver-si-firebug-esta-activo/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 14:48:48 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=498</guid>
		<description><![CDATA[I think probably all web developers (even some designes) already know Firebug, otherwise it is a must-have tool you can&#8217;t miss.
Anyway, this post is about detecting if the user has Firebug active, and which version is using. Básically the first technique is just looking if there exists a DIV whose identifier is _firebugConsole, and then [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="aligncenter size-full wp-image-499" style="float:left; margin: 0 8px 4px 0;" title="firebug" src="http://www.codigomanso.com/wp-content/uploads/2009/01/firebug.jpg" alt="firebug" width="161" height="161" />I think probably all web developers (even some designes) already know <a href="http://getfirebug.com/" target="_blank">Firebug</a>, otherwise it is a must-have tool you can&#8217;t miss.</p>
<p style="text-align: justify;">Anyway, this post is about detecting if the user has Firebug active, and which version is using. Básically the first technique is just looking if there exists a DIV whose identifier is <strong>_firebugConsole</strong>, and then check the  <strong>FirebugVersion</strong> in order to get the version.</p>
<p style="text-align: justify;">Following javascript code (using jQuery) detects wether firebug is active or not, and shows an alert with the running version:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#_firebugConsole&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Firebug version &quot;</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#_firebugConsole&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;FirebugVersion&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; is active&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p style="text-align: justify;">Converting previous code to any other javascript framework is really easy, even you can use <strong>document.getElementById</strong>.</p>
<p style="text-align: justify;">The other way for detecting Firebug is checking wether <strong>window.console.firebug</strong> has been defined:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">console</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> window.<span style="color: #660066;">console</span>.<span style="color: #660066;">firebug</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Firebug is active&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2009/01/como-ver-si-firebug-esta-activo/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>jQuery 1.3 is here!</title>
		<link>http://www.codigomanso.com/en/2009/01/jquery-13-ya-esta-aqui/</link>
		<comments>http://www.codigomanso.com/en/2009/01/jquery-13-ya-esta-aqui/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 10:39:02 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[cumpleaños]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery 1.3]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=444</guid>
		<description><![CDATA[Yesterday the new jQuery 1.3, which is 3 years old, was released.
This new version seems to have great improvements over jQuery 1.2.6 which was the last release. Following there is a list with the most important features on this version, as you can see on the jQuery blog, son:

Sizzle: A sizzlin’ hot CSS selector engine. [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday the new jQuery 1.3, which is 3 years old, was released.</p>
<p>This new version seems to have great improvements over jQuery 1.2.6 which was the last release. Following there is a list with the most important features on this version, <a href="http://blog.jquery.com/2009/01/14/jquery-13-and-the-jquery-foundation/" target="_blank">as you can see on the jQuery blog</a>, son:</p>
<ul>
<li><strong>Sizzle: </strong>A sizzlin’ hot CSS selector engine. Works really fast<a href="http://ejohn.org/blog/selectors-that-people-actually-use/" target="_blank"> for most commonly used selectors</a></li>
<li><strong>Live Events:</strong> Event delegation with a jQuery twist.</li>
<li><strong>jQuery Event Overhaul:</strong> Completely rewired to simplify event handling.</li>
<li><strong>HTML Injection Rewrite:</strong> Lightning-fast HTML appending.</li>
<li><strong>Offset Rewrite:</strong> Super-quick position calculation.</li>
<li><strong>No More Browser Sniffing:</strong> Using feature detection to help jQuery last for many more years to come. <a href="http://ejohn.org/blog/selectors-that-people-actually-use/" target="_blank"><br />
</a></li>
</ul>
<p>And now a couple of statistics showing the new performance improvements:</p>
<p><img class="aligncenter size-full wp-image-445" title="jquery_selector_performance" src="http://www.codigomanso.com/wp-content/uploads/2009/01/jquery_selector_performance.jpg" alt="jquery_selector_performance" width="500" height="375" /></p>
<p><img class="aligncenter size-full wp-image-446" title="jquery_delegation_performance" src="http://www.codigomanso.com/wp-content/uploads/2009/01/jquery_delegation_performance.jpg" alt="jquery_delegation_performance" width="500" height="375" /></p>
<p><img class="aligncenter size-full wp-image-447" title="jquery_insertion_performance" src="http://www.codigomanso.com/wp-content/uploads/2009/01/jquery_insertion_performance.jpg" alt="jquery_insertion_performance" width="500" height="375" /></p>
<p><img class="aligncenter size-full wp-image-448" title="jquery_offset_performance" src="http://www.codigomanso.com/wp-content/uploads/2009/01/jquery_offset_performance.jpg" alt="jquery_offset_performance" width="500" height="375" /></p>
<p>As you can see on all the stats, jQuery seems to be the fastest framework out there, and it has improved a lot since previous version.</p>
<p>Now I have to check it myself, so I&#8217;m going to change the jQuery version on the web pages I&#8217;m developing to see if everything is as good as it seems or it has any drawback.</p>
<p>People interested in the details can check the<a href="http://docs.jquery.com/Release:jQuery_1.3" target="_blank">official announcement of release of jQuery 1.3 with much more information</a></p>
<p>Finally, download the latest version of the script:</p>
<ul>
<li><a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.min.js" target="_self">jQuery 1.3 minified</a></li>
<li><a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.js" target="_self">jQuery 1.3 regular</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2009/01/jquery-13-ya-esta-aqui/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Manso jQuery Trick: is the element really visible</title>
		<link>http://www.codigomanso.com/en/2009/01/truco-manso-saber-si-un-elemento-es-visible-con-jquery/</link>
		<comments>http://www.codigomanso.com/en/2009/01/truco-manso-saber-si-un-elemento-es-visible-con-jquery/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 14:03:35 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=434</guid>
		<description><![CDATA[Sometimes is essential to know if an element is visible or hidden. Doing this with jQuery is quite easy, you have to ask if the filter &#8220;visible&#8221; is present or not (you can also use &#8216;hidden&#8216;). However you should take care and notice a couple of things, because maybe jQuery is not telling us the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Sometimes is essential to know if an element is visible or hidden. Doing this with jQuery is quite easy, you have to ask if the filter &#8220;<a href="http://docs.jquery.com/Selectors/visible">visible</a>&#8221; is present or not (you can also use &#8216;<a href="http://docs.jquery.com/Selectors/hidden">hidden</a>&#8216;). However you should take care and notice a couple of things, because maybe jQuery is not telling us the truth about the visibility of the object being queried.</p>
<p>The problem appears when we are asking about the div X and the parent is hidden. It is a problem because when a div is hidden, all its childs are also hidden, but when we ask jQuery about the div X it doesn&#8217;t matter if any of its parents is hidden or not, it will only check the visibility of the div X by itself, which sometimes is fine, but some others is not.</p>
<p style="text-align: justify;">Like I always do, let&#8217;s see a couple of examples.</p>
<h5>Ejemplo 1:</h5>
<p style="text-align: justify;">Let&#8217;s start from the beginning. If I&#8217;m using the following HTML code:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;DivBlock&quot;</span><span style="color: #339933;">&gt;</span>Element<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p style="text-align: justify;">Then after executing the following javascript code we will see two alerts, the first one saying &#8220;Visible!&#8221;, and the second one saying &#8220;Not Hidden&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#DivBlock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':visible'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Visible!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#DivBlock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':hidden'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Not Hidden&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: justify;">Up to this point everything work just fine. As you can see, asking if a layer is visible or not in jQuery is quite easy.</p>
<h5>Ejemplo 2:</h5>
<p style="text-align: justify;">Let&#8217;s try something harder.Let&#8217;s see what happens if the parent div is hidden:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">  <span style="color: #339933;">&lt;</span>div style<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;display: none;&quot;</span><span style="color: #339933;">&gt;</span>
   <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;DivBlock&quot;</span><span style="color: #339933;">&gt;</span>Element<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p style="text-align: justify;">Again, if we run the same javascript code (that I copied again), you will see that every single browser but Safari will show the alerts, saying that the div is visible, but wait, <i>the element is, in fact, hidden!!</i>.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#DivBlock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':visible'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Visible!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#DivBlock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':hidden'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Not Hidden&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: justify;">Oh my god! <b>¡¡jQuery is doing it wrong!!</b> (forget the dramatism here <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  in fact it seems more a browser implementation issue.</p>
<p style="text-align: justify;">Anyway, fortunately we have a solution for this, and it&#8217;s quite easy. If you want to ask if the div X is really visible, you sould ask <i>are X and all its parents visible?</i>, or in other words <b>is it X visible and are all their parents not hidden?</b> which in jQuery translates to:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#DivBlock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':visible'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#DivBlock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parents</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':hidden'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
  <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Visible!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: justify;">The code above should work perfectly in all browsers.</p>
<p style="text-align: justify;">Finally, as an alternative solution, a selector could be created to make it easier to ask from jQuery:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">jQuery.<span style="color: #660066;">extend</span><span style="color: #009900;">&#40;</span>
  jQuery.<span style="color: #660066;">expr</span><span style="color: #009900;">&#91;</span> <span style="color: #3366CC;">&quot;:&quot;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> 
  <span style="color: #009900;">&#123;</span> reallyvisible <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;(jQuery(a).is(':visible') &amp;&amp; jQuery(a).parents(':hidden').length == 0)&quot;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: justify;">Using the new selector, asking if DivBlock is really visible will be coded as following:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#DivBlock'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':reallyvisible'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>  <span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Visible!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>For more information:</p>
<ul>
<li><a href="http://remysharp.com/2008/10/17/jquery-really-visible/">jquery *really* visible</a></li>
<li><a href="http://docs.jquery.com/Traversing/parents">jQuery Traversing: parents method</a></li>
<li><a href="http://docs.jquery.com/Traversing/is">jQuery Traversing: is method</a></li>
<li><a href="http://docs.jquery.com/Selectors/visible">jQuery Visible Selector</a></li>
<li><a href="http://docs.jquery.com/Selectors/hidden">jQuery Hidden Selector</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2009/01/truco-manso-saber-si-un-elemento-es-visible-con-jquery/feed/</wfw:commentRss>
		<slash:comments>232</slash:comments>
		</item>
		<item>
		<title>Time Pickers in javascript</title>
		<link>http://www.codigomanso.com/en/2008/12/recopilacion-de-time-pickers-con-javascript/</link>
		<comments>http://www.codigomanso.com/en/2008/12/recopilacion-de-time-pickers-con-javascript/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 12:24:00 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Usabilidad]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mooTools]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[picker]]></category>
		<category><![CDATA[time picker]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=355</guid>
		<description><![CDATA[Truth be told,  from a usability point of view, a date picker has much more sense than a time picker. Anyway I like to to explore the different implementations out there  
The objective for a time picker is to let the user set the time in hours and minutes, in 24-hour format, or even [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Truth be told,  from a usability point of view, a date picker has much more sense than a time picker. Anyway I like to to explore the different implementations out there <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align: justify;">The objective for a time picker is to let the user set the time in hours and minutes, in 24-hour format, or even specify  AM/PM . In my opinion, a text input using javascript to validate the hour format (e.g:<em> hh:mm</em>) should be enough in most cases.</p>
<p style="text-align: justify;">Anyway, let&#8217;s see the different time-pickers out there, and do some criticism about them :p</p>
<h5 style="text-align: justify;">NoGray Time Picker</h5>
<p style="text-align: justify;">I think this is the one I like the most, it is cool and works as expected. <a href="http://www.nogray.com/time_picker.php" target="_blank">NoGray Time Picker</a> is the number one. This time picker improves the web design without degrade the usability of the web site. This time-picker uses mooTools.</p>
<div class="mceTemp mceIEcenter" style="text-align: justify;">
<dl id="attachment_360" class="wp-caption aligncenter" style="width: 291px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-360" title="NoGray Time Picker" src="http://www.codigomanso.com/wp-content/uploads/2008/12/nogray-time-picker.png" alt="NoGray Time Picker" width="281" height="179" /></dt>
<dd class="wp-caption-dd">3 in 1: Simple, cool and usable <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </dd>
</dl>
</div>
<p style="text-align: justify;">As expected, when you click on the hands of the clock, hands move and you could change hour and minutes easily.  It is a great effect, and all in javascript <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align: justify;"><a href="http://www.nogray.com/time_picker.php" target="_blank">Here you could find an example of this time-picker working</a></p>
<h5 style="text-align: justify;">Time Picker jQuery plugin</h5>
<p style="text-align: justify;"><a href="http://plugins.jquery.com/project/timepicker" target="_blank">Time Picker</a> is a jQuery plugin. It is basically formed by three <em>select</em>: one for the hour, another for the minutes and the last one for the AM/PM. If you intend to let the user specify the time in intervals of 10 or 15 minutes, then this time picker is for you, but if you want a more accurate time from the user, 60 different items in a select box is too much (although you can do it, anyway).</p>
<p style="text-align: justify;"><img class="size-full wp-image-365" title="Time Picker jquery plugin" src="http://www.codigomanso.com/wp-content/uploads/2008/12/time-picker-jquery.png" alt="Podeis ver que es el plugin no tiene mucho misterio" width="147" height="25" /></p>
<p style="text-align: justify;">As you can see, this plugin is very easy to understand by an user, and to implement by a programmer.</p>
<h5 style="text-align: justify;">Fancy Time Picker</h5>
<p style="text-align: justify;">On the other hand we have <a href="http://www.java2s.com/Code/JavaScript/GUI-Components/FancyTimePicker.htm" target="_blank">Fancy Time Picker</a>. This one is not bad at all, but I don&#8217;t like it very much. When the table appears there are lots and lots of elements, so much information for an user just to pick up an hour. I think this might scare some users, instead of help them.</p>
<div class="mceTemp mceIEcenter" style="text-align: justify;">
<dl id="attachment_362" class="wp-caption aligncenter" style="width: 367px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-362" title="Fancy Time Picker" src="http://www.codigomanso.com/wp-content/uploads/2008/12/fancy-time-picker.png" alt="Como veis es una tabla con muuuuuuuuuchos números (no usable)" width="357" height="280" /></dt>
<dd class="wp-caption-dd">As you can see it is a looooooong table  (not usable)</dd>
</dl>
</div>
<p style="text-align: justify;"><a href="http://www.java2s.com/Code/JavaScriptDemo/FancyTimePicker.htm" target="_blank">You could check the Fancy Time Picker demo on this link.</a></p>
<h5 style="text-align: justify;">Clock Pick</h5>
<p style="text-align: justify;"><a href="http://www.oakcitygraphics.com/jquery/clockpick/trunk/ClockPick.cfm" target="_blank">Clock Pick</a> is another time picker that I&#8217;ve found after looking on Google. It is implemented as a jQuery plugin, and from my point of view the usability is worse with this plugin than without it. I think the idea is not bad, but there is something is not working as one might expect.</p>
<p style="text-align: justify;">Here it is an screenshot of the plugin working:</p>
<p style="text-align: justify;"><img class="size-full wp-image-364" title="ClockPick" src="http://www.codigomanso.com/wp-content/uploads/2008/12/clockpick-jquery.png" alt="Clock Pick" width="121" height="93" /></p>
<p style="text-align: justify;">I think is better if you judge for yourself and you make your own conclussions, so if you want to see the downgrade of ussability, try the real example <a href="http://www.oakcitygraphics.com/jquery/clockpick/trunk/ClockPick.cfm" target="_blank">on this example page</a></p>
<h5 style="text-align: justify;">jQuery.ptTimeSelect</h5>
<p style="text-align: justify;"><a href="http://pttimeselect.sourceforge.net/example/index.html" target="_blank">ptTimeSelect</a> is another jQuery plugin for picking time. The problem that I see on this time-picker is that there is too much visual information just to select hours and minutes.</p>
<div class="mceTemp mceIEcenter" style="text-align: justify;">
<dl id="attachment_375" class="wp-caption aligncenter" style="width: 224px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-375" title="jQuery.ptTimeSelect" src="http://www.codigomanso.com/wp-content/uploads/2008/12/jquery-pttimeselect.png" alt="Muchos números sin sentido" width="214" height="228" /></dt>
<dd class="wp-caption-dd">Lots of non-sense numbers
</dd>
</dl>
</div>
<p style="text-align: justify;">You might think:</p>
<p style="text-align: justify;">- &#8220;Hey! The numbers have lots of sense. Can&#8217;t you see that they are grouped in hours and minutes, and that you can select between AM/PM?&#8221;</p>
<p style="text-align: justify;">- &#8220;Yes, you are right, they made sense&#8221; &#8211; I&#8217;ll reply &#8211; &#8220;But, isn&#8217;t true that you spent arround 3 seconds in finding that sense? And isn&#8217;t true that you work with computeres? Try showing this to your mother, and ask her if she understand anything about this&#8230;.&#8221;</p>
<p style="text-align: justify;">That&#8217;s it, for a time picker is too much mess.</p>
<h5 style="text-align: justify;">jQuery TimePickr</h5>
<p style="text-align: justify;">Finally, we have another jQuery plugin called <a href="http://haineault.com/media/examples/jquery-utils/demo/ui-timepickr.html" target="_blank">Time Pickr</a>. The idea is not bad, something similar to Clock Pick above: use a navigational menu to select hours and minutes. The problem I see is that is too much for a user. I mean, I could be wrong (and I probably am),  but don&#8217;t you think using that long menu is using too much  in the wrong direction?</p>
<p style="text-align: justify;">
<div class="mceTemp mceIEcenter" style="text-align: justify;">
<dl id="attachment_369" class="wp-caption aligncenter" style="width: 354px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-369" title="jQuery Time Pickr" src="http://www.codigomanso.com/wp-content/uploads/2008/12/jquery-time-pickr.png" alt="Como se puede apreciar, usa menús de navegación" width="344" height="100" /></dt>
<dd class="wp-caption-dd">As you can see, it implements navigational menus</dd>
</dl>
</div>
<h5 style="text-align: justify;">Conclussion</h5>
<p style="text-align: justify;">If I have to use any time-picker for any of my projects, I think <strong>I would choose the two time-pickers that appear on top of the list  (No Gray Time Picker or jQuery Time Picker)</strong>, I will discard the rest of them. After thinking for a while, <em><strong>do we have to use so much sofistication just to let the user select time?</strong></em> The idea is to help user for picking up a time, not messing him up, so the time picker you select should be the simple and improve usability, not downgrade it.</p>
<p style="text-align: justify;">As the latest note on this article, you should ask yourself:</p>
<p style="text-align: justify;">Would my parents/grandparents understand on the first sight how it work?</p>
<ul style="text-align: justify;">
<li>If you think they will understand, then use it <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>If you think they will understand after some seconds, then you have room for improvement, for something more usable</li>
<li>And if the answer is no, that they won&#8217;t understand, then it is better to look for something else</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2008/12/recopilacion-de-time-pickers-con-javascript/feed/</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
		<item>
		<title>Rounding corners: the javascript way</title>
		<link>http://www.codigomanso.com/en/2008/12/rounded-corners-con-javascript/</link>
		<comments>http://www.codigomanso.com/en/2008/12/rounded-corners-con-javascript/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 09:51:50 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Diseño]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[esquina redondeada]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mochikit]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rounded corner]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=330</guid>
		<description><![CDATA[After taking a look on how round corners on some browsers, I think it&#8217;s worth exploring other methods, like doing this with javascript.
Rounding corners is not difficult, in general, the problem is that you should use some &#8220;hacks&#8221;,  it is not the same rounding corners using a style on a unique DIV, than using 3 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">After taking a look on <a href="http://www.codigomanso.com/en/2008/12/rounded-corners-en-css3/" target="_blank">how round corners on some browsers</a>, I think it&#8217;s worth exploring other methods, like doing this with javascript.</p>
<p style="text-align: justify;">Rounding corners is not difficult, in general, the problem is that you should use some &#8220;hacks&#8221;,  it is not the same rounding corners using a style on a unique DIV, than using 3 DIVS or create a TABLE with background images in order to emulate this effect.</p>
<p style="text-align: justify;">Unfortunately, as the Internet Explorer (even version 6) is still widely used, doing what I&#8217;ve explained on the previous post is not a good practice at all.</p>
<p style="text-align: justify;">Anyway, for practical use, as I&#8217;ve said before, there are other easy methods to let people see rounded corners no matter its race, gender, religion, operating system or browser. One of this  methods is using javascript libraries for rounding corners easily.  Fortunately, the web is full of javascript libraries, and rounding corners was once an important topic, so let&#8217;s see some options:</p>
<ul>
<li><a href="http://www.html.it/articoli/nifty/index.html" target="_blank">Nifty Corners</a>, and the latest version, <a href="http://www.html.it/articoli/niftycube/index.html" target="_blank">Nifty Corners Cube</a>: this was the first widely used solution, it received very good reviews by the time <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li><a href="http://methvin.com/jquery/jq-corner.html">jQuery corner plugin</a>, created by <a href="http://methvin.com/jquery/jq-corner.html">Dave Methvin</a>: here you could see <a href="http://methvin.com/jquery/jq-corner-demo.html">a demo using all the parameters</a>. After some time this plugin was updated by Mike Alsup who included even more conrer types  (<a href="http://malsup.com/jquery/corner/" target="_blank">taking a look to this demo to see all available corners</a>).</li>
<li><a href="http://jrc.meerbox.nl/?p=13" target="_blank">JRC</a> is another plugin for jQuery I&#8217;ve found on the internet,  <a href="http://jrc.meerbox.nl/demo/" target="_blank">following this link you could see a demo</a></li>
<li><a href="http://www.mochikit.com" target="_blank">MochiKit</a> comes with<a href="http://www.mochikit.com/examples/rounded_corners/index.html"> native support for rounded corners as you could see on this example</a>, somehow is very limited but enough for some purposes</li>
<li><a href="http://openrico.org/" target="_blank">OpenRico</a> also <a href="http://demos.openrico.org/demos/corner" target="_blank">supports rounded corners natively</a></li>
</ul>
<p style="text-align: justify;">Finally, if you do not intend to use javascript for rounding corners (because you are looking for something more sofisticated, or you don&#8217;t like doing this kind of things by javascript), then take a look at this article about <a href="http://www.cssjuice.com/25-rounded-corners-techniques-with-css/" target="_blank">25 techniques for rounding corners using CSS</a></p>
<p style="text-align: justify;"><strong>Update:</strong> I&#8217;ve found <a href="http://www.ruzee.com/blog/shadedborder" target="_blank">ShadedBorder</a> which looks great, and I think this is the one I&#8217;m going to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2008/12/rounded-corners-con-javascript/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

