<?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; Javascript</title>
	<atom:link href="http://www.codigomanso.com/en/category/programacion/javascript-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>Manso Trick: Pad a number with leading zeroes in javascript</title>
		<link>http://www.codigomanso.com/en/2010/07/simple-javascript-formatting-zero-padding/</link>
		<comments>http://www.codigomanso.com/en/2010/07/simple-javascript-formatting-zero-padding/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 17:08:33 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[truco manso]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=907</guid>
		<description><![CDATA[I was missing a simple and elegant method for padding a number with leading zeroes in javascript.
A typical example of leading zeroes is when you want to show the current time and you want the time to be formatted like hh:mm. There is no problem when it&#8217;s 12:40, but when is five minutes past one, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I was missing a simple and elegant method for padding a number with leading zeroes in javascript.</p>
<p style="text-align: justify;">A typical example of leading zeroes is when you want to show the current time and you want the time to be formatted like hh:mm. There is no problem when it&#8217;s 12:40, but when is five minutes past one, you get 1:5, which is not what you would expect. You want it formatted like 01:05. The same happens with dates and in several other situations.</p>
<p style="text-align: justify;">Yesterday I found the best solution I&#8217;ve seen for this problem. Before that, let&#8217;s see possible solutions.</p>
<p style="text-align: justify;">Usually, needing only one zero, I would do something like:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">h <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>h <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;0&quot;</span> <span style="color: #339933;">+</span> h<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> h<span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: justify;">This is not bad at all, but is not elegant. The problem is, what if we want it to be formatted with 3 digits? Then, using the same schema, we can end up with something like:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">h <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>h <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>h <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;0&quot;</span> <span style="color: #339933;">+</span> h<span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;00&quot;</span> <span style="color: #339933;">+</span> h<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> h<span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: justify;">Man, this is ugly and unreadable!! Maybe it will improve with an if/else, but it will be bad anyway. Probably if you need to do something like that, you will create a function that will handle this problem and then, you will call that function saying you want h padded with 3 zeros. But there is another solution that does not require you to use or create such a funciton&#8230;</p>
<p style="text-align: justify;">Have a look for two digit and three digit:</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;0&quot;</span> <span style="color: #339933;">+</span> h<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slice</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">// devolverá &quot;01&quot; si h=1; &quot;12&quot; si h=12</span>
<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;00&quot;</span> <span style="color: #339933;">+</span> h<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slice</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// &quot;001&quot; si h=1; &quot;012&quot; si h=12;&quot;123&quot; si h = 123</span></pre></div></div>

<p style="text-align: justify;">I don&#8217;t know what are you thinking after seeing this solution, but I got flashed when I saw it. Just amazing!</p>
<p style="text-align: justify;">Let&#8217;s explain what&#8217;s going on. The code above only concatenates the &#8220;00&#8243; with the number we want to format (e.g: &#8220;00&#8243; + 12 = &#8220;0012&#8243;) and then, we get the last three digits using the <b>slice</b> string function (that&#8217;s why you have a -3). Guess what? The last three characters are &#8220;012&#8243; which is the string we want.</p>
<p style="text-align: justify;">Of course this solution is not only limited to leading zeroes, you can use it with leading spaces, or whatever character you want.</p>
<p>Sources:</p>
<ul>
<li><a href="http://gugod.org/2007/09/padding-zero-in-javascript.html">Padding zero in Javascript</a></li>
<li><a href="http://dev.enekoalonso.com/2010/07/20/little-tricks-string-padding-in-javascript/">Little tricks: string padding in Javascript</a> of Eneko Alonso blog (originally seen here)</li>
</ul>
<p><b>Update:</b> <a href="http://milan.adamovsky.com/">Milan Adamovsky</a> has created a web page <a href="http://jsperf.com/zero-padding">http://jsperf.com/zero-padding</a> where you can check the performance issues of several functions to pad with zeroes, and you can try it directly in your browser <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/07/simple-javascript-formatting-zero-padding/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<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>Where is the cursor in a input or textarea?</title>
		<link>http://www.codigomanso.com/en/2009/02/where-is-the-cursor-or-cursor-in-a-textarea-or-input/</link>
		<comments>http://www.codigomanso.com/en/2009/02/where-is-the-cursor-or-cursor-in-a-textarea-or-input/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 09:13:28 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[caret]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=548</guid>
		<description><![CDATA[I&#8217;ve just found a website with an interesting example forwhere is the cursor and which text is selected (if any) in an input and textarea.
The truth is this code is not for daily use, but it&#8217;s quite interesting to see the possibilities of javascript (well in fact I was looking for this because I need [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://javascript.nwbox.com/cursor_position/" style="float:left; margin: 0 8px 4px 0;"><img src="http://www.codigomanso.com/wp-content/uploads/2009/02/where-is-the-cursor.png" alt="Where is the cursor?" title="Where is the cursor?" width="300" height="290" class="alignnone size-full wp-image-552" /></a>I&#8217;ve just found a website with an interesting example for<a href="http://javascript.nwbox.com/cursor_position/">where is the cursor and which text is selected (if any) in an input and textarea</a>.</p>
<p>The truth is this code is not for daily use, but it&#8217;s quite interesting to see the possibilities of javascript (well in fact I was looking for this because I need it, but it&#8217;s not the usual).</p>
<p>In the example on that page, the functions <b>getSelectionStart</b> and <b>getSelectionEnd</b> are used. The first one, as one might realize, says where is the cursor on the input or textarea, while the other tells where ends the selection (and a selection exists when getSelectionStart() != getSelectionEnd()).</p>
<p>Following the javascript functions I was talking about:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> getSelectionStart<span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>o.<span style="color: #660066;">createTextRange</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #003366; font-weight: bold;">var</span> r <span style="color: #339933;">=</span> document.<span style="color: #660066;">selection</span>.<span style="color: #660066;">createRange</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">duplicate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   r.<span style="color: #660066;">moveEnd</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'character'</span><span style="color: #339933;">,</span> o.<span style="color: #660066;">value</span>.<span style="color: #660066;">length</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>r.<span style="color: #660066;">text</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> o.<span style="color: #660066;">value</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
   <span style="color: #000066; font-weight: bold;">return</span> o.<span style="color: #660066;">value</span>.<span style="color: #660066;">lastIndexOf</span><span style="color: #009900;">&#40;</span>r.<span style="color: #660066;">text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
 <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">return</span> o.<span style="color: #660066;">selectionStart</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> getSelectionEnd<span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>o.<span style="color: #660066;">createTextRange</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #003366; font-weight: bold;">var</span> r <span style="color: #339933;">=</span> document.<span style="color: #660066;">selection</span>.<span style="color: #660066;">createRange</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">duplicate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 r.<span style="color: #660066;">moveStart</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'character'</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span>o.<span style="color: #660066;">value</span>.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000066; font-weight: bold;">return</span> r.<span style="color: #660066;">text</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000066; font-weight: bold;">return</span> o.<span style="color: #660066;">selectionEnd</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2009/02/where-is-the-cursor-or-cursor-in-a-textarea-or-input/feed/</wfw:commentRss>
		<slash:comments>4</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>Get Google PageRank using only javascript (II)</title>
		<link>http://www.codigomanso.com/en/2009/01/get-google-pagerank-using-only-javascript-ii/</link>
		<comments>http://www.codigomanso.com/en/2009/01/get-google-pagerank-using-only-javascript-ii/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 13:37:13 +0000</pubDate>
		<dc:creator>Pau Sanchez</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[page rank]]></category>

		<guid isPermaLink="false">http://www.codigomanso.com/es/?p=466</guid>
		<description><![CDATA[On the previous postr I explained that doing cross-domain requests has a LOT of problems, and even with those problems today I was going to post how to get Google PageRank using only javascript
The thing is you cannot get the response once you do a cross-domain request (unless you use some tricks like a PHP [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.codigomanso.com/en/2009/01/obtener-el-pagerank-de-google-usando-solo-javascript-i/">On the previous postr</a> I explained that doing cross-domain requests has a LOT of problems, and even with those problems today I was going to post how to get Google PageRank using only javascript</p>
<p style="text-align: justify;">The thing is you cannot get the response once you do a cross-domain request (unless you use some tricks like a PHP proxy, &#8230;), so the code I developed does not know which is the PageRank obtained, however it can show the PageRank number in the right position, and that&#8217;s exactly what my script does.</p>
<p style="text-align: justify;">Following there is an iframe where you can set whatever web-page you want, and it will show it&#8217;s pagerank (if any). I promise it only uses javascript.</p>
<p><iframe src="http://www.codigomanso.com/archives/html/get-pagerank/embed-pagerank.html" style="width: 100%; border: none; padding: 0; margin: 0; overflow: hidden; height: 10em;"></iframe></p>
<p style="text-align: center;">
<a href="http://www.codigomanso.com/archives/html/get-pagerank/pagerank.html" target="_blank">Check this demo in a new window</a></p>
<p style="text-align: justify;">What the script does is compute a set of checksums of the webpage given, and then update some fields in a form and send it to Google using GET method; after that the result is loaded in an iframe. The thing is the iframe could not be manipulated (even read), even if you do the request using typical ajax methods, it won&#8217;t work either.</p>
<p style="text-align: justify;">The hack, trick, or whatever you want to call it, is that the PageRank appears just after a predefined string (&#8220;Rank_1:1:&#8221;), so what the script does is just estimate which is the position where the PageRank number should appear, and then move the iframe so the PageRank is the only number shown.</p>
<p style="text-align: justify;">I know doing this in javascript is very&#8230; in fact I don&#8217;t know the exact English word I have to use here, but let&#8217;s say it is not a nice solution.</p>
<p style="text-align: justify;">Following there is the script that computes the checksums and creates the form for querying Google <a href="http://www.codigomanso.com/archives/html/get-pagerank/getpagerank.js" target="_blank">getpagerank.js</a>. You can also check <a href="http://www.codigomanso.com/archives/html/get-pagerank/pagerank.html" target="_blank">pagerank.html</a> to take a look on how the script is integrated in a webpage.</p>
</p>
<p style="text-align:justify;">Finally, if you want to embed the webpage on your blog, or whatever, here it is a method to do so:</p>
<p><code><br />
<iframe src="http://www.codigomanso.com/archives/html/get-pagerank/embed-pagerank.html" style="border:none;"></iframe><br />
</code></p>
<p style="text-align:justify;"><b>¿What do you think?</b> ¿is it good? ¿is it crap?</p>
<hr/>
<p style="text-align: justify;">On the next couple of days I will explain <strong><em>how to do cross-domain requests using javascript and send information from one server to another</em></strong><em>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codigomanso.com/en/2009/01/get-google-pagerank-using-only-javascript-ii/feed/</wfw:commentRss>
		<slash:comments>59</slash:comments>
		</item>
	</channel>
</rss>

