<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentarios en: Componente CheckBox</title>
	<atom:link href="http://www.codigometropoli.com/componente-checkbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigometropoli.com/componente-checkbox/</link>
	<description>Programación para Super Héroes</description>
	<lastBuildDate>Tue, 31 Aug 2010 13:41:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Por: Carla Macías</title>
		<link>http://www.codigometropoli.com/componente-checkbox/comment-page-1/#comment-2292</link>
		<dc:creator>Carla Macías</dc:creator>
		<pubDate>Fri, 23 Apr 2010 06:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=26#comment-2292</guid>
		<description>Hola Carlos,

Para eso está el tutorial de &lt;a href=&quot;http://www.codigometropoli.com/enviar-formulario-de-contacto/&quot; rel=&quot;nofollow&quot;&gt;Enviar Formulario de Contacto&lt;/a&gt;. Ahí viene cómo mandar los datos de un checkbox, radiobutton, combobox, etc.

Saludos.</description>
		<content:encoded><![CDATA[<p>Hola Carlos,</p>
<p>Para eso está el tutorial de <a href="http://www.codigometropoli.com/enviar-formulario-de-contacto/" rel="nofollow">Enviar Formulario de Contacto</a>. Ahí viene cómo mandar los datos de un checkbox, radiobutton, combobox, etc.</p>
<p>Saludos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: carlos</title>
		<link>http://www.codigometropoli.com/componente-checkbox/comment-page-1/#comment-2280</link>
		<dc:creator>carlos</dc:creator>
		<pubDate>Wed, 21 Apr 2010 00:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=26#comment-2280</guid>
		<description>hola oye pues aprendi mucho con este ejemplo solo que no se si puedes ayudarme necesito que las casillas seleccionadas se envien a un mail, es decir quiero seleccionar hogar y escuela y que esos nombres se vayan a un mail con el ejemplo hiciste en codigo php porfa si puedes contactarme por mail te lo agradeceria me super urge gracias</description>
		<content:encoded><![CDATA[<p>hola oye pues aprendi mucho con este ejemplo solo que no se si puedes ayudarme necesito que las casillas seleccionadas se envien a un mail, es decir quiero seleccionar hogar y escuela y que esos nombres se vayan a un mail con el ejemplo hiciste en codigo php porfa si puedes contactarme por mail te lo agradeceria me super urge gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Florencia</title>
		<link>http://www.codigometropoli.com/componente-checkbox/comment-page-1/#comment-2054</link>
		<dc:creator>Florencia</dc:creator>
		<pubDate>Sun, 24 Jan 2010 02:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=26#comment-2054</guid>
		<description>hola carla, disculpa que te moleste, pero no se como hacer el código php para los checkBox, si podes pasarme el código te lo voy a agradecer...
saludos y gracias!!!</description>
		<content:encoded><![CDATA[<p>hola carla, disculpa que te moleste, pero no se como hacer el código php para los checkBox, si podes pasarme el código te lo voy a agradecer&#8230;<br />
saludos y gracias!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Florencia</title>
		<link>http://www.codigometropoli.com/componente-checkbox/comment-page-1/#comment-2052</link>
		<dc:creator>Florencia</dc:creator>
		<pubDate>Sat, 23 Jan 2010 15:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=26#comment-2052</guid>
		<description>Muchisimas gracias Carla, en breve lo estoy probando!!!
saludos.-</description>
		<content:encoded><![CDATA[<p>Muchisimas gracias Carla, en breve lo estoy probando!!!<br />
saludos.-</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Carla Macías</title>
		<link>http://www.codigometropoli.com/componente-checkbox/comment-page-1/#comment-2046</link>
		<dc:creator>Carla Macías</dc:creator>
		<pubDate>Sat, 23 Jan 2010 02:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=26#comment-2046</guid>
		<description>Hola Florencia, 

Solamente tienes que repetir el código para cada CheckBox.
Supongamos que el primer CheckBox tiene 3 opciones, el segundo cinco y el terecero cuatro...
Podrías ponerles de nombre de instancia:
- opcion11, opcion12, opcion13
- opcion21, opcion22, opcion23, opcion24, opcion25
- opcion31, opcion32, opcion33, opcion34

[as]
aceptar_btn.onRelease = function() {
	if(!haySeleccionados(&quot;1&quot;, 3))
        {
              Alert.show(&quot;Por favor seleccione una opción de la pregunta 1&quot;, &quot;Aviso&quot;);
        }
	if(!haySeleccionados(&quot;2&quot;, 5))
        {
              Alert.show(&quot;Por favor seleccione una opción de la pregunta 2&quot;, &quot;Aviso&quot;);
        }
	if(!haySeleccionados(&quot;3&quot;, 4))
        {
              Alert.show(&quot;Por favor seleccione una opción de la pregunta 3&quot;, &quot;Aviso&quot;);
        }
}

function haySeleccionados(opc:String, total:Number):Boolean {
        var hs:Boolean = false;
	for(var i = 1; i &lt;total; i++) {
		if(this[&quot;opcion&quot; + opc + i].selected) {
			hs = true;
			break;
		}
	}
	return hs;
}
[/as]

Saludos.</description>
		<content:encoded><![CDATA[<p>Hola Florencia, </p>
<p>Solamente tienes que repetir el código para cada CheckBox.<br />
Supongamos que el primer CheckBox tiene 3 opciones, el segundo cinco y el terecero cuatro...<br />
Podrías ponerles de nombre de instancia:<br />
- opcion11, opcion12, opcion13<br />
- opcion21, opcion22, opcion23, opcion24, opcion25<br />
- opcion31, opcion32, opcion33, opcion34</p>
<div class="igBar"><span id="lactionscript-1"><a href="#" onclick="javascript:showPlainTxt('actionscript-1'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-1">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">aceptar_btn.<span style="color: #0066CC;">onRelease</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>!haySeleccionados<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"1"</span>, <span style="color: #cc66cc;color:#800000;">3</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Por favor seleccione una opción de la pregunta 1"</span>, <span style="color: #ff0000;">"Aviso"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>!haySeleccionados<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"2"</span>, <span style="color: #cc66cc;color:#800000;">5</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Por favor seleccione una opción de la pregunta 2"</span>, <span style="color: #ff0000;">"Aviso"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>!haySeleccionados<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"3"</span>, <span style="color: #cc66cc;color:#800000;">4</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Por favor seleccione una opción de la pregunta 3"</span>, <span style="color: #ff0000;">"Aviso"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">function</span> haySeleccionados<span style="color: #66cc66;">&#40;</span>opc:<span style="color: #0066CC;">String</span>, total:<span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Boolean</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> hs:<span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">false</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i = <span style="color: #cc66cc;color:#800000;">1</span>; i &lt;total; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">"opcion"</span> + opc + i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">selected</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hs = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">return</span> hs;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Saludos.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
