<?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>Dakoo &#187; javascript</title>
	<atom:link href="http://www.dakoo.cl/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dakoo.cl</link>
	<description>¿Te gusta la web?</description>
	<lastBuildDate>Mon, 07 Jun 2010 13:40:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mas HTML 5 y 3 videos de Douglas Crockford explicando javascript avanzado</title>
		<link>http://www.dakoo.cl/mas-html-5-y-3-videos-de-douglas-crockford-explicando-javascript-avanzado/</link>
		<comments>http://www.dakoo.cl/mas-html-5-y-3-videos-de-douglas-crockford-explicando-javascript-avanzado/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 18:38:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[==Fast Notes==]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[script.acuro.us]]></category>

		<guid isPermaLink="false">http://www.dakoo.cl/?p=170</guid>
		<description><![CDATA[Siguiendo con los ejemplos de HMTL 5, este post escrito por Thomas Fuchs( no ssabes quien es?, el creador de script.aculo.us) en que nos muestra un ejemplo muy práctico y rápido de implementar. Por otro lado hay 3 videos en que Douglas Crockford explica Javascript Avanzado. Douglas Crockford: &#34;Advanced JavaScript&#34; (1 of 3) en Yahoo! [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dakoo.cl/wp-content/uploads/2010/06/correcaminos.jpg"><img src="http://www.dakoo.cl/wp-content/uploads/2010/06/correcaminos.jpg" alt="" title="correcaminos" width="335" height="335" class="aligncenter size-full wp-image-163" /></a>Siguiendo con los ejemplos de HMTL 5, este <a href="http://mir.aculo.us/2010/06/04/making-an-ipad-html5-app-making-it-really-fast/">post escrito</a> por <a href="http://en.wikipedia.org/wiki/Thomas_Fuchs">Thomas Fuchs</a>( no ssabes quien es?, el creador de  <a href="http://script.aculo.us/">s<strong>cript.aculo.us</strong></a>) en que nos muestra un ejemplo muy práctico y rápido de implementar.<br />
Por otro lado hay 3 videos en que <a href="http://en.wikipedia.org/wiki/Douglas_Crockford"><strong>Douglas Crockford</strong></a> explica Javascript Avanzado.</p>
<div><object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=1027823&#038;vid=111585&#038;lang=es-mx&#038;intl=e1&#038;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v0/w327/111585_320_240.jpeg&#038;embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=1027823&#038;vid=111585&#038;lang=es-mx&#038;intl=e1&#038;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v0/w327/111585_320_240.jpeg&#038;embed=1" ></embed></object><br /><a href="http://espanol.video.yahoo.com/watch/111585/1027823">Douglas Crockford: &quot;Advanced JavaScript&quot; (1 of  3)</a> en <a href="http://espanol.video.yahoo.com" >Yahoo! Video</a></div>
<div><object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=1027832&#038;vid=111586&#038;lang=es-mx&#038;intl=e1&#038;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v0/w327/111586_320_240.jpeg&#038;embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=1027832&#038;vid=111586&#038;lang=es-mx&#038;intl=e1&#038;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v0/w327/111586_320_240.jpeg&#038;embed=1" ></embed></object><br /><a href="http://espanol.video.yahoo.com/watch/111586/1027832">Douglas Crockford: &quot;Advanced JavaScript&quot; (2 of 3)</a> en <a href="http://espanol.video.yahoo.com" >Yahoo! Video</a></div>
<div><object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=1027854&#038;vid=111587&#038;lang=es-mx&#038;intl=e1&#038;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v0/w327/111587_100_70.jpeg%3Fx%3D158%26y%3D111%26sig%3DWCEKic7NXxyzthKrgFK47Q--&#038;embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=1027854&#038;vid=111587&#038;lang=es-mx&#038;intl=e1&#038;thumbUrl=http%3A//l.yimg.com/a/i/us/sch/cn/v/v0/w327/111587_100_70.jpeg%3Fx%3D158%26y%3D111%26sig%3DWCEKic7NXxyzthKrgFK47Q--&#038;embed=1" ></embed></object><br /><a href="http://espanol.video.yahoo.com/watch/111587/1027854">Douglas Crockford: &quot;Advanced JavaScript&quot; (3 of  3)</a> en <a href="http://espanol.video.yahoo.com" >Yahoo! Video</a></div>
<p>ojalá les sirva</p>
<p>saludos TUTO</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dakoo.cl/mas-html-5-y-3-videos-de-douglas-crockford-explicando-javascript-avanzado/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encontrar ids repetidos en html</title>
		<link>http://www.dakoo.cl/encontrar-ids-repetidos-en-html/</link>
		<comments>http://www.dakoo.cl/encontrar-ids-repetidos-en-html/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 18:44:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[desarrollo web]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.dakoo.cl/?p=128</guid>
		<description><![CDATA[En muchas oportunidades al escribir html nisiquiera podemos ver el resultado final de nuestros trabajos, por ejemplo si trabajas con trozos de html que al final se unen con códigos de otros desarrolladores y muchas veces no tenemos idea de los nombres que les pusieron a los tag html. Esto se complica más aún cuando [...]]]></description>
			<content:encoded><![CDATA[<p>En muchas oportunidades al escribir html nisiquiera podemos ver el resultado final de nuestros trabajos, por ejemplo si trabajas con trozos de html que al final se unen con códigos de otros desarrolladores y muchas veces no tenemos idea de los nombres que les pusieron a los tag html. Esto se complica más aún cuando tenemos que realizar algo con javascript sobre estos elementos que se han creado, por lo tanto, nuestros scripts no funcionarán.<br />
A mí en mi trabajo me ocurre con mucha frecuencia así que escribí un pequeño script en js que te dá un alert con un resumen del estado de ids de tu html, para esto solo linkea esta dirección en tu html y al recargar la página te dará el resultado del análisis.</p>
<div class="igBar"><span id="ljavascript-2"><a href="#" onclick="javascript:showPlainTxt('javascript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-2">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color: #3366CC;">"http://www.dakoo.cl/archivos/utilidades/verificador.js"</span> type=<span style="color: #3366CC;">"text/javascript"</span>&gt;&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
En los próximos días linkearé el source por si quieren verlo</p>
<p>Espero les sirva</p>
<p>saludos tuto</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dakoo.cl/encontrar-ids-repetidos-en-html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Container para marcas de google maps</title>
		<link>http://www.dakoo.cl/container-para-marcas-de-google-maps/</link>
		<comments>http://www.dakoo.cl/container-para-marcas-de-google-maps/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 01:59:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Utilidades]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://www.dakoo.cl/?p=123</guid>
		<description><![CDATA[Este post es debido a un enojo que tuve una véz. Me gusta mucho la orientación a objetos y estaba utilizando la api de google maps. El problema surgía al momento de tener un container con todos los marcadores que tenía en el mapa( en el cliente claro está) y despues de darme cuenta que [...]]]></description>
			<content:encoded><![CDATA[<p>Este post es debido a un enojo que tuve una véz. Me gusta mucho la orientación a objetos y estaba utilizando la <a href="http://code.google.com/intl/es-ES/apis/maps/">api de google maps</a>. El problema surgía al momento de tener un container con todos los marcadores que tenía en el mapa( en el cliente claro está) y despues de darme cuenta que lo que se suponía era la solución de <a href="http://code.google.com/intl/es-ES/apis/maps/documentation/reference.html#GMarkerManager">google estaba deprecada</a>, decidí ir por mi cuenta y crear una pequeña clase. Es algo super sencillo y que se vale de la clase <a href="http://mootools.net/docs/core/Native/Hash">Hash de Mootools</a> y tiene como único objetivo tener algo más ordenado.<br />
Aquí va el código</p>
<p>LA CLASE</p>
<div class="igBar"><span id="ljavascript-5"><a href="#" onclick="javascript:showPlainTxt('javascript-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-5">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> containerMarcas<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cont</span> = <span style="color: #003366; font-weight: bold;">new</span> Hash<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">add</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>key,marca<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cont</span>.<span style="color: #006600;">include</span><span style="color: #66cc66;">&#40;</span>key,marca<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">rm</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>key<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cont</span>.<span style="color: #006600;">erase</span><span style="color: #66cc66;">&#40;</span>key<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">getLen</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cont</span>.<span style="color: #006600;">getLength</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">setNombreMarca</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>key,nombre<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> mar = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cont</span>.<span style="color: #006600;">get</span><span style="color: #66cc66;">&#40;</span>key<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; mar.<span style="color: #006600;">setNombre</span><span style="color: #66cc66;">&#40;</span>nombre<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cont</span>.<span style="color: #006600;">set</span><span style="color: #66cc66;">&#40;</span>key,mar<span style="color: #66cc66;">&#41;</span>;&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">setDescripcionMarca</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>key,des<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> mar = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cont</span>.<span style="color: #006600;">get</span><span style="color: #66cc66;">&#40;</span>key<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; mar.<span style="color: #006600;">setDescripcion</span><span style="color: #66cc66;">&#40;</span>des<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">cont</span>.<span style="color: #006600;">set</span><span style="color: #66cc66;">&#40;</span>key,mar<span style="color: #66cc66;">&#41;</span>;&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Un ejemplo de uso</p>
<div class="igBar"><span id="ljavascript-6"><a href="#" onclick="javascript:showPlainTxt('javascript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-6">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> container = <span style="color: #003366; font-weight: bold;">new</span> containerMarcas<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">container.<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span>k,m<span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dakoo.cl/container-para-marcas-de-google-maps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Shell de Mootools</title>
		<link>http://www.dakoo.cl/shell-de-mootools/</link>
		<comments>http://www.dakoo.cl/shell-de-mootools/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 00:49:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[desarrollo web]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.dakoo.cl/?p=98</guid>
		<description><![CDATA[Hoy Mootools nuevamente me ha sorprendido, debo reconocer que tengo un cierto "amor" por este framework . Estoy hablando de una shell que te permite ir probando tus scripts antes de subirlos o solamente para testear. Si quieres probar esta maravilla entra aquí saludos tuto]]></description>
			<content:encoded><![CDATA[<p>Hoy <a href="http://mootools.net">Mootools </a>nuevamente me ha sorprendido, debo reconocer que tengo un cierto "amor" por este framework <img src='http://www.dakoo.cl/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . Estoy hablando de una shell que te permite ir probando tus scripts antes de subirlos o solamente para testear.<br />
Si quieres probar esta maravilla entra <a href="http://mootools.net/shell/">aquí</a></p>
<p>saludos tuto</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dakoo.cl/shell-de-mootools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparacion de String con Javascript</title>
		<link>http://www.dakoo.cl/comparacion-de-string-con-javascript/</link>
		<comments>http://www.dakoo.cl/comparacion-de-string-con-javascript/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 03:26:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cosas raras de javascript]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.dakoo.cl/?p=93</guid>
		<description><![CDATA[Una de las cosas raras que me ha pasado con js fue una comparación de string. Para los que han programado en otros lenguajes mas o menos  "modernos" saben que uno puede saber si un string es mayor que otro solo colocando la expresion "string1 &#62; strin2" o "string1 &#60; string2", esto en sí debería [...]]]></description>
			<content:encoded><![CDATA[<p>Una de las cosas raras que me ha pasado con js fue una comparación de string.</p>
<p>Para los que han programado en otros lenguajes mas o menos  "modernos" saben que uno puede saber si un string es mayor que otro solo colocando la expresion "string1 &gt; strin2" o "string1 &lt; string2", esto en sí debería devolver 1 o 0 dependiendo de los strings ingresados. Yo pensaba que esta "regla" también se respetaba para js, GRAN ERROR SEÑOR, osea, no es TAN error, porque como siempre hay excepciones a la regla.</p>
<p>En firefox me funcionaba, en chrome y en ie6 no.</p>
<p>Ahora la solución.</p>
<p>Cachureando por ahi y por alla, recordando funciones de otros lenguajes(java más especificamente)  llegue a una <a href="http://85.147.245.113/mirrorbooks/javascriptprofessional/4233final/LiB0017.html">página</a> en la que implementó  la función "compareTo", la cuál por ejemplo en java existe. Lo que hace esto es comparar caracter por caracter el unicode de cada uno y entregando el resultado. Con esto se dejan de lado los errores (que pienso que es donde se marean los navegadores) que se pueden producir por caracteres extraños, acentos por ejemplo, mayúsculas u otra cosa.</p>
<p>Vamos al código</p>
<div class="igBar"><span id="ljavascript-8"><a href="#" onclick="javascript:showPlainTxt('javascript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-8">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> compareTo<span style="color: #66cc66;">&#40;</span> s <span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #003366; font-weight: bold;">var</span> len1 = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">length</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #003366; font-weight: bold;">var</span> len2 = s.<span style="color: #006600;">length</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #003366; font-weight: bold;">var</span> n = <span style="color: #66cc66;">&#40;</span> len1 &lt;len2 ? len1 : len2 <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">for</span><span style="color: #66cc66;">&#40;</span> i = <span style="color: #CC0000;color:#800000;">0</span> ; i &lt;n ; i++ <span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> a = <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">charCodeAt</span><span style="color: #66cc66;">&#40;</span> i <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> b = s.<span style="color: #006600;">charCodeAt</span><span style="color: #66cc66;">&#40;</span> i <span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span> a != b <span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #66cc66;">&#40;</span> a - b <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span>&nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #66cc66;">&#40;</span> len1 - len2 <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">String.<span style="color: #006600;">prototype</span>.<span style="color: #006600;">compareTo</span> = compareTo; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Lindo no <img src='http://www.dakoo.cl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Cualquier duda o sugerencia no dudes en comentar</p>
<p>Saludos tuto</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dakoo.cl/comparacion-de-string-con-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Primeros pasos con WebGl</title>
		<link>http://www.dakoo.cl/primeros-pasos-con-webgl/</link>
		<comments>http://www.dakoo.cl/primeros-pasos-con-webgl/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 19:01:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Webgl]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.dakoo.cl/?p=73</guid>
		<description><![CDATA[¿Web..Como? Webgl viene a proponer una nueva revolución en gráficos 3d en la web. Desde hace mucho tiempo que la idea estaba en el aire y faltaba alguien que la llevara a cabo, es ahi donde aparece el grupo Kronos, un conjunto de empresas relacionadas con aplicaciones basadas en graficos 3d, en donde por ejemplo [...]]]></description>
			<content:encoded><![CDATA[<h2>¿Web..Como?</h2>
<p><a href="http://es.wikipedia.org/wiki/WebGL">Webgl</a> viene a proponer una nueva revolución en gráficos 3d en la web. Desde hace mucho tiempo que la idea estaba en el aire y faltaba alguien que la llevara a cabo, es ahi donde aparece el <a href="http://www.khronos.org/">grupo Krono</a>s, un conjunto de empresas relacionadas con aplicaciones basadas en graficos 3d, en donde por ejemplo está incluidas <a href="http://www.khronos.org/members/promoters">AMD, Nvidia, Intel, ARM, etc.</a> Este grupo hace muy poco que está empezando a mostrar los resultados en torno al proyecto Webgl y los resultados que están empezando a verse dan realmente para pensar.</p>
<p>Existen muchos ejemplos que se están empezando a ver en la Web sobre webgl, eso que aún no muchos navegadores soportan esta tecnología, es más, solo Webkit en sus ultimas versiones y Gekko en firefox 3.7( si lo se recien están en la version 3.5.x estable) lo están implementando. Si quieres ver estos ejemplos que andan pululando por ahí te conviene instalar firefox minifield, el cuál puedes bajar de esta dirección:<br />
<code><br />
<a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/">http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/<br />
</a></code></p>
<p>Existen varias páginas que hablan sobre esto pero sin dudas la mejor y en la que voy a basarme para hacer los demos y esas cosas( si leiste bien, este no va a ser el primer post sobre esto <img src='http://www.dakoo.cl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ) es<br />
<code><br />
<a href="http://learningwebgl.com/blog/">http://learningwebgl.com/blog/<br />
</a></code></p>
<h2>Tengo el Firefox Minifield, ¿ahora que?</h2>
<p>Bueno ahora debes activarlo, esto se realiza:</p>
<li>Ejecuta Minifield</li>
<li>Escribe en la barra de direcciones about:config</li>
<li>Filtra por Webgl</li>
<li>Busca el comando "webgl.enabled_for_all_sites" y hazle doble click para que cambie a "true"</li>
<p>Ves que no era dificl <img src='http://www.dakoo.cl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Ahora si quieres ver algunos ejemplos mira estos:<br />
<code><a href="http://learningwebgl.com/blog/?p=11#examples">http://learningwebgl.com/blog/?p=11#examples</a></code></p>
<p>Eso por ahora, prometo muy pronto poner un ejemplo para empezar a entender de que se trata todo esto</p>
<p>Saludos tuto</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dakoo.cl/primeros-pasos-con-webgl/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Acentos en Alerts de Javascript</title>
		<link>http://www.dakoo.cl/acentos-en-alerts-de-javascript/</link>
		<comments>http://www.dakoo.cl/acentos-en-alerts-de-javascript/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 01:43:37 +0000</pubDate>
		<dc:creator>tuto</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://dakoo.cl/?p=25</guid>
		<description><![CDATA[En la pega el otro día con un compañero teniamos que mostrar un texto en un alert de Javascript, el problema comenzó cuando no podiamos mostrar los clasicos &#38;acute; como en html, así que investigando un poquito por la red encontré la solución. UNICODE Si en vez de colocar los caracteres con &#38;aacute; l lo [...]]]></description>
			<content:encoded><![CDATA[<p>En la pega el otro día con un compañero teniamos que mostrar un texto en un alert de Javascript, el problema comenzó cuando no podiamos mostrar los clasicos &amp;acute; como en html, así que investigando un poquito por la red encontré la solución.</p>
<h1 style="text-align: center;"><a href="http://es.wikipedia.org/wiki/Unicode">UNICODE</a></h1>
<p>Si en vez de colocar los caracteres con &amp;aacute; l lo realizas de la siguiente forma</p>
<pre lang="javascript">alert("El a"+'\u00f1'+"o, es en el que estamos");
</pre>
<p>Verás un bello alert con una Ñ .<br />
Como se fijarán lo que se muestra en ese alert es una Ñ la cuál es un caracter especial y los cuales también pueden mostrarse dentro de un alert.</p>
<p>A continuación una lista con varios caracteres y el unicode respectivo</p>
<p><a href="http://lefunes.wordpress.com/2007/11/14/caracteres-especiales-en-javascript/">http://lefunes.wordpress.com/2007/11/14/caracteres-especiales-en-javascript/</a></p>
<p>Espero les sirva</p>
<p>Saludos tuto</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dakoo.cl/acentos-en-alerts-de-javascript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mootools Highlight, bueno, bonito y barato</title>
		<link>http://www.dakoo.cl/mootools-highlight-bueno-bonito-y-barato/</link>
		<comments>http://www.dakoo.cl/mootools-highlight-bueno-bonito-y-barato/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 03:11:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[highlitght]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>

		<guid isPermaLink="false">http://dakoo.cl/?p=10</guid>
		<description><![CDATA[Una funcionalidad de mootools bastante bonita es el Hightlight. Su objetivo es producir un parpadeo en un objeto de la pagina, entiendase por parpadeo como un cambio de color por un tiempo corto. El color por defecto que trae es un amarillo claro, pero trae la opcion que se puedan setear los 2 colores entre [...]]]></description>
			<content:encoded><![CDATA[<p>Una funcionalidad de mootools bastante bonita es el <a href="http://mootools.net/docs/core/Fx/Fx.Tween#Element:highlight">Hightlight</a>. Su objetivo es producir un parpadeo en un objeto de la pagina, entiendase por parpadeo como un cambio de color por un tiempo corto. El color por defecto que trae es un amarillo claro, pero trae la opcion que se puedan setear los 2 colores entre los cuales se producirá el cambio.<br />
En este ejemplo pueden ver 3 casos, uno donde se muestra el valor por defecto, otro donde se cambia entre dos colores dados por el usuario y el último un efecto que se genera con muy poco código y un poco de imaginacion<br />
Para ver los ejemplos en funcionamiento <a href="http://dakoo.cl/ejemplos/highlight/highlight.html">entra aca</a><br />
El código del primer ejemplo es este</p>
<pre lang="javascript" line="1">
   $('primero').addEvent('click', function(){
      $('primero').highlight();
  });
</pre>
<p>El del segundo</p>
<pre lang="javascript" line="1">
$('segundo').addEvent('click', function(){
$('segundo').highlight('#f00','#000');
});
</pre>
<p>Mientras que el último es</p>
<pre lang="javascript" line="1">
$$('.item').each(function(item, index){
item.addEvent('mouseover', function(){
item.highlight('#f00','#000');
});
});
</pre>
<p>Como ven el código que se escribe es mínimo para un efecto bastante llamativo</p>
<p>Si quieren ver el codigo completo <a href="http://dakoo.cl/ejemplos/highlight/highlight.rar">descarguenlo de aquí</a></p>
<p>Saludos tuto</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dakoo.cl/mootools-highlight-bueno-bonito-y-barato/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->