<?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/tag/jquery/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>jcontroller: A small and simple controller for javascript</title>
		<link>http://www.codigomanso.com/en/2010/01/jcontroller-controlador-para-javascript-con-jquery/</link>
		<comments>http://www.codigomanso.com/en/2010/01/jcontroller-controlador-para-javascript-con-jquery/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 09:32:49 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jcontroller]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=809</guid>
		<description><![CDATA[It&#8217;s been a long time since the last post, so I&#8217;ve though Hey! I&#8217;m loosing users, I cannot let that happen, let&#8217;s get something from any project I&#8217;ve done recently, so I can do a post :p
The thing is that I recently noticed that the javascript I&#8217;ve been writing lately becomes messy after some time, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">It&#8217;s been a long time since the last post, so I&#8217;ve though Hey! I&#8217;m loosing users, I cannot let that happen, let&#8217;s get something from any project I&#8217;ve done recently, so I can do a post :p</p>
<p style="text-align: justify;">The thing is that I recently noticed that the javascript I&#8217;ve been writing lately becomes messy after some time, after the page and the javascript grows a little bit, there are more events, &#8230; If you understand what I&#8217;m saying then it&#8217;s a good time for you too to change.</p>
<p style="text-align: justify;">So I&#8217;ve said to myself: &#8220;hey! (I always start talking to myself with &#8220;Hey&#8221;), so Hey! You can do a couple of things, one intelligent and one really dumb&#8221;</p>
<ul style="text-align: justify;">
<li>The intelligent: You can go and get a great controller that is fully documented, tested by the community, and start cleaning the mess. For example using a plugin for jQuery (<a href="http://www.bennadel.com/projects/cormvc-jquery-framework.htm">CorMVC</a>),  or even a framework like <a style="color: #2200cc;" onmousedown="return clk(this.href,'','','res','1','','0CAoQFjAA')" href="http://javascriptmvc.com/">JavaScriptMVC</a> o <a href="http://jamal-mvc.com/">Jamal</a></li>
<li>Or do the dumbest thing, that is, cerate it yourself</li>
</ul>
<p style="text-align: justify;">The smart reader probably have guessed the stupid I should be a couple of paragraphs before.</p>
<p style="text-align: justify;">Anyway, here it is. I&#8217;m glad to introduce <a href="http://www.codigomanso.com/archives/html/jcontroller/jcontroller.js">jcontroller</a> and his little brother the <a href="http://www.codigomanso.com/archives/html/jcontroller/jcontroller.min.js">jcontroller minified version</a> (compressed using <a href="http://yuilibrary.com/downloads/#yuicompressor">yuicompressor</a>).</p>
<p style="text-align: justify;">This controller has it&#8217;s own tests (not included), but basically all those tests are passed in Firefox, Chrome e Internet Explorer. Hold on a second!&#8230; Wait I&#8217;m going to try something&#8230; here it is, it also works on Opera. So it seems it&#8217;s working fine with the major browsers (I presume it will also work well in Safari, although I haven&#8217;t tried it).</p>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">What is jcontroller all about?</span></strong></p>
<p style="text-align: justify;">Basically it&#8217;s like any controller that uses the MVC(Model-View-Controller),  it&#8217;s just a way to have kind of pretty code instead of a big mess of code</p>
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">What about the Model or the View?</span></strong></p>
<p style="text-align: justify;">Are you kidding? What kind of stupid question is that? Well, is not stupid at all&#8230; But in fact, the view is controlled by your browser, and the model&#8230; well I have a jdata class, but I&#8217;m not ready to share it (this class it&#8217;s been working for long long time, but I would have to explain some concepts before sharing, so assume there is nothing else).</p>
<p style="text-align: justify;"><strong style="font-weight: bold;"><span style="text-decoration: underline;">jcontroller Example</span></strong></p>
<p style="text-align: justify;">
<p style="text-align: justify;">Now I&#8217;m going to show you an example, so you can do whatever you want with it. But before showing you the example, I want to say a few words about the keys of the example:</p>
<ul style="text-align: justify;">
<li>The controller is initiated by the &#8216;init&#8217; method. If you name your controller &#8220;controller&#8221; then you should call &#8220;controller.init()&#8221;</li>
<li>The controller will call &#8216;_init&#8217; method at the beginning, so you might want to define it.</li>
<li>The functions on your controller that start by &#8216;_&#8217; are private and cannot be called by users (except _init, _default and _clear which have a special meaning)</li>
<li>When the controller loads, automatically looks at the hash part of the URL and calls the proper handler.</li>
<li><em>(ignore this paragraph now)</em> Right now everything works for anchors for the same page, like &lt;a href=&#8221;#whatever&#8221;&gt; but you can implement your own trigger by returning your own function on the &#8216;_init&#8217; method</li>
<li><em>(ignore also this paragraph) </em>You can define as many controllers as you want, each controller will be independent of the others, BUT if the controllers are triggered by the same elements, expect them to execute their actions at the same time.</li>
</ul>
<p style="text-align: justify;">Here are the links for the example:</p>
<ul style="text-align: justify;">
<li><a href="http://www.codigomanso.com/archives/html/jcontroller/examples/jcontroller01.html" target="_blank">Example</a></li>
<li><a href="http://www.codigomanso.com/archives/html/jcontroller/examples/jcontroller01.html#message-1" target="_self">Example#message-1</a></li>
<li><a href="http://www.codigomanso.com/archives/html/jcontroller/examples/jcontroller01.html#message-2" target="_blank">Example#message-2</a></li>
</ul>
<p style="text-align: justify;">The example is really simple. It&#8217;s that simple that I feel stupid for writing it, but anyway, have a look at it and you will start to understand the capabilities of jcontroller.</p>
<p style="text-align: justify;"><strong>Note:</strong> Right now jcontroller uses jQuery, but I don&#8217;t think it takes more than 10 minutes to change it by any other framework.</p>
<p style="text-align: justify;">Finally, here are the links (again) to jcontroller, so you can download them again:</p>
<ul style="text-align: justify;">
<li><a href="http://www.codigomanso.com/archives/html/jcontroller/jcontroller.js">jcontroller.js</a> (6.6 KB)</li>
<li><a href="http://www.codigomanso.com/archives/html/jcontroller/jcontroller.min.js">jcontroller.min.js</a> (1.2 KB)</li>
<li>Si lo comprimes con gzip son sólo 552 bytes :p</li>
</ul>
<p style="text-align: justify;">So, nothing else to say. If you like it, you can use it as you wish (commercially, personally, academically, *ally). If you don&#8217;t like it, then I encourage you to print the jcontroller.js in paper and then break it in a hundred pieces, you will probably feel better (you can also leave a constructive message, but just after calming down).</p>
<p style="text-align: justify;">Constructive comments and suggestions are always welcome, and destructive comments are ignored.</p>
<p style="text-align: justify;">Cheers <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/01/jcontroller-controlador-para-javascript-con-jquery/feed/</wfw:commentRss>
		<slash:comments>4</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>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>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>
		<item>
		<title>How to reset a form in jQuery</title>
		<link>http://www.codigomanso.com/en/2008/12/resetear-un-formulario-con-jquery/</link>
		<comments>http://www.codigomanso.com/en/2008/12/resetear-un-formulario-con-jquery/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 09:30:44 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Programacion]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[formulario]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[resetear formulario]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/?p=240</guid>
		<description><![CDATA[Reseting the form to it&#8217;s initial values is one of those things you often do once and once again.
Doing this task with jQuery is really easy:

$&#40;'#FormID'&#41;.each &#40;function&#40;&#41;&#123;
  this.reset&#40;&#41;;
&#125;&#41;;

The thing is, that the code above iterates through each element of the form, and calls to the DOM &#8220;reset&#8221; javascript method. In fact, the &#8220;reset&#8221; function [...]]]></description>
			<content:encoded><![CDATA[<p>Reseting the form to it&#8217;s initial values is one of those things you often do once and once again.</p>
<p>Doing this task with jQuery is really easy:</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;">'#FormID'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">reset</span><span style="color: #009900;">&#40;</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 thing is, that the code above iterates through each element of the form, and calls to the DOM &#8220;reset&#8221; javascript method. In fact, the &#8220;reset&#8221; function does not exist in jQuery.</p>
<p>It would be much more simple to do something like <strong>$(&#8220;#FormID&#8221;).reset()</strong>. Fortunately creating that function in jQuery only will take a minute of programming:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">jQuery.<span style="color: #660066;">fn</span>.<span style="color: #660066;">reset</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">reset</span><span style="color: #009900;">&#40;</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>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Using the code above, reseting a form would be just one call (as desired):</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;">&quot;#FormID&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">reset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>May be using the name &#8220;<strong>reset</strong>&#8221; is too generic to be applied to any object (it will only work on forms), but I think it has a lot of sense to name it &#8216;reset&#8217;. But anyway, feel free to call it &#8220;resetForm&#8221; if you feel more comfortable.</p>
<p>Interesting links:</p>
<ul>
<li><a href="http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery" target="_blank">Getting started with jquery:</a> interesting to have a look at it <img src='http://www.codigomanso.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><a href="http://www.learningjquery.com/2007/08/clearing-form-data" target="_blank">Clearing form data:</a> how could you erase all the data in a form (this is not about reseting the form, this is actually about clearing the form)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2008/12/resetear-un-formulario-con-jquery/feed/</wfw:commentRss>
		<slash:comments>97</slash:comments>
		</item>
	</channel>
</rss>

