<?xml version="1.0" encoding="UTF-8"?>
<rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>unijimpe</title>
	<atom:link href="http://blog.unijimpe.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unijimpe.net</link>
	<description>Arti­culos, tutoriales y noticias acerca de PHP, ActionScript, Ajax, Flash, WordPress, Google, Adsense...</description>
	<pubDate>Wed, 25 Jun 2008 03:37:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<image><link>http://blog.unijimpe.net</link><url>http://samples.unijimpe.net/logo-unijimpe.jpg</url><title>unijimpe</title></image><item>
		<title>Mootools Calendar</title>
		<link>http://feed.unijimpe.net/~r/unijimpe/~3/319382615/</link>
		<comments>http://blog.unijimpe.net/mootools-calendar/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 03:37:57 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Mootools]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=856</guid>
		<description><![CDATA[Hoy les presente un plugin para Mootools el cual les permitirá insertar rápidamente un calendario en nuestros formularios y con un resultado altamente atractivo y profesional. Se trata de Calendar una clase que permite incluir un selector de fecha no-obstrusivo y accesible.

Como usar Mootools Calendar
Lo primero es descargar la ultima versión de esta librería en [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy les presente un plugin para <strong>Mootools</strong> el cual les permitirá insertar rápidamente un calendario en nuestros formularios y con un resultado altamente atractivo y profesional. Se trata de <a href="http://www.electricprism.com/aeron/calendar/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.electricprism.com');">Calendar</a> una clase que permite incluir un selector de fecha no-obstrusivo y accesible.</p>
<p style="text-align:center;"><a href="http://samples.unijimpe.net/moocalendar/"><img src="http://blog.unijimpe.net/wp-content/uploads/2008/06/moocalendar.gif" alt="" title="moocalendar" width="193" height="198" /></a></p>
<p><strong>Como usar Mootools Calendar</strong><br />
Lo primero es descargar la ultima versión de esta librería en <a href="http://www.electricprism.com/aeron/calendar/js/calendar.js" onclick="javascript:pageTracker._trackPageview ('/outbound/www.electricprism.com');">calendar.js</a>, además de ello es necesario tener Mootools el cual lo pueden descargar desde <a href="http://www.electricprism.com/aeron/calendar/js/mootools.js" onclick="javascript:pageTracker._trackPageview ('/outbound/www.electricprism.com');">mootools.js</a>, luego de ello debes crear un archivo CSS con los estilos que se aplicarán al calendario.</p>
<p>El siguiente paso es adjuntar las librerías Javascript a nuestro HTML y posteriormente los archivos CSS que contienen los estilos para nuestra página y nuestro calendario. </p>
<div class="syntax_hilite">
<div id="html-5">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Incluimos el HTML --&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"styles.css"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"calendar.css"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Incluimos los Javascript --&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"js/mootools.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"js/calendar.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El siguiente paso es crear nuestro formulario en el cual debemos incluir un campo de texto el cual contendrá a nuestro selector de fechas.</p>
<div class="syntax_hilite">
<div id="html-6">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"fecha"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"fecha"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"16"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Finalmente inicializamos el Calendario con una llamada al objeto Calendar el cual recibe como parámetros el identificador del campo al cual deseamos asignar el calendario y luego el formato en el cual deseamos se muestren las fechas.</p>
<div class="syntax_hilite">
<div id="html-7">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">window.addEvent('domready', function() { </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; &nbsp; myCal = new Calendar({ fecha: 'd/m/Y' });</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">});</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Luego unimos todos los elementos para obtener el código final para mostrar un selector de fechas en nuestros formulario, todo de forma rápida y sencilla. Esta inicialización lo hacemos en el evento <strong>domready</strong> que es cuando se ha terminado de interpretar el <em>html</em> de nuestro web.</p>
<div class="syntax_hilite">
<div id="html-8">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>Mootools Calendar<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"styles.css"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"calendar.css"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"js/mootools.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"js/calendar.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">window.addEvent('domready', function() {</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;myCal = new Calendar({ fecha: 'd/m/Y' });</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">});</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">&lt;h3&gt;</span></a></span>AGREGAR GASTO <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h3&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">&lt;form</span></a> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">"post"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"registro"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">Fecha:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"fecha"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"fecha"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"16"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Desde luego lo que queda en adelante es agregarle los estilos de acuerdo al diseño de nuestro web y adecuarlo al formulario que tenemos. Les dejo un ejemplo en <a href="http://samples.unijimpe.net/moocalendar/">moocalendar</a> y finalmente los archivos fuente de este ejemplo para que lo descarguen.</p>
<p style="text-align:center;"><a href="http://www.box.net/shared/hqvq14w8wc" onclick="javascript:pageTracker._trackPageview ('/outbound/www.box.net');"><img src="http://blog.unijimpe.net/btdown.png" border="0"></a></p>
        <p style="font-size: 10px;border-top: 1px solid rgb(153, 153, 153);margin-top=12px;padding-top:6px;">&copy; 2006 - 2008 <a href="http://blog.unijimpe.net">unijimpe</a> - Utiliza este feed solo para uso personal. Partes de este feed pueden ser utilizados mencionando al autor. No esta permitido publicar enteramente este feed para uso comercial sin permiso del autor. Para mas información visita <a href="http://blog.unijimpe.net">unijimpe</a></p><br />
                                                                    
<p><a href="http://feed.unijimpe.net/~a/unijimpe?a=m6mJT4"><img src="http://feed.unijimpe.net/~a/unijimpe?i=m6mJT4" border="0"></img></a></p><div class="feedflare">
<a href="http://feed.unijimpe.net/~f/unijimpe?a=s4tO0I"><img src="http://feed.unijimpe.net/~f/unijimpe?i=s4tO0I" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=cwrnJi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=cwrnJi" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=ccCeLi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=ccCeLi" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=ZJB5ti"><img src="http://feed.unijimpe.net/~f/unijimpe?i=ZJB5ti" border="0"></img></a>
</div><img src="http://feed.unijimpe.net/~r/unijimpe/~4/319382615" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/mootools-calendar/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.unijimpe.net/mootools-calendar/</feedburner:origLink></item>
		<item>
		<title>Trabajo: Web Developer</title>
		<link>http://feed.unijimpe.net/~r/unijimpe/~3/317872149/</link>
		<comments>http://blog.unijimpe.net/trabajo-web-developer/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 06:01:29 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
		
		<category><![CDATA[Anuncios]]></category>

		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=862</guid>
		<description><![CDATA[Bluemetal, empresa interactiva, con presencia en Estados Unidos, Chile, Italia y Perú, especializada en el desarrollo de soluciones para Internet y medios digitales, está requiriendo personal idóneo para ocupar el puesto de Desarrollador Web.

Descripción
Los candidatos deberán tener una experiencia no menor de 3 años en el desarrollo de Webs dinámicas y/o aplicaciones.
Es preferible si el [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bluemetalcorp.com" onclick="javascript:pageTracker._trackPageview ('/outbound/www.bluemetalcorp.com');">Bluemetal</a>, empresa interactiva, con presencia en Estados Unidos, Chile, Italia y Perú, especializada en el desarrollo de soluciones para Internet y medios digitales, está requiriendo personal idóneo para ocupar el puesto de <em>Desarrollador Web</em>.</p>
<p style="text-align:center;"><a href="http://www.bluemetalcorp.com" onclick="javascript:pageTracker._trackPageview ('/outbound/www.bluemetalcorp.com');"><img src="http://blog.unijimpe.net/wp-content/uploads/2008/06/bluemetal.jpg" alt="" title="bluemetal" width="48" height="48"  /></a></p>
<p><strong>Descripción</strong><br />
Los candidatos deberán tener una experiencia no menor de 3 años en el desarrollo de Webs dinámicas y/o aplicaciones.</p>
<p>Es preferible si el postulante tiene algún titulo de Analista y/o programador de sistemas, pero no es requisito indispensable.</p>
<p>El puesto involucrara trabajar con el equipo de producción y desarrollo para construir sitios Web, aplicaciones y mantenimientos de proyectos ya existentes.</p>
<p>Actualmente no se consideran candidatos internacionales por lo que el postulante debe residir en <em>Lima, Perú</em>.</p>
<p><strong>Requisitos</strong><br />
Se requiere de las siguientes características:</p>
<ul>
<li>Experiencia de 2+ años en PHP</li>
<li>Experiencia de 2+ años en diseño de base de datos</li>
<li>Experiencia de 2+ años en HTML/XHTML/DHTML/JavaScript/AJAX</li>
<li>Experiencia con MySQL</li>
<li>Conocimiento y experiencia con sistemas de código/control de versiones</li>
<li>Experiencia en los sistemas operativos Windows/Linux y servidores Web.</li>
<li>Familiaridad en la integración de Adobe Flash (ActionScript 1, 2 y 3) y lenguajes de servidor.</li>
</ul>
<p><strong>¿Cómo Postular?</strong><br />
Los candidatos favor de enviar Curriculum Vitae a: <a href="mailto:employee@bluemetalcorp.com">employee@bluemetalcorp.com</a> o publicar Curriculum Vitae en: <a href="http://www.bluemetalcorp.com/#jobs" onclick="javascript:pageTracker._trackPageview ('/outbound/www.bluemetalcorp.com');">http://www.bluemetalcorp.com/#jobs</a>.</p>
        <p style="font-size: 10px;border-top: 1px solid rgb(153, 153, 153);margin-top=12px;padding-top:6px;">&copy; 2006 - 2008 <a href="http://blog.unijimpe.net">unijimpe</a> - Utiliza este feed solo para uso personal. Partes de este feed pueden ser utilizados mencionando al autor. No esta permitido publicar enteramente este feed para uso comercial sin permiso del autor. Para mas información visita <a href="http://blog.unijimpe.net">unijimpe</a></p><br />
                                                                    
<p><a href="http://feed.unijimpe.net/~a/unijimpe?a=d1vPMR"><img src="http://feed.unijimpe.net/~a/unijimpe?i=d1vPMR" border="0"></img></a></p><div class="feedflare">
<a href="http://feed.unijimpe.net/~f/unijimpe?a=oBn1rI"><img src="http://feed.unijimpe.net/~f/unijimpe?i=oBn1rI" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=iUdT0i"><img src="http://feed.unijimpe.net/~f/unijimpe?i=iUdT0i" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=hquRpi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=hquRpi" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=WCbdgi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=WCbdgi" border="0"></img></a>
</div><img src="http://feed.unijimpe.net/~r/unijimpe/~4/317872149" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/trabajo-web-developer/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.unijimpe.net/trabajo-web-developer/</feedburner:origLink></item>
		<item>
		<title>Enviar email multiple con PHP</title>
		<link>http://feed.unijimpe.net/~r/unijimpe/~3/317860952/</link>
		<comments>http://blog.unijimpe.net/enviar-email-multiple-con-php/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 05:37:36 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=859</guid>
		<description><![CDATA[En algunas ocasiones nos topamos con la necesidad de enviar email a una lista de correo, esto lo podemos hacer utilizando la librería PHPMailer el cual nos permite enviar emails con algunas opciones avanzadas para este tipo de labores.

Extraer datos de los destinatarios 
Sea que tenemos una lista de clientes registrados en una base de [...]]]></description>
			<content:encoded><![CDATA[<p>En algunas ocasiones nos topamos con la necesidad de enviar email a una lista de correo, esto lo podemos hacer utilizando la librería <a href="http://blog.unijimpe.net/introduccion-a-phpmailer/">PHPMailer</a> el cual nos permite enviar emails con algunas opciones avanzadas para este tipo de labores.</p>
<p style="text-align:center;"><img src="http://blog.unijimpe.net/wp-content/uploads/2008/06/mail-list.jpg" alt="" title="mail-list" width="128" height="128"  /></p>
<p><strong>Extraer datos de los destinatarios </strong><br />
Sea que tenemos una lista de clientes registrados en una base de datos <em>tienda</em> en la tabla <em>clientes</em> y deseamos enviarle un comunicado a cada uno de ellos de forma personalizada. Lo primero que tenemos que hacer es realizar la consulta a la base de datos y extraer los datos de estos clientes.</p>
<div class="syntax_hilite">
<div id="php-11">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><a href="http://www.php.net/mysql_connect"><span style="color:#000066;">mysql_connect</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"localhost"</span>, <span style="color:#FF0000;">"usuario"</span>, <span style="color:#FF0000;">"password"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><a href="http://www.php.net/mysql_select_db"><span style="color:#000066;">mysql_select_db</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"tienda"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$result</span> = <a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"SELECT nombres, email FROM clientes"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#616100;">while</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span> = <a href="http://www.php.net/mysql_fetch_array"><span style="color:#000066;">mysql_fetch_array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color:#FF9933; font-style:italic;">// echo $row[&quot;nombres&quot;];</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Integrando con PHPMailer</strong><br />
El siguiente paso es hacer el envío de los correos, para ello primero incluimos la clase <em>class.phpmailer.php</em>, definimos los datos del remitente y creamos el mensaje personalizado en html y texto a  enviar a la lista.</p>
<div class="syntax_hilite">
<div id="php-12">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#616100;">require</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"class.phpmailer.php"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$mail</span> = <span style="color:#000000; font-weight:bold;">new</span> PHPMailer<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">Host</span> = <span style="color:#FF0000;">"smtp1.example.com"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">From</span> = <span style="color:#FF0000;">"list@domain.com"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">FromName</span> = <span style="color:#FF0000;">"List manager"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">Subject</span> = <span style="color:#FF0000;">"Subject del correo"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><a href="http://www.php.net/mysql_connect"><span style="color:#000066;">mysql_connect</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"localhost"</span>, <span style="color:#FF0000;">"usuario"</span>, <span style="color:#FF0000;">"password"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><a href="http://www.php.net/mysql_select_db"><span style="color:#000066;">mysql_select_db</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"tienda"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$result</span> = <a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"SELECT nombres, email FROM clientes"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#616100;">while</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span> = <a href="http://www.php.net/mysql_fetch_array"><span style="color:#000066;">mysql_fetch_array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// HTML body </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$body</span> = <span style="color:#FF0000;">"Hola &lt;strong&gt;"</span>.<span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"nombres"</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">"&lt;/strong&gt;, "</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$body</span>.= <span style="color:#FF0000;">"&lt;p&gt;Les comunicamos el nuevo servicio... &lt;p&gt;"</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$body</span>.= <span style="color:#FF0000;">"&lt;em&gt;List manager&lt;/em&gt;"</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Text body</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$text</span> = <span style="color:#FF0000;">"Hola "</span>.<span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"nombres"</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">", <span style="color:#000099; font-weight:bold;">\n</span><span style="color:#000099; font-weight:bold;">\n</span>"</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$text</span>.= <span style="color:#FF0000;">"Les comunicamos el nuevo servicio...<span style="color:#000099; font-weight:bold;">\n</span><span style="color:#000099; font-weight:bold;">\n</span>"</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$text</span>.= <span style="color:#FF0000;">"List manager"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Configurar Email</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">Body</span> = <span style="color:#0000FF;">$body</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">AltBody</span> = <span style="color:#0000FF;">$text</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">AddAddress</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"email"</span><span style="color:#006600; font-weight:bold;">&#93;</span>, <span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"nombres"</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// Enviar el email</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>!<span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">Send</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Error al enviar a: "</span> . <span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"email"</span><span style="color:#006600; font-weight:bold;">&#93;</span> . <span style="color:#FF0000;">"&lt;br&gt;"</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;&nbsp; &nbsp;<span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; <span style="color:#0000FF;">$mail</span>-&gt;<span style="color:#006600;">ClearAddresses</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;&nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Nótese que incluimos la dirección del destinatario con el método <em>AddAddress</em> en donde le pasamos el email y el nombre de la persona a la que deseamos enviar el email y finalmente utilizamos <em>ClearAddresses</em> el cual elimina las email a los cuales se ha enviado anteriormente el mensaje, de esta forma le llegará a cada usuario una mensaje único si necesidad de mostrar a quienes mas se esta enviando el mensaje.</p>
<p><strong>Observaciones</strong><br />
En el caso que se quiera enviar a listas muy grandes, se deben cambiar algunos parámetros de configuración de PHP por ejemplo el tiempo de ejecución para que no se detenga el envío si el tiempo de proceso excede el tiempo de configuración. Una solución es hacer el envío en bloques de 500 o en bloques de 1000 por vez por ejemplo con lo cual no se superará el tiempo limite.</p>
<p>Finalmente les dejo los archivos fuente para que lo descarguen y realicen sus propias pruebas.</p>
<p style="text-align:center;"><a href="http://www.box.net/shared/pvjb4hv4s0" onclick="javascript:pageTracker._trackPageview ('/outbound/www.box.net');"><img src="http://blog.unijimpe.net/btdown.png" border="0"></a></p>
        <p style="font-size: 10px;border-top: 1px solid rgb(153, 153, 153);margin-top=12px;padding-top:6px;">&copy; 2006 - 2008 <a href="http://blog.unijimpe.net">unijimpe</a> - Utiliza este feed solo para uso personal. Partes de este feed pueden ser utilizados mencionando al autor. No esta permitido publicar enteramente este feed para uso comercial sin permiso del autor. Para mas información visita <a href="http://blog.unijimpe.net">unijimpe</a></p><br />
                                                                    
<p><a href="http://feed.unijimpe.net/~a/unijimpe?a=yWxWHw"><img src="http://feed.unijimpe.net/~a/unijimpe?i=yWxWHw" border="0"></img></a></p><div class="feedflare">
<a href="http://feed.unijimpe.net/~f/unijimpe?a=oZ9STI"><img src="http://feed.unijimpe.net/~f/unijimpe?i=oZ9STI" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=r7sYOi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=r7sYOi" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=UXe5Ii"><img src="http://feed.unijimpe.net/~f/unijimpe?i=UXe5Ii" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=2SXoIi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=2SXoIi" border="0"></img></a>
</div><img src="http://feed.unijimpe.net/~r/unijimpe/~4/317860952" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/enviar-email-multiple-con-php/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.unijimpe.net/enviar-email-multiple-con-php/</feedburner:origLink></item>
		<item>
		<title>PHP Feed Generator</title>
		<link>http://feed.unijimpe.net/~r/unijimpe/~3/314338221/</link>
		<comments>http://blog.unijimpe.net/php-feed-generator/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 04:45:56 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=857</guid>
		<description><![CDATA[PHP Universal Feed Generator es una clase escrita en PHP 5 que permite crear Feeds en formato RSS 2.0, RSS 1.0 y Atom 1.0 de forma sencilla y cumpliendo los estándar de los Feeds.

Entre las características que podemos enumerar para esta clase tenemos:

Genera Feeds RSS 1.0, RSS 2.0 y ATOM.
Todos los feeds se pueden validar [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ajaxray.com/blog/2008/03/08/php-universal-feed-generator-supports-rss-10-rss-20-and-atom/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.ajaxray.com');">PHP Universal Feed Generator</a> es una clase escrita en PHP 5 que permite crear <strong>Feeds</strong> en formato <em>RSS 2.0</em>, <em>RSS 1.0</em> y <em>Atom 1.0</em> de forma sencilla y cumpliendo los estándar de los Feeds.</p>
<p style="text-align:center;"><img src="http://blog.unijimpe.net/wp-content/uploads/2008/06/feed-php.jpg" alt="" title="feed-php" width="100" height="101"  /></p>
<p>Entre las características que podemos enumerar para esta clase tenemos:</p>
<ul>
<li>Genera Feeds RSS 1.0, RSS 2.0 y ATOM.</li>
<li>Todos los feeds se pueden validar en <a href="http://feedvalidator.org/" onclick="javascript:pageTracker._trackPageview ('/outbound/feedvalidator.org');">Feed Validator</a></li>
<li>Soporte para todos los elementos de un feed.</li>
<li>Conversión automática de las fechas.</li>
<li>Desarrollado con clases en PHP5</li>
</ul>
<p><strong>Generando nuestros Feeds</strong><br />
Lo primero es descargar los archivos fuente desde <a href="http://www.ajaxray.com/blog/downloads/feedwriter" onclick="javascript:pageTracker._trackPageview ('/outbound/www.ajaxray.com');">FeedWriter.zip</a>, extraen el contenido del ZIP recien descargado y encontrarán <em>FeedWriter.php</em> y <em>FeedItem.php</em> que contienen las clases necesarias para la creación de los Feeds.</p>
<p>Lo primero es incluir el archivo <em>FeedWriter.php</em>, luego creamos una instancia de la clase <strong>FeedWriter</strong> en donde definimos el tipo de Feed (RSS2, RSS1, ATOM), luego procedemos a definir los parámetros del RSS a generar y finalmente consultamos nuestra base de datos para extraer la información y generar nuestro Feed.</p>
<div class="syntax_hilite">
<div id="php-14">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#616100;">include</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"FeedWriter.php"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#FF9933; font-style:italic;">// creamos una instancia de la clase</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$myFeed</span> = <span style="color:#000000; font-weight:bold;">new</span> FeedWriter<span style="color:#006600; font-weight:bold;">&#40;</span>RSS2<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#FF9933; font-style:italic;">// definimos el Feed</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$myFeed</span>-&gt;<span style="color:#006600;">setTitle</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"unijimpe"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$myFeed</span>-&gt;<span style="color:#006600;">setLink</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"http://blog.unijimpe.net/feed/"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$myFeed</span>-&gt;<span style="color:#006600;">setDescription</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"Arti­culos, tutoriales..."</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#FF9933; font-style:italic;">// Extraemos la info de la Base de Datos</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><a href="http://www.php.net/mysql_connect"><span style="color:#000066;">mysql_connect</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"localhos"</span>, <span style="color:#FF0000;">"user"</span>, <span style="color:#FF0000;">"password"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><a href="http://www.php.net/mysql_select_db"><span style="color:#000066;">mysql_select_db</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"nombre_basededatos"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$result</span> = <a href="http://www.php.net/mysql_query"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"SELECT * FROM news"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#616100;">while</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span> = <a href="http://www.php.net/mysql_fetch_assoc"><span style="color:#000066;">mysql_fetch_assoc</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color:#FF9933; font-style:italic;">// creamos una instancia de Item</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color:#0000FF;">$myItem</span> = <span style="color:#0000FF;">$myFeed</span>-&gt;<span style="color:#006600;">createNewItem</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color:#0000FF;">$myItem</span>-&gt;<span style="color:#006600;">setTitle</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"titulo"</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color:#0000FF;">$myItem</span>-&gt;<span style="color:#006600;">setLink</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"link"</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color:#0000FF;">$myItem</span>-&gt;<span style="color:#006600;">setDate</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"fecha"</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color:#0000FF;">$myItem</span>-&gt;<span style="color:#006600;">setDescription</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$row</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"descripcion"</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color:#0000FF;">$myFeed</span>-&gt;<span style="color:#006600;">addItem</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$myItem</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#FF9933; font-style:italic;">// generamos el Feed</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#0000FF;">$myFeed</span>-&gt;<span style="color:#006600;">genarateFeed</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como pueden ver la generación es muy sencilla y rápida, además entre los archivos de descargar figuran varios ejemplos los cuales podemos modificar y adaptar rápidamente a nuestras necesidades. Sin duda una herramienta que nos facilitará mucho el trabajo de generar Feeds.</p>
        <p style="font-size: 10px;border-top: 1px solid rgb(153, 153, 153);margin-top=12px;padding-top:6px;">&copy; 2006 - 2008 <a href="http://blog.unijimpe.net">unijimpe</a> - Utiliza este feed solo para uso personal. Partes de este feed pueden ser utilizados mencionando al autor. No esta permitido publicar enteramente este feed para uso comercial sin permiso del autor. Para mas información visita <a href="http://blog.unijimpe.net">unijimpe</a></p><br />
                                                                    
<p><a href="http://feed.unijimpe.net/~a/unijimpe?a=9xlqM2"><img src="http://feed.unijimpe.net/~a/unijimpe?i=9xlqM2" border="0"></img></a></p><div class="feedflare">
<a href="http://feed.unijimpe.net/~f/unijimpe?a=2kkAPI"><img src="http://feed.unijimpe.net/~f/unijimpe?i=2kkAPI" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=W3N7Ni"><img src="http://feed.unijimpe.net/~f/unijimpe?i=W3N7Ni" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=kKMlCi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=kKMlCi" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=625CIi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=625CIi" border="0"></img></a>
</div><img src="http://feed.unijimpe.net/~r/unijimpe/~4/314338221" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/php-feed-generator/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.unijimpe.net/php-feed-generator/</feedburner:origLink></item>
		<item>
		<title>Precarga multiple en AS3</title>
		<link>http://feed.unijimpe.net/~r/unijimpe/~3/303453529/</link>
		<comments>http://blog.unijimpe.net/precarga-multiple-en-as3/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 04:49:05 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=855</guid>
		<description><![CDATA[BulkLoader es una clase escrita en AS3 que te permitirá cargar y manejar múltiples archivos de manera sencilla. Esta clase te permitirá cargar múltiples archivos de diferente tipo en una interface unificada, accediendo a los eventos de carga en la misma instancia.
Utilizando BulkLoader
Lo primero es descargar la ultima versión de BulkLoader, extraen los archivos y [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/bulk-loader/" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">BulkLoader</a> es una clase escrita en AS3 que te permitirá cargar y manejar múltiples archivos de manera sencilla. Esta clase te permitirá cargar múltiples archivos de diferente tipo en una interface unificada, accediendo a los eventos de carga en la misma instancia.</p>
<p><strong>Utilizando BulkLoader</strong><br />
Lo primero es <a href="http://code.google.com/p/bulk-loader/downloads/list" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">descargar</a> la ultima versión de BulkLoader, extraen los archivos y en la carpeta <strong>src</strong> se encuentran las clases necesarias para el uso de esta librería. </p>
<p>Lo primero es importar las clases <em>BulkLoader</em> y <em>BulkProgressEvent</em> y posteriormente creamos una instancia de la clase BulkLoader, al cual le asignamos un nombre, en este caso <em>mainLoader</em>:</p>
<div class="syntax_hilite">
<div id="actionscript-21">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #0066CC;">import</span> br.<span style="color: #006600;">com</span>.<span style="color: #006600;">stimuli</span>.<span style="color: #006600;">loading</span>.<span style="color: #006600;">BulkLoader</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #0066CC;">import</span> br.<span style="color: #006600;">com</span>.<span style="color: #006600;">stimuli</span>.<span style="color: #006600;">loading</span>.<span style="color: #006600;">BulkProgressEvent</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #000000; font-weight: bold;">var</span> loader:BulkLoader = <span style="color: #000000; font-weight: bold;">new</span> BulkLoader<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"mainLoader"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>A continuación agregamos los items o elementos que deseamos cargar, pueden ser archivos jpg, gif, png, xml, mp3, flv, etc. Para ello utilizamos el método <strong>add</strong> donde asignamos la ruta a cargar y un nombre de id para recuperar los datos cargados posteriormente.</p>
<div class="syntax_hilite">
<div id="actionscript-22">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"background.jpg"</span>, <span style="color: #66cc66;">&#123;</span>id: <span style="color: #ff0000;">"bg"</span><span style="color: #66cc66;">&#125;</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; font-size: 12px;">loader.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"menu.xml"</span>, <span style="color: #66cc66;">&#123;</span>id:<span style="color: #ff0000;">"menu"</span><span style="color: #66cc66;">&#125;</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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"sound.mp3"</span>, <span style="color: #66cc66;">&#123;</span>id: <span style="color: #ff0000;">"sound"</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El siguiente paso es agregar los detectores de eventos o listeners (<em>COMPLETE</em>, <em>PROGRESS</em>, <em>ERROR</em>)  con los cuales podemos detectar el progreso de la carga y el termino de la misma.</p>
<div class="syntax_hilite">
<div id="actionscript-23">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #808080; font-style: italic;">// para la carga de todos los archivos</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>BulkLoader.<span style="color: #006600;">COMPLETE</span>, onLoaded<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>BulkLoader.<span style="color: #006600;">PROGRESS</span>, onProgress<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; font-size: 12px;">loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>BulkLoader.<span style="color: #0066CC;">ERROR</span>, onError<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #808080; font-style: italic;">// para la carga de uno de los elementos</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #0066CC;">get</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"bg"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>,onBgLoaded<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #0066CC;">get</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"bg"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">PROGRESS</span>,onBgProgress<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; font-size: 12px;">loader.<span style="color: #0066CC;">get</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"bg"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #0066CC;">ERROR</span>,onBgError<span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Luego iniciamos la carga utilizando el método <em>start</em>.</p>
<div class="syntax_hilite">
<div id="actionscript-24">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Finalmente implementamos las funciones asociadas a los detectores de eventos y obtenemos los archivos cargados, para ello podemos utilizar <em>getBitmap</em>, <em>getSound</em>, <em>getXML</em>, <em>getText</em>, <em>getNetStream</em>, <em>getSound</em>, <em>getMovieClip</em> de acuerdo al archivo que estemos cargando.</p>
<div class="syntax_hilite">
<div id="actionscript-25">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #000000; font-weight: bold;">function</span> onLoaded<span style="color: #66cc66;">&#40;</span>evt:Event<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; font-size: 12px;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// extraemos la imagen </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> mcBg:Bitmap = loader.<span style="color: #006600;">getBitmap</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"bg"</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; font-size: 12px;">&nbsp; &nbsp;addChild<span style="color: #66cc66;">&#40;</span>mcBg<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// extraemos el sonido</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> sonido:<span style="color: #0066CC;">Sound</span> = loader.<span style="color: #006600;">getSound</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"sound"</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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;sonido.<span style="color: #0066CC;">play</span><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; font-size: 12px;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// extraemos el XML</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> xmlMenu:<span style="color: #0066CC;">XML</span> = loader.<span style="color: #006600;">getXML</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"menu"</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; font-size: 12px;">&nbsp; &nbsp;<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>xmlMenu<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Luego uniendo todos los elementos, obtenemos nuestro precargador de múltiples archivos.</p>
<div class="syntax_hilite">
<div id="actionscript-26">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #0066CC;">import</span> br.<span style="color: #006600;">com</span>.<span style="color: #006600;">stimuli</span>.<span style="color: #006600;">loading</span>.<span style="color: #006600;">BulkLoader</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #0066CC;">import</span> br.<span style="color: #006600;">com</span>.<span style="color: #006600;">stimuli</span>.<span style="color: #006600;">loading</span>.<span style="color: #006600;">BulkProgressEvent</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #000000; font-weight: bold;">var</span> loader:BulkLoader = <span style="color: #000000; font-weight: bold;">new</span> BulkLoader<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"mainLoader"</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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"background.jpg"</span>, <span style="color: #66cc66;">&#123;</span>id: <span style="color: #ff0000;">"bg"</span><span style="color: #66cc66;">&#125;</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; font-size: 12px;">loader.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"menu.xml"</span>, <span style="color: #66cc66;">&#123;</span>id:<span style="color: #ff0000;">"menu"</span><span style="color: #66cc66;">&#125;</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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"sound.mp3"</span>, <span style="color: #66cc66;">&#123;</span>id: <span style="color: #ff0000;">"sound"</span><span style="color: #66cc66;">&#125;</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; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>BulkLoader.<span style="color: #006600;">COMPLETE</span>, onLoaded<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; font-size: 12px;">loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>BulkLoader.<span style="color: #006600;">PROGRESS</span>, onProgress<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #000000; font-weight: bold;">function</span> onLoaded<span style="color: #66cc66;">&#40;</span>evt:Event<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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// extraemos la imagen </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> mcBg:Bitmap = loader.<span style="color: #006600;">getBitmap</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"bg"</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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;addChild<span style="color: #66cc66;">&#40;</span>mcBg<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; font-size: 12px;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// extraemos el sonido</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> sonido:<span style="color: #0066CC;">Sound</span> = loader.<span style="color: #006600;">getSound</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"sound"</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; font-size: 12px;">&nbsp; &nbsp;sonido.<span style="color: #0066CC;">play</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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// extraemos el XML</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> xmlMenu:<span style="color: #0066CC;">XML</span> = loader.<span style="color: #006600;">getXML</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"menu"</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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp;<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>xmlMenu<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; font-size: 12px;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> onAllItemsProgress<span style="color: #66cc66;">&#40;</span>evt:BulkProgressEvent<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; font-size: 12px;">&nbsp; &nbsp;<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>evt.<span style="color: #0066CC;">bytesLoaded</span> + <span style="color: #ff0000;">" - "</span> + evt.<span style="color: #0066CC;">bytesTotal</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; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como pueden ver es muy sencillo el uso de esta clase y puede facilitar y ahorrar tiempo en la implementación de sitios con acceso a múltiples tipo de datos.</p>
        <p style="font-size: 10px;border-top: 1px solid rgb(153, 153, 153);margin-top=12px;padding-top:6px;">&copy; 2006 - 2008 <a href="http://blog.unijimpe.net">unijimpe</a> - Utiliza este feed solo para uso personal. Partes de este feed pueden ser utilizados mencionando al autor. No esta permitido publicar enteramente este feed para uso comercial sin permiso del autor. Para mas información visita <a href="http://blog.unijimpe.net">unijimpe</a></p><br />
                                                                    
<p><a href="http://feed.unijimpe.net/~a/unijimpe?a=vy1cBk"><img src="http://feed.unijimpe.net/~a/unijimpe?i=vy1cBk" border="0"></img></a></p><div class="feedflare">
<a href="http://feed.unijimpe.net/~f/unijimpe?a=FKKinI"><img src="http://feed.unijimpe.net/~f/unijimpe?i=FKKinI" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=NvFcni"><img src="http://feed.unijimpe.net/~f/unijimpe?i=NvFcni" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=jZNoyi"><img src="http://feed.unijimpe.net/~f/unijimpe?i=jZNoyi" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=PxBN2i"><img src="http://feed.unijimpe.net/~f/unijimpe?i=PxBN2i" border="0"></img></a>
</div><img src="http://feed.unijimpe.net/~r/unijimpe/~4/303453529" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/precarga-multiple-en-as3/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.unijimpe.net/precarga-multiple-en-as3/</feedburner:origLink></item>
		<item>
		<title>sIFR: Tipografías en HTML</title>
		<link>http://feed.unijimpe.net/~r/unijimpe/~3/302149964/</link>
		<comments>http://blog.unijimpe.net/sifr-tipografias-en-html/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 02:54:03 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[HTML]]></category>

		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=851</guid>
		<description><![CDATA[sIFR (Scalable Inman Flash Replacement) es una técnica que permite reemplazar elementos de texto HTML  por un equivalente en Flash lo cual permite la inclusión de cualquier tipografía aun si el usuario no tiene instalada la tipografía en su computador.

Utilizando sIFR
Lo primero es descargar sIFR 3, extraemos los archivos donde tenemos una carpeta flash [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mikeindustries.com/sifr/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.mikeindustries.com');">sIFR</a> (<em>Scalable Inman Flash Replacement</em>) es una técnica que permite reemplazar elementos de texto HTML  por un equivalente en Flash lo cual permite la inclusión de cualquier tipografía aun si el usuario no tiene instalada la tipografía en su computador.</p>
<p style="text-align:center;"><a href="http://samples.unijimpe.net/sifr/"><img src="http://blog.unijimpe.net/wp-content/uploads/2008/05/sifr-demo.gif" alt="" title="sifr-demo" width="338" height="151" /></a></p>
<p><strong>Utilizando sIFR</strong><br />
Lo primero es <a href="http://wiki.novemberborn.net/sifr3/nightlies" onclick="javascript:pageTracker._trackPageview ('/outbound/wiki.novemberborn.net');">descargar sIFR 3</a>, extraemos los archivos donde tenemos una carpeta flash donde encontramos un archivo <strong>sifr.fla</strong> el cual debemos abrir en Adobe Flash y cambiar el tipo de letra, seleccionar los caracteres a renderear e incluso podríamos agregarle algunos filtros. Guardamos los cambios y exportamos el archivo. A este archivo recién exportado le damos un nombre, generalmente el nombre de la tipografía seleccionada.</p>
<p style="text-align:center;"><img src="http://blog.unijimpe.net/wp-content/uploads/2008/05/sifr-config.gif" alt="" title="sifr-config" width="450" height="209" /></p>
<p>Luego el siguiente paso es incluir los archivo <em>sIFR-screen.css</em> y <em>sIFR-print.css</em> ubicados en la carpeta <strong>css</strong> en el header del HTML seleccionado:</p>
<div class="syntax_hilite">
<div id="html-34">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"sIFR-screen.css"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">"screen"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"sIFR-print.css"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">"print"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Luego de ello es necesario incluir el archivo javascript <em>sifr.js</em>.</p>
<div class="syntax_hilite">
<div id="html-35">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"sifr.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El tercer y ultimo paso es utilizar el metodo sIFR.replace para reemplazar bloques html por bloques flash que contienen la tipografía seleccionada, la sintaxis para ello es:</p>
<div class="syntax_hilite">
<div id="javascript-36">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">sIFR.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</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; font-size: 12px;">&nbsp; &nbsp; src: <span style="color: #3366CC;">'path-font.swf'</span>,&nbsp; <span style="color: #009900; font-style: italic;">// ruta al swf que contiene la fuente</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; selector: <span style="color: #3366CC;">'html-tag'</span>,&nbsp; <span style="color: #009900; font-style: italic;">// tags a reemplazar</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; css: <span style="color: #3366CC;">'.sIFR-root { prop: value }'</span> <span style="color: #009900; font-style: italic;">// CSS para el flash</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Entonces si por ejemplo hemos creado un archivo llamado monotype.swf y queremos que lo reemplaze a todos los elementos h1, podemos hacerlo mediante:</p>
<div class="syntax_hilite">
<div id="html-37">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">sIFR.replace({ </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; src: 'monotype.swf', </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; selector: 'h1'</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">});</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Luego si deseamos que estos elementos tengan color #FF3366 y que tengan 24px de tamaño, agregamos la propiedad css, de la siguiente manera:</p>
<div class="syntax_hilite">
<div id="html-38">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">sIFR.replace({ </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; src: 'monotype.swf', </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; selector: 'h1',</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; css: '.sIFR-root {color: #FF3366; font-size: 24px; }'</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">});</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora si por ejemplo deseamos reemplazar los elementos que tengan la clase <strong>blue</strong> por la tipografía <em>bookman.swf </em>y la queremos en tamaño <em>14px</em> podemos utilizar:</p>
<div class="syntax_hilite">
<div id="html-39">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">sIFR.replace({ </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; src: 'bookman.swf', </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; selector: '.blue', </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">&nbsp; &nbsp; css: '.sIFR-root {color: #0099FF; font-size: 14px;}'</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">});</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Podemos utilizar varias veces el método <em>sIFR.replace</em> para reemplazar diferentes tipos de letra. Ahora uniendo todos los elementos en un html tenemos el siguiente código, en donde hemos utilizar el método de reemplazo en una sola línea cada una:</p>
<div class="syntax_hilite">
<div id="html-40">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>Demo sIFR<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"sIFR-screen.css"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">"screen"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"stylesheet"</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"sIFR-print.css"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">"print"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"sifr.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">sIFR.replace({ src: 'monotype.swf', selector: 'h1', css: '.sIFR-root {color: #FF3366; font-size: 24px; }' });</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;">sIFR.replace({ src: 'bookman.swf', selector: '.blue', css: '.sIFR-root {color: #0099FF; font-size: 14px;}', forceSingleLine: true, tuneHeight: -9 });</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">&lt;h1&gt;</span></a></span>sIFR: Tipografías en HTML<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h1&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"blue"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>sIFR<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span> (<span style="color: #009900;"><a href="http://december.com/html/4/element/em.html"><span style="color: #000000; font-weight: bold;">&lt;em&gt;</span></a></span>Scalable Inman Flash Replacement<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/em&gt;</span></span>)...<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Pueden ver el resultado de este ejemplo en <a href="http://samples.unijimpe.net/sifr/">Demo sIFR</a>. Les dejo los archivos fuente de este ejemplo para que lo descarguen y puedan hacer sus pruebas.</p>
<p style="text-align:center;"><a href="http://www.box.net/shared/b5fjc6oe8k" onclick="javascript:pageTracker._trackPageview ('/outbound/www.box.net');"><img src="http://blog.unijimpe.net/btdown.png" border="0"></a></p>
<p>Como una observación importante hay que notar que este método es recomendable utilizarlo solo para bloques pequeños y no para todo el html. </p>
<p><strong>Mas Información<br />
</strong></p>
<ul>
<li><a href="http://wiki.novemberborn.net/sifr3/How+to+use" onclick="javascript:pageTracker._trackPageview ('/outbound/wiki.novemberborn.net');">sIFR: How to use </a></li>
<li><a href="http://wiki.novemberborn.net/sifr3/Styling" onclick="javascript:pageTracker._trackPageview ('/outbound/wiki.novemberborn.net');">sIFR: Styling</a></li>
<li><a href="http://wiki.novemberborn.net/sifr3/JavaScript+Methods" onclick="javascript:pageTracker._trackPageview ('/outbound/wiki.novemberborn.net');">sIFR: JavaScript Methods</a> </li>
</ul>
        <p style="font-size: 10px;border-top: 1px solid rgb(153, 153, 153);margin-top=12px;padding-top:6px;">&copy; 2006 - 2008 <a href="http://blog.unijimpe.net">unijimpe</a> - Utiliza este feed solo para uso personal. Partes de este feed pueden ser utilizados mencionando al autor. No esta permitido publicar enteramente este feed para uso comercial sin permiso del autor. Para mas información visita <a href="http://blog.unijimpe.net">unijimpe</a></p><br />
                                                                    
<p><a href="http://feed.unijimpe.net/~a/unijimpe?a=F2Uu7z"><img src="http://feed.unijimpe.net/~a/unijimpe?i=F2Uu7z" border="0"></img></a></p><div class="feedflare">
<a href="http://feed.unijimpe.net/~f/unijimpe?a=V8eCiH"><img src="http://feed.unijimpe.net/~f/unijimpe?i=V8eCiH" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=AmED6h"><img src="http://feed.unijimpe.net/~f/unijimpe?i=AmED6h" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=NWsmrh"><img src="http://feed.unijimpe.net/~f/unijimpe?i=NWsmrh" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=fCwpSh"><img src="http://feed.unijimpe.net/~f/unijimpe?i=fCwpSh" border="0"></img></a>
</div><img src="http://feed.unijimpe.net/~r/unijimpe/~4/302149964" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/sifr-tipografias-en-html/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.unijimpe.net/sifr-tipografias-en-html/</feedburner:origLink></item>
		<item>
		<title>Google AJAX Libraries API</title>
		<link>http://feed.unijimpe.net/~r/unijimpe/~3/299547996/</link>
		<comments>http://blog.unijimpe.net/google-ajax-libraries-api/#comments</comments>
		<pubDate>Wed, 28 May 2008 03:59:14 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
		
		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Google]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Servicios Web]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=849</guid>
		<description><![CDATA[Google AJAX Libraries API es un nuevo servicio mediante el cual Google aprovechando de su gran infraestructura alojará las principales Frameworks Javascript para enlazarlos directamente. Con ello podremos acelerar la carga de nuestras librerías y por consiguiente una mejor velocidad de nuestras web.

Este servicio, tienes varias cualidades muy importantes: 

Uso del Cache del Browser: Si [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/apis/ajaxlibs/" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">Google AJAX Libraries API</a> es un nuevo servicio mediante el cual Google aprovechando de su gran infraestructura alojará las principales <em>Frameworks Javascript</em> para enlazarlos directamente. Con ello podremos acelerar la carga de nuestras librerías y por consiguiente una mejor velocidad de nuestras web.</p>
<p style="text-align:center;"><img src="http://blog.unijimpe.net/wp-content/uploads/2008/05/gajaxapi.gif" alt="" width="178" height="99"  /></p>
<p>Este servicio, tienes varias cualidades muy importantes: </p>
<ul>
<li><strong>Uso del Cache del Browser</strong>: Si un usuario visita una Web, descargará la librería desde Google. Si posteriormente entra a otra web que utiliza la misma librería, esta ya no se descargará nuevamente si no se utilizará la copia en el cache de navegador.</li>
<li><strong>Compresión Gzip</strong>: se encuentran habilitadas las transferencia de datos comprimidas en Gzip con lo cual hay menor transferencia de datos.</li>
<li><strong>Versiones minificadas</strong>: al llamar a una librería, se hará uso de las versiones minificadas, es decir donde se han eliminado los comentarios, saltos de linea, espacios en blanco innecesarios y reemplazado nombres de variables por otras mas cortas. Esto también acelera la carga del archivo.</li>
<li><strong>Archivos distribuidos por en CDN de Google</strong>: se utiliza toda la infraestructura de Google, por lo cual el archivo se puede obtener de cualquiera de lo muchos servidores alrededor del mundo con los que cuenta Google.</li>
<li><strong>Optimización de Header</strong>: se utilizaran <em>headers</em> innecesarios y tampoco se guardaran <em>cookies</em> lo cual es un ahorra de bytes.</li>
</ul>
<p>Inicialmente se han puesto a disposición las librerías mas populares, pero se planea ir aumentando estas a medida que los usuarios lo soliciten. Las librerías disponibles actualmente son: <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">jQuery</a>, <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#prototype" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">prototype</a>, <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#script_aculo_us" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">script.aculo.us</a>, <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#mootools" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">MooTools</a>, <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#dojo" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">dojo</a>.</p>
<p><strong>Como Utilizarlo</strong><br />
La forma mas sencilla de utilizar este servicio es enlazar directamente a los archivos utilizando el tag script como se hace normalmente, por ejemplo si deseamos cargar MooTools.</p>
<div class="syntax_hilite">
<div id="html-42">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- versión minificada --&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools-yui-compressed.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal; font-size: 12px;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- versión normal --&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-size: 12px;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Para mayor información acerca de este servicio pueden leer la documentación en <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html" onclick="javascript:pageTracker._trackPageview ('/outbound/code.google.com');">Developer's Guide</a>, también pueden leer una explicación mas detallada del modo de uso en <a href="http://www.anieto2k.com/2008/05/27/google-ajax-libraries-api-ajax-sobre-la-arquitectura-google/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.anieto2k.com');">Google Ajax Libraries API, ajax sobre la arquitectura Google</a> y finalmente les dejo un video con la presentación y explicación del funcionamiento de esta librería.</p>
<p>
<object type="application/x-shockwave-flash" width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/4F4Jb1ssEvI" />
<embed src="http://www.youtube.com/v/4F4Jb1ssEvI" type="application/x-shockwave-flash" width="425" height="355" >
</object>
</p>
        <p style="font-size: 10px;border-top: 1px solid rgb(153, 153, 153);margin-top=12px;padding-top:6px;">&copy; 2006 - 2008 <a href="http://blog.unijimpe.net">unijimpe</a> - Utiliza este feed solo para uso personal. Partes de este feed pueden ser utilizados mencionando al autor. No esta permitido publicar enteramente este feed para uso comercial sin permiso del autor. Para mas información visita <a href="http://blog.unijimpe.net">unijimpe</a></p><br />
                                                                    
<p><a href="http://feed.unijimpe.net/~a/unijimpe?a=0qPSO4"><img src="http://feed.unijimpe.net/~a/unijimpe?i=0qPSO4" border="0"></img></a></p><div class="feedflare">
<a href="http://feed.unijimpe.net/~f/unijimpe?a=3y6kgH"><img src="http://feed.unijimpe.net/~f/unijimpe?i=3y6kgH" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=g6XWvh"><img src="http://feed.unijimpe.net/~f/unijimpe?i=g6XWvh" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=po3dxh"><img src="http://feed.unijimpe.net/~f/unijimpe?i=po3dxh" border="0"></img></a> <a href="http://feed.unijimpe.net/~f/unijimpe?a=AO9qXh"><img src="http://feed.unijimpe.net/~f/unijimpe?i=AO9qXh" border="0"></img></a>
</div><img src="http://feed.unijimpe.net/~r/unijimpe/~4/299547996" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.unijimpe.net/google-ajax-libraries-api/feed/</wfw:commentRss>
		<feedburner:origLink>http://blog.unijimpe.net/google-ajax-libraries-api/</feedburner:origLink></item>
		<item>
		<title>Adobe Dreamweaver Beta</title>
		<link>http://feed.unijimpe.net/~r/unijimpe/~3/298885757/</link>
		<comments>http://blog.unijimpe.net/adobe-dreamweaver-beta/#comments</comments>
		<pubDate>Tue, 27 May 2008 06:31:39 +0000</pubDate>
		<dc:creator>unijimpe</dc:creator>
		
		<category><![CDATA[Dreamweaver]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.unijimpe.net/?p=847</guid>
		<description><![CDATA[Adobe Dreamweaver la mas popular herramienta de desarrollo web y mi preferido siempre ha estado a la vanguardia como herramienta de desarrollo web y ahora acaban de lanzar la Adobe Dreamweaver Beta (Stiletto) publica para que los usuarios puedan probarlo y así dar sus observaciones y sugerencias.

Novedades
Hay muchas cosas interesantes en esta nueva versión, entre [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe Dreamweaver la mas popular herramienta de desarrollo web y mi preferido siempre ha estado a la vanguardia como herramienta de desarrollo web y ahora acaban de lanzar la <a href="http://labs.adobe.com/technologies/dreamweavercs4/" onclick="javascript:pageTracker._trackPageview ('/outbound/labs.adobe.com');">Adobe Dreamweaver Beta</a> (<em>Stiletto</em>) publica para que los usuarios puedan probarlo y así dar sus observaciones y sugerencias.</p>
<p style="text-align:center;"><img src="http://blog.unijimpe.net/wp-content/uploads/2008/05/breamweaver-beta.jpg" alt="" title="breamweaver-beta" width="412" height="74"  /></p>
<p><strong>Novedades</strong><br />
Hay muchas cosas interesantes en esta nueva versión, entre las que podemos mencionar:</p>
<ul>
<li><strong>Live View</strong><br />Ahora puedes ver tus páginas funcionando directamente en Dreamweaver, ejecuta Javascrip, interpreta CSS todo sin necesidad de utilizar un navegador.</li>
<li><strong>Related Files</strong><br />Dreamweaver ahora reconoce los archivos asociados a un determinado documento (css, js, php, xml) y muestra un listado de los archivos relacionados en la barra superior del documento, lo cual facilita la edición de las mismas.</li>
<li><strong>Code Navigator</strong><br />Esta opción permite mostrar el código fuente para el elemento seleccionado actualmente, si hay javascript que cambia dinámicamente un elemento esto se ve reflejado automáticamente el código fuente mostrado.</li>
<li><strong>CSS best practices</strong><br />Ahora el inspector de propiedades CSS muestra los estilos para la selección actual y muestra un tooltip con explicaciones de las reglas del CSS.</li>
<li><strong>Code hinting for Ajax and JavaScript frameworks</strong><br />Esta es otra de las cualidades que los desarrolladores reclamaban, es el soporte de code hinting (Sugerencias de Código) para los elementos Javascript así como para los mas populares Frameworks Javascript que incluyen <em>jQuery</em>, <em>Prototype</em> y <em>Adobe Spry</em>. Lo único malo es que no pusieron Mootools.</li>
<li><strong>Subversion integration</strong><br />Esta es otra de las grandes innovaciones, la integracion con <em>Subversion</em> (Sistema de control de versiones) que permite el manejo de versiones sin necesidad de software adicional.</li>
<li><strong>Adobe® AIR™ authoring support</strong><br />Antes era necesaria una extensión pero ahora viene incluido el soporte para desarrollar aplicaciones para <em>Adobe AIR™</em>.</li>
<li><strong>New user interface</strong><br />Este es otro de los puntos que no implementaron en la versión anterior y es la interface semejante a todos los productos del <em>Adobe Creative Suite</em> el cual optimiza el espacio de trabajo.</li>
</ul>
<p><strong>Mas Información</strong><br />
Han puesto a disposición una serie de vídeos con la explicación de las nuevas características en <a href="http://tv.adobe.com/" onclick="javascript:pageTracker._trackPageview ('/outbound/tv.adobe.com');">Adobe TV</a> bajo el titulo de <strong>Inside Dreamlabs</strong> con los siguientes temas.</p>
<ul>
<li><a href="http://tv.adobe.com/#v=http%3A//adobe.edgeboss.net/flash/adobe/adobetvprod/dreamweaver_cs4_public_beta/62_dwb_003.flv%3Frss_feedid%3D1194%26xmlvers%3D2" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/tv.adobe.com');">Dreamweaver CS4 Code Navigator</a></li>
<li><a href="http://tv.adobe.com/#v=http%3A//adobe.edgeboss.net/flash/adobe/adobetvprod/dreamweaver_cs4_public_beta/62_dwb_004.flv%3Frss_feedid%3D1194%26xmlvers%3D2" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/tv.adobe.com');">Dreamweaver CS4 Dataset Wizard</a></li>
<li><a href="http://tv.adobe.com/#v=http%3A//adobe.edgeboss.net/flash/adobe/adobetvprod/dreamweaver_cs4_public_beta/62_dwb_006.flv%3Frss_feedid%3D1194%26xmlvers%3D2" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/tv.adobe.com');">Dreamweaver CS4 Javascript</a></li>
<li><a href="http://tv.adobe.com/#v=http%3A//adobe.edgeboss.net/flash/adobe/adobetvprod/dreamweaver_cs4_public_beta/62_dwb_005.flv%3Frss_feedid%3D1194%26xmlvers%3D2" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/tv.adobe.com');">Dreamweaver CS4 Web Widgets</a></li>
<li><a href="http://tv.adobe.com/#v=http%3A//adobe.edgeboss.net/flash/adobe/adobetvprod/dreamweaver_cs4_public_beta/62_dwb_001.flv%3Frss_feedid%3D1194%26xmlvers%3D2" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/tv.adobe.com');">Dreamweaver CS4 Related Files</a></li>
<li><a href="http://tv.adobe.com/#v=http%3A//adobe.edgeboss.net/flash/adobe/adobetvprod/dreamweaver_cs4_public_beta/62_dwb_002.flv%3Frss_feedid%3D1194%26xmlvers%3D2" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/tv.adobe.com');">Dreamweaver CS4 Live Prev