<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->
<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"
>
	<channel>
		<title>Dudas de Programacion &#187; Tag: JavaScript - Recent Topics</title>
		<link>http://www.dudasprogramacion.com/tags/javascript</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Feb 2012 03:30:06 +0000</pubDate>
		<generator>bbpress 1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.dudasprogramacion.com/search.php</link>
		</textInput>
		<atom:link href="http://www.dudasprogramacion.com/rss/tags/javascript/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>santy.uy on "jQuery.Get error"</title>
			<link>http://www.dudasprogramacion.com/topic/jqueryget-error#post-1000</link>
			<pubDate>Wed, 30 Nov 2011 11:40:32 +0000</pubDate>
			<dc:creator>santy.uy</dc:creator>
			<guid isPermaLink="false">1000@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, como estan?</p>
<p>Estoy desarrollando una palicación en HTML5 con jQuery, usando Sync Framework para la sincronización, el cual consume un servicio que esta alojado en la en Windows Azure. </p>
<p>El problema esta cuando envio el Request al dicho servicio:</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
var data;
        jQuery.get(serviceUri, {},
            function (data) {
                console.log(&quot; reponse :&quot; + data);
            }
       , &quot;json&quot;);
&nbsp;</pre>
<p>El Request es el siguiente:</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
GET &lt;a href=&quot;http://157.56.8.203/DefaultScopeSyncService.svc/defaultscope/DownloadChanges?id=7AE7C771-0A98-4A5D-A046-430DDB0A7917&quot; rel=&quot;nofollow&quot;&gt;http://157.56.8.203/DefaultScopeSyncService.svc/defaultscope/DownloadChanges?id=7AE7C771-0A98-4A5D-A046-430DDB0A7917&lt;/a&gt; HTTP/1.1
Host: 157.56.8.203
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Accept: application/json, text/javascript, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: &lt;a href=&quot;http://localhost:49427/ListSample.htm&quot; rel=&quot;nofollow&quot;&gt;http://localhost:49427/ListSample.htm&lt;/a&gt;
Origin: &lt;a href=&quot;http://localhost:49427&quot; rel=&quot;nofollow&quot;&gt;http://localhost:49427&lt;/a&gt;
&nbsp;</pre>
<p>Y la respuesta del servicio esta:</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
HTTP/1.1 200 OK
Content-Length: 1388
Content-Type: application/json
Server: Microsoft-IIS/7.0
SyncServiceVersion: 1.0
X-Powered-By: ASP.NET
Date: Wed, 30 Nov 2011 11:34:55 GMT
&nbsp;
{&quot;d&quot;:{&quot;__sync&quot;:{&quot;moreChangesAvailable&quot;:false,&quot;serverBlob&quot;:&quot;AAEAAAD\/\/\/\/\/AQAAAAAAAAAMAgAAAGVNaWNyb3NvZnQuU3luY2hyb25pemF0aW9uLlNlcnZpY2VzLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49ODk4NDVkY2Q4MDgwY2M5MQUBAAAAK01pY3Jvc29mdC5TeW5jaHJvbml6YXRpb24uU2VydmljZXMuU3luY0Jsb2IFAAAAIDxDbGllbnRLbm93bGVkZ2U+a19fQmFja2luZ0ZpZWxkIDxDbGllbnRTY29wZU5hbWU+a19fQmFja2luZ0ZpZWxkHDxJc0xhc3RCYXRjaD5rX19CYWNraW5nRmllbGQaPEJhdGNoQ29kZT5rX19CYWNraW5nRmllbGQaPE5leHRCYXRjaD5rX19CYWNraW5nRmllbGQHAQADAwIBbVN5c3RlbS5OdWxsYWJsZWAxW1tTeXN0ZW0uR3VpZCwgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV1tU3lzdGVtLk51bGxhYmxlYDFbW1N5c3RlbS5HdWlkLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXQIAAAAJAwAAAAYEAAAAJGM3NjM2YTlmLTBhOTYtNDJhOC04ZDgxLTBhNDE5NTJmOTUyYgEKCg8DAAAAkAAAAAIAAAAFAAAAAAAAAAEAAAAAAAAABQAAEAAAAALHY2qfCpZCqI2BCkGVL5UrebAhJqekSVCrBoALPwfgsQAAABgAABABKAIAAAEAAAAVAAAAAgAAAAEAAAAAAAAAAQAAAAEAAAABAAAAAAAAAQ0AAAAXAAAAAQAAABYAAAABAAMAAAAAAQAAAAAAAAAZAQAAAAAL&quot;},&quot;results&quot;:[{&quot;Id&quot;:&quot;7ae7c771-0a98-4a5d-a046-430ddb0a7917&quot;,&quot;Name&quot;:&quot;Santiago&quot;,&quot;Surname&quot;:&quot;Dalto&quot;,&quot;BirthDate&quot;:&quot;\/Date(917913600000)\/&quot;,&quot;Gender&quot;:&quot;M&quot;,&quot;__metadata&quot;:{&quot;uri&quot;:&quot;http:\/\/157.56.8.203\/DefaultScopeSyncService.svc\/Persons(Id=guid'7ae7c771-0a98-4a5d-a046-430ddb0a7917')&quot;,&quot;type&quot;:&quot;DefaultScope.Persons&quot;}}]}}
&nbsp;</pre>
<p>El problema es que el objeto data del script es siempre null, sin embargo el servicio retorna bien el resultado. Alguien sabe que me puede estar pasando?</p>
<p>Saludos y muchas gracias!
</p></description>
		</item>
		<item>
			<title>mayojm on "Capturar computer name desde Javascript"</title>
			<link>http://www.dudasprogramacion.com/topic/capturar-computer-name-desde-javascript#post-556</link>
			<pubDate>Tue, 27 Jul 2010 11:26:22 +0000</pubDate>
			<dc:creator>mayojm</dc:creator>
			<guid isPermaLink="false">556@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, </p>
<p>me gustaria saber si es posible capturar el nombre del equipo desde el cuál se hace la petición de páginas HTML(computername). </p>
<p>Es esto posible desde Javascript.</p>
<p>Saludos
</p></description>
		</item>
		<item>
			<title>diamardan on "¿como puedo Regresar 2 json con jquery?"</title>
			<link>http://www.dudasprogramacion.com/topic/%c2%bfcomo-puedo-regresar-2-json-con-jquery#post-957</link>
			<pubDate>Wed, 24 Aug 2011 05:11:05 +0000</pubDate>
			<dc:creator>diamardan</dc:creator>
			<guid isPermaLink="false">957@http://www.dudasprogramacion.com/</guid>
			<description><p>amigos soy nuevo en tanto en el foro como en la programación y tengo una simple pregunta<br />
estoy usando la lireria jquery para un proyecto escolar pido a mysql datos y filtro en php pero no se como regresar 2 json, miren les dejo el código aqui abajo</p>
<pre class="php" style="font-family:monospace;">Código Fuente
<span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;?php
</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'../conexion.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ID</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dato'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Esta variable la mande desde el jquery hasta aqui todo va bien</span>
&nbsp;
<span style="color: #000088;">$rA</span>ños <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;select Fecha from facturas where empresas_ID_Empresa = <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$ID</span><span style="color: #000099; font-weight: bold;">\&quot;</span> ORDER BY Fecha ASC&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$conexion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* Este código es para buscar solo las fechas y filtrar ya que quiero solo años sin mes ni dia*/</span>
<span style="color: #000088;">$a</span>ños2<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/*Inicializo una variable para despues evaluar otra */</span>
&nbsp;
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rowA</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rA</span>ños<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$a</span>ños <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$rowA</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Fecha'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$a</span>ño <span style="color: #339933;">=</span> <span style="color: #000088;">$a</span>ños<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span>ño <span style="color: #339933;">!=</span> <span style="color: #000088;">$a</span>ños2<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">/* el año es diferente a 0 en la primera vez */</span>
		<span style="color: #000088;">$year</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;year&quot;</span> <span style="color: #339933;">=&amp;</span><span style="color: #666666; font-style: italic;">#62; $año);
</span>		<span style="color: #000088;">$a</span>ños2 <span style="color: #339933;">=</span> <span style="color: #000088;">$a</span>ño<span style="color: #339933;">;</span>
		<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;select Nombre,Fecha,Subtotal,IVA,Total from facturas,empresas where Fecha like '<span style="color: #006699; font-weight: bold;">$a</span>ño%' ORDER BY Fecha ASC&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$conexion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$_arreglo</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$a</span>ño<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;año&quot;</span><span style="color: #339933;">=&amp;</span><span style="color: #666666; font-style: italic;">#62;$row['Fecha'],&quot;nom&quot;=&amp;#62;$row[&quot;Nombre&quot;],&quot;subT&quot;=&amp;#62;$row['Subtotal'],&quot;iva&quot;=&amp;#62;$row[&quot;IVA&quot;],&quot;Total&quot;=&amp;#62;$row['Total']);
</span>		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">/*todo lo demás se lo han de imaginar y si funciona si en vez de los dos echo de abajo solo dejo uno, pero necesito las 2 variables en la función de javascript, alguna forma de como resolver esto?? o tendria que hacer otra llamada con jquery para en otro archivo generar el $_arreglo?? */</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <a href="http://www.php.net/json_encode"><span style="color: #990000;">json_encode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <a href="http://www.php.net/json_encode"><span style="color: #990000;">json_encode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_arreglo</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* en el log de la consola de chrome me dice 'status Text':&quot;parserError&quot;*/</span>
&nbsp;
?<span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#62;</span>
&nbsp;</pre></description>
		</item>
		<item>
			<title>planseldon on "sonido en formularios de javascript"</title>
			<link>http://www.dudasprogramacion.com/topic/sonido-en-formularios-de-javascript#post-273</link>
			<pubDate>Tue, 08 Dec 2009 20:33:48 +0000</pubDate>
			<dc:creator>planseldon</dc:creator>
			<guid isPermaLink="false">273@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola. </p>
<p>Estoy haciendo unos ejercicios de gramática con javascript.</p>
<p>Tengo ya terminado el modelo básico de lo que quiero, pero me falta un detalle: me gustaría añadir unos sonidos. </p>
<p>Os copio el código para que veáis de qué se trata:</p>
<pre class="html4strict" style="font-family:monospace;">&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>html<span style="color: #ddbb00;">&amp;#62;</span>
<span style="color: #ddbb00;">&amp;#60;</span>head<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>title<span style="color: #ddbb00;">&amp;#62;</span>Ejercicio 1<span style="color: #ddbb00;">&amp;#60;</span>/title<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>style type=&quot;text/css&quot;<span style="color: #ddbb00;">&amp;#62;</span>
   form { display:inline; }
   * {
      font-family: Palatino Linotype;
      font-size : 110%;
   }
<span style="color: #ddbb00;">&amp;#60;</span>/style<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>script language=&quot;javascript&quot;<span style="color: #ddbb00;">&amp;#62;</span>
function respuestaOK(obj, respuesta) {
   var formulario = document.getElementById(&quot;frm_&quot; + obj);
   var campo = formulario.elements[obj];
   var campoIntentos = formulario.elements[obj + &quot;_intentos&quot;];
   var valor = campo.value;
   var valorIntentos = campoIntentos.value;
&nbsp;
   v1 = respuesta.toLowerCase();
   v2 = valor.toLowerCase();
&nbsp;
   if(v1 == v2) {
      campo.disabled = true;
   }
   else {
      valorIntentos++;
      if(valorIntentos <span style="color: #ddbb00;">&amp;#60;</span> 3) {
         alert(&quot;Error&quot;);
         campoIntentos.value = valorIntentos;
      }
      else {
         alert(&quot;Error&quot;);
         campo.value = v1;
         campo.disabled = true;
      }
   }
&nbsp;
   return false;
}
<span style="color: #ddbb00;">&amp;#60;</span>/script<span style="color: #ddbb00;">&amp;#62;</span>
<span style="color: #ddbb00;">&amp;#60;</span>/head<span style="color: #ddbb00;">&amp;#62;</span>
<span style="color: #ddbb00;">&amp;#60;</span>body<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>b<span style="color: #ddbb00;">&amp;#62;</span>Ejercicios<span style="color: #ddbb00;">&amp;#60;</span>/b<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>form name=&quot;frm_pregunta1&quot; id=&quot;frm_pregunta1&quot; onSubmit=&quot;return respuestaOK
&nbsp;
('pregunta1', 'vito')&quot;<span style="color: #ddbb00;">&amp;#62;</span>
1. Pablito clavó un cla<span style="color: #ddbb00;">&amp;#60;</span>input type=&quot;text&quot; size=&quot;1&quot; name=&quot;pregunta1&quot; id=&quot;pregunta1&quot;<span style="color: #ddbb00;">&amp;#62;</span>.
<span style="color: #ddbb00;">&amp;#60;</span>input type=&quot;hidden&quot; name=&quot;pregunta1_intentos&quot; value=&quot;0&quot; /<span style="color: #ddbb00;">&amp;#62;</span>
<span style="color: #ddbb00;">&amp;#60;</span>/form<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>form name=&quot;frm_pregunta2&quot; id=&quot;frm_pregunta2&quot; onSubmit=&quot;return respuestaOK
&nbsp;
('pregunta2', 'vó')&quot;<span style="color: #ddbb00;">&amp;#62;</span>
2. ¿Qué clavito cla<span style="color: #ddbb00;">&amp;#60;</span>input type=&quot;text&quot; size=&quot;1&quot; name=&quot;pregunta2&quot; id=&quot;pregunta2&quot;<span style="color: #ddbb00;">&amp;#62;</span> 
&nbsp;
Pablito?
<span style="color: #ddbb00;">&amp;#60;</span>input type=&quot;hidden&quot; name=&quot;pregunta2_intentos&quot; value=&quot;0&quot; /<span style="color: #ddbb00;">&amp;#62;</span>
<span style="color: #ddbb00;">&amp;#60;</span>/form<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>/body<span style="color: #ddbb00;">&amp;#62;</span>
<span style="color: #ddbb00;">&amp;#60;</span>/html<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;</pre>
<p>Lo que me gustaría es introducir sonidos en los siguientes casos:</p>
<p>1) Cuando se introduce la respuesta adecuada querría que se oyese un sonido (p.ej. aplauso.wav)</p>
<p>2) Cuando se introduce la respuesta erronea que se oyese otro (p.ej. abucheo.wav). Este no es tan importante, pues ahora mismo se oye el sonido de la alerta, lo cual ya es algo. Pero quizás a alguien se le ocurra una solución mejor para poder personalizarlo y que suene el sonido que yo quiero, no el predeterminado por cada navegador.</p>
<p>Muchas gracias por la atención.
</p></description>
		</item>
		<item>
			<title>LaloLanda on "Ayuda en JavaScript"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-en-javascript#post-939</link>
			<pubDate>Wed, 25 May 2011 23:32:40 +0000</pubDate>
			<dc:creator>LaloLanda</dc:creator>
			<guid isPermaLink="false">939@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola mi duda es la siguiente, estoy realizando un codigo en javascript con Dreamweaver 8, el cual me de 3 opciones (1. ingresar datos 2.consulta general 3.salida) y en el cual me los ordene con uno de los dos metodos (menos burbuja) pero lo que no tengo que utilizar es for para ciclarlo 3 veces ni me funciona el numero 3 para salida que es lo que puedo hacer en este caso???</p>
<pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// JavaScript Document</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>HTML<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>HEAD<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>TITLE<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>PRACTICA <span style="color: #CC0000;">2</span> <span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>TITLE<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>HEAD<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>BODY<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>SCRIPT LANGUAGE<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;JavaScript&quot;</span><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> domicilio
<span style="color: #003366; font-weight: bold;">var</span> telefono
<span style="color: #003366; font-weight: bold;">var</span> movil
<span style="color: #003366; font-weight: bold;">var</span> mail
<span style="color: #003366; font-weight: bold;">var</span> opcion<span style="color: #339933;">=</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> captura
<span style="color: #003366; font-weight: bold;">var</span> consulta
<span style="color: #003366; font-weight: bold;">var</span> salida
<span style="color: #003366; font-weight: bold;">var</span> opc
<span style="color: #003366; font-weight: bold;">var</span> cuenta
<span style="color: #003366; font-weight: bold;">var</span> numcuenta
<span style="color: #003366; font-weight: bold;">var</span> xnum
<span style="color: #003366; font-weight: bold;">var</span> x<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span>
<span style="color: #003366; font-weight: bold;">var</span> y
<span style="color: #003366; font-weight: bold;">var</span> bandera
<span style="color: #003366; font-weight: bold;">var</span> cta
<span style="color: #003366; font-weight: bold;">var</span> nom
<span style="color: #003366; font-weight: bold;">var</span> dom
<span style="color: #003366; font-weight: bold;">var</span> tele
<span style="color: #003366; font-weight: bold;">var</span> mov
<span style="color: #003366; font-weight: bold;">var</span> ma
&nbsp;
<span style="color: #000066; font-weight: bold;">do</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> opcion<span style="color: #339933;">=</span><span style="color: #000066;">prompt</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Elije tu opcion: 1.Captura 2.Consulta 3.EXIT&quot;</span><span style="color: #339933;">,</span>opcion<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>opcion<span style="color: #339933;">==</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> numcta<span style="color: #339933;">=</span><span style="color: #000066;">prompt</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Su numero de cuenta es: &quot;</span><span style="color: #339933;">,</span>numcta<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> nombre<span style="color: #339933;">=</span>	<span style="color: #000066;">prompt</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Su nombre es: &quot;</span> <span style="color: #339933;">,</span>nombre<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> direccion<span style="color: #339933;">=</span> <span style="color: #000066;">prompt</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Su direccion es&quot;</span> <span style="color: #339933;">,</span>direccion<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> telefono<span style="color: #339933;">=</span> <span style="color: #000066;">prompt</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Su telefono es&quot;</span><span style="color: #339933;">,</span>telefono<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> movil<span style="color: #339933;">=</span><span style="color: #000066;">prompt</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Su movil es: &quot;</span> <span style="color: #339933;">,</span>movil<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> mail<span style="color: #339933;">=</span><span style="color: #000066;">prompt</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Su mail es: &quot;</span><span style="color: #339933;">,</span>mail<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
opcion<span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>opcion<span style="color: #339933;">==</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&amp;#60;H2&amp;#62;su numero de cuenta es   &quot;</span> <span style="color: #339933;">+</span> numcta <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&amp;#60;/H2&amp;#62;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&amp;#60;H2&amp;#62;su nombre es   &quot;</span> <span style="color: #339933;">+</span> nombre <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&amp;#60;/H2&amp;#62;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&amp;#60;H2&amp;#62;su domicilio es   &quot;</span> <span style="color: #339933;">+</span> direccion <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&amp;#60;/H2&amp;#62;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&amp;#60;H2&amp;#62;su telefono casa es   &quot;</span><span style="color: #339933;">+</span> telefono <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&amp;#60;/H2&amp;#62;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&amp;#60;H2&amp;#62;su movil es   &quot;</span><span style="color: #339933;">+</span> movil <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&amp;#60;/H2&amp;#62;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&amp;#60;H2&amp;#62;su mail es   &quot;</span><span style="color: #339933;">+</span> mail <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&amp;#60;/H2&amp;#62;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>opcion<span style="color: #339933;">!=</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>opcion<span style="color: #339933;">==</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&amp;#60;H2&amp;#62;&quot;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;#60;/H2&amp;#62;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>opcion<span style="color: #339933;">!=</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>x<span style="color: #339933;">!=</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>SCRIPT<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>BODY<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>HTML<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span></pre>
<p>Espero me puedan ayudar gracias.
</p></description>
		</item>
		<item>
			<title>danco_rix@hotmail.com on "urge"</title>
			<link>http://www.dudasprogramacion.com/topic/urge#post-931</link>
			<pubDate>Sun, 15 May 2011 22:06:42 +0000</pubDate>
			<dc:creator>danco_rix@hotmail.com</dc:creator>
			<guid isPermaLink="false">931@http://www.dudasprogramacion.com/</guid>
			<description><p>sintaxis de conexion de jsp a oracle
</p></description>
		</item>
		<item>
			<title>josep on "ayuda en codigo"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-en-codigo#post-889</link>
			<pubDate>Fri, 04 Mar 2011 10:17:19 +0000</pubDate>
			<dc:creator>josep</dc:creator>
			<guid isPermaLink="false">889@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola a tod@s.<br />
Alguien de ustedes podrian ayudarme en el codigo que insertare al final de la pagina?<br />
El codigo funciona bien pero solo con dos fotos,lo que quisiera es ponerle mas, por<br />
ejemplo (10), y tambien con el tamaño ( WEDTH  Y  HEIGHT ).<br />
El codigo siguiente cambia las dos fotos cada cinco segundos.<br />
Gracias.<br />
Salud.</p>
<pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;JavaScript&quot;</span><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> estado<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;cambio()&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> cambio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
estado<span style="color: #339933;">=!</span>estado<span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>estado<span style="color: #339933;">==</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
img.<span style="color: #660066;">src</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;valle.jpg&quot;</span>
<span style="color: #000066; font-weight: bold;">else</span>
img.<span style="color: #660066;">src</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;estacion.jpg&quot;</span>
setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;cambio()&quot;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>script<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>img <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;img&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;valle.jpg&quot;</span><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span></pre></description>
		</item>
		<item>
			<title>rick_korn on "checkbox group"</title>
			<link>http://www.dudasprogramacion.com/topic/checkbox-group#post-872</link>
			<pubDate>Sat, 29 Jan 2011 13:18:58 +0000</pubDate>
			<dc:creator>rick_korn</dc:creator>
			<guid isPermaLink="false">872@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola quiero que me ayuden por favor, tengo en HTML una tabla donde muestro la informacion desde la base de datos, en la primera columna tengo incluido varios checkbox de acuerdo a la cantidad de filas, el problema es que solo quiero seleccionar un solo checkbox de una sola fila y no varios, para que posteriormente pueda eliminar esa fila de acuerdo al codigo.<br />
gracias
</p></description>
		</item>
		<item>
			<title>titiushko on "COMO PASAR VALORES DE UN FORMULARIO HTML A UNA FUNCION ANONIMA EN JQUERY"</title>
			<link>http://www.dudasprogramacion.com/topic/como-pasar-valores-de-un-formulario-html-a-una-funcion-anonima-en-jquery#post-811</link>
			<pubDate>Mon, 29 Nov 2010 00:55:48 +0000</pubDate>
			<dc:creator>titiushko</dc:creator>
			<guid isPermaLink="false">811@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola… ¡¡necesito ayuda!!<br />
Estoy un poco perdido en esto, bueno les explico….<br />
Estoy haciendo una graficas con jQuery usando jquery-1.4.2.min.js y visualize.jQuery.js este último es un plugin en jQuery para hacer las graficas y en ese aspecto estoy más o menos bien porque solo hay que llamara a la función para que me genere una grafica a partir de una tabla<br />
Así lo hago:</p>
<pre class="html4strict" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;#60;</span>html<span style="color: #ddbb00;">&amp;#62;</span>
	<span style="color: #ddbb00;">&amp;#60;</span>head<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>title<span style="color: #ddbb00;">&amp;#62;</span>grafico<span style="color: #ddbb00;">&amp;#60;</span>/title<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>script type=&quot;text/javascript&quot; src=&quot;jquery-1.4.2.min.js&quot;<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>/script<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>script type=&quot;text/javascript&quot; src=&quot; visualize.jQuery.js&quot;<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>/script<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot; visualize.css&quot; /<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot; basic.css&quot; /<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot; visualize-dark.css&quot; /<span style="color: #ddbb00;">&amp;#62;</span>
&nbsp;
<span style="color: #ddbb00;">&amp;#60;</span>script type=&quot;text/javascript&quot;<span style="color: #ddbb00;">&amp;#62;</span>
			$(document).ready(function(){
				var objeto = document.getElementById('opcion');
				valor = objeto.value;
				$('#mitabla').visualize({type:valor,width:400,height:400});
				var cosa = $(&quot;div.visualize&quot;);
				$(&quot;div.visualize&quot;).remove();
				$(&quot;#nuevo&quot;).append(cosa);
			});
		<span style="color: #ddbb00;">&amp;#60;</span>/script<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>style<span style="color: #ddbb00;">&amp;#62;</span>
			div#nuevo{width:600px; margin-left:auto; margin-right:auto;}
			/*table.porClase{display:none;}*/
		<span style="color: #ddbb00;">&amp;#60;</span>/style<span style="color: #ddbb00;">&amp;#62;</span>
	<span style="color: #ddbb00;">&amp;#60;</span>/head<span style="color: #ddbb00;">&amp;#62;</span>
	<span style="color: #ddbb00;">&amp;#60;</span>body<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>form<span style="color: #ddbb00;">&amp;#62;</span>
			<span style="color: #ddbb00;">&amp;#60;</span>select id=&quot;opcion&quot;<span style="color: #ddbb00;">&amp;#62;</span>
				<span style="color: #ddbb00;">&amp;#60;</span>option value=&quot;bar&quot; onClick=&quot;function()&quot;<span style="color: #ddbb00;">&amp;#62;</span>barra<span style="color: #ddbb00;">&amp;#60;</span>/option<span style="color: #ddbb00;">&amp;#62;</span>
				<span style="color: #ddbb00;">&amp;#60;</span>option value=&quot;pie&quot; onClick=&quot;function()&quot;<span style="color: #ddbb00;">&amp;#62;</span>pastel<span style="color: #ddbb00;">&amp;#60;</span>/option<span style="color: #ddbb00;">&amp;#62;</span>
			<span style="color: #ddbb00;">&amp;#60;</span>/select<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>/form<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>table id=&quot;mitabla&quot; class=&quot;porClase&quot;<span style="color: #ddbb00;">&amp;#62;</span>
			<span style="color: #ddbb00;">&amp;#60;</span>caption<span style="color: #ddbb00;">&amp;#62;</span>prueba grafica<span style="color: #ddbb00;">&amp;#60;</span>/caption<span style="color: #ddbb00;">&amp;#62;</span>
			<span style="color: #ddbb00;">&amp;#60;</span>thead<span style="color: #ddbb00;">&amp;#62;</span>
				<span style="color: #ddbb00;">&amp;#60;</span>tr<span style="color: #ddbb00;">&amp;#62;</span>
					<span style="color: #ddbb00;">&amp;#60;</span>td<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>/td<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>th<span style="color: #ddbb00;">&amp;#62;</span>VOTOS<span style="color: #ddbb00;">&amp;#60;</span>/th<span style="color: #ddbb00;">&amp;#62;</span>
				<span style="color: #ddbb00;">&amp;#60;</span>/tr<span style="color: #ddbb00;">&amp;#62;</span>
			<span style="color: #ddbb00;">&amp;#60;</span>/thead<span style="color: #ddbb00;">&amp;#62;</span>
			<span style="color: #ddbb00;">&amp;#60;</span>tbody<span style="color: #ddbb00;">&amp;#62;</span>
				<span style="color: #ddbb00;">&amp;#60;</span>tr<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>th<span style="color: #ddbb00;">&amp;#62;</span>ARENA<span style="color: #ddbb00;">&amp;#60;</span>/th<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>td<span style="color: #ddbb00;">&amp;#62;</span>150<span style="color: #ddbb00;">&amp;#60;</span>/td<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>/tr<span style="color: #ddbb00;">&amp;#62;</span>
				<span style="color: #ddbb00;">&amp;#60;</span>tr<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>th<span style="color: #ddbb00;">&amp;#62;</span>FMLN<span style="color: #ddbb00;">&amp;#60;</span>/th<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>td<span style="color: #ddbb00;">&amp;#62;</span>160<span style="color: #ddbb00;">&amp;#60;</span>/td<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>/tr<span style="color: #ddbb00;">&amp;#62;</span>
				<span style="color: #ddbb00;">&amp;#60;</span>tr<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>th<span style="color: #ddbb00;">&amp;#62;</span>PCN<span style="color: #ddbb00;">&amp;#60;</span>/th<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>td<span style="color: #ddbb00;">&amp;#62;</span>40<span style="color: #ddbb00;">&amp;#60;</span>/td<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>/tr<span style="color: #ddbb00;">&amp;#62;</span>
				<span style="color: #ddbb00;">&amp;#60;</span>tr<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>th<span style="color: #ddbb00;">&amp;#62;</span>GANA<span style="color: #ddbb00;">&amp;#60;</span>/th<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>td<span style="color: #ddbb00;">&amp;#62;</span>120<span style="color: #ddbb00;">&amp;#60;</span>/td<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>/tr<span style="color: #ddbb00;">&amp;#62;</span>
			<span style="color: #ddbb00;">&amp;#60;</span>/tbody<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>/table<span style="color: #ddbb00;">&amp;#62;</span>
		<span style="color: #ddbb00;">&amp;#60;</span>div id=&quot;nuevo&quot;<span style="color: #ddbb00;">&amp;#62;&amp;#60;</span>/div<span style="color: #ddbb00;">&amp;#62;</span>
	<span style="color: #ddbb00;">&amp;#60;</span>/body<span style="color: #ddbb00;">&amp;#62;</span>
<span style="color: #ddbb00;">&amp;#60;</span>/html<span style="color: #ddbb00;">&amp;#62;</span></pre>
<p>Como ven, quiero que la grafica cambie de barra a pastel y viceversa con solo al hacer click a una de las opciones de la etiqueta  selcet, quiero que esto sea dinámico sin ningún botón.<br />
Lo que he intentado hacer es capturar el valor que se selecciona en la opción por medio del id “opcion” que le he puesto a la etiqueta select, pero al parecer solo agarra el primer valor y me genera una grafica de barras, solo cambia a grafica de pastel cuando actualizo la pagina y no quiero que funcione así.<br />
Como se habran dado cuenta, nose mucho de javascript jeje, quicira que me ayudaran por favor
</p></description>
		</item>
		<item>
			<title>evelin on "Ayuda sobre funcion en JavaScript"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-sobre-funcion-en-javascript#post-751</link>
			<pubDate>Tue, 16 Nov 2010 17:53:45 +0000</pubDate>
			<dc:creator>evelin</dc:creator>
			<guid isPermaLink="false">751@http://www.dudasprogramacion.com/</guid>
			<description><p>Debo hacer una función que me devuelva los días de la semana en letras, pasando como parámetro el número de la semana que es introducido por el usuario.<br />
Lo he hecho así, pero sé que la función la estoy haciendo mal, por favor corregirme.</p>
<pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>SCRIPT LANGUAGE <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;JavaScript&quot;</span><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;!--</span>
<span style="color: #003366; font-weight: bold;">function</span> DiaSemana<span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
 <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span>
 <span style="color: #009900;">&#123;</span>
  document.<span style="color: #000066; font-weight: bold;">write</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;el dia de la semana es Lunes&quot;</span><span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#125;</span>
 <span style="color: #000066; font-weight: bold;">else</span>
 <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">2</span>
  <span style="color: #009900;">&#123;</span>
    document.<span style="color: #000066; font-weight: bold;">write</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;el dia de la semana es Martes&quot;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#125;</span>
document.<span style="color: #000066; font-weight: bold;">write</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;No existe ese día de la semana&quot;</span><span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> resp <span style="color: #339933;">=</span> <span style="color: #000066;">prompt</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Por favor ingrese un número del 1 al 7: &quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#41;</span>
document.<span style="color: #000066; font-weight: bold;">write</span> <span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;el día es: &quot;</span> <span style="color: #339933;">+</span> DiaSemana<span style="color: #009900;">&#40;</span>resp<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #006600; font-style: italic;">//--&amp;#62;</span>
<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>SCRIPT<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span></pre></description>
		</item>
		<item>
			<title>becavas on "recorrer una tabla"</title>
			<link>http://www.dudasprogramacion.com/topic/recorrer-una-tabla#post-642</link>
			<pubDate>Fri, 22 Oct 2010 20:57:31 +0000</pubDate>
			<dc:creator>becavas</dc:creator>
			<guid isPermaLink="false">642@http://www.dudasprogramacion.com/</guid>
			<description><p>hola, estoy haciendo una factura !,he logrado agregar y quitar items a mi detalle usando jquery, pero no se como recorre la tabla con un FOR y enviar cada una de las filas a la BD..help me pleaseeeeee !!!</p>
<p>nota: estoy usando jsp
</p></description>
		</item>
		<item>
			<title>leon_java23 on "ingresar un numero d 4 cifras"</title>
			<link>http://www.dudasprogramacion.com/topic/ingresar-un-numero-d-4-cifras#post-625</link>
			<pubDate>Fri, 24 Sep 2010 19:57:59 +0000</pubDate>
			<dc:creator>leon_java23</dc:creator>
			<guid isPermaLink="false">625@http://www.dudasprogramacion.com/</guid>
			<description><p>hola estoy comenzando un curso en java utilizando netbeans y me an dejado una tarea que bueno es la siguiente: INGRESAR UN numero de 4 cifras y calcular unidades decenas centenas y millares y mostrar la suma de sus cifras.</p>
<p>espero y alguien me pueda ayudar.<br />
muchas gracias!!<br />
saludos!
</p></description>
		</item>
		<item>
			<title>Tom on "Recoger Datos"</title>
			<link>http://www.dudasprogramacion.com/topic/recoger-datos#post-608</link>
			<pubDate>Wed, 01 Sep 2010 17:48:32 +0000</pubDate>
			<dc:creator>Tom</dc:creator>
			<guid isPermaLink="false">608@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola, soy bastante nuevo en esto del javascript y tengo una duda q no creo q resulte demasido dificiles para vosotr@s</p>
<p>Me gustaría saber cómo puedo recoger una variable de una página anterior, y luego escribirla por pantalla.</p>
<p>Supongo q después de recogerla debo hacer document.write(variable) ¿no??</p>
<p>Ah!! una cosa, tengo una página en asp con javascript y la paso asi:</p>
<pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;formulario.asp?dinero=&amp;#60;%=sum%&quot;</span>&gt;</span><span style="color: #ddbb00;">&amp;#62;</span><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></pre>
<p>¿cómo recojo esa variable??<br />
Gracias muchas
</p></description>
		</item>
		<item>
			<title>Nemesis on "Saber tamaño (height) de una tabla"</title>
			<link>http://www.dudasprogramacion.com/topic/saber-tamano-height-de-una-tabla#post-578</link>
			<pubDate>Fri, 06 Aug 2010 11:15:47 +0000</pubDate>
			<dc:creator>Nemesis</dc:creator>
			<guid isPermaLink="false">578@http://www.dudasprogramacion.com/</guid>
			<description><p>Es posible controlar el tamaño de una tabla &#60;table&#62; con javascript... necesito comparar el tamaño de dos tablas... y si una es mayor que otra... que realice una funcion....<br />
mas o menos seria asi... </p>
<pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span> table1.<span style="color: #660066;">height</span> <span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span> table2.<span style="color: #660066;">height</span> then
...
<span style="color: #660066;">end</span> <span style="color: #000066; font-weight: bold;">if</span></pre>
<p>Pero no se como saber el tamaño del objeto tabla de html.</p>
<p>Saludos,
</p></description>
		</item>
		<item>
			<title>mdo on "script incompleto?"</title>
			<link>http://www.dudasprogramacion.com/topic/script-incompleto#post-591</link>
			<pubDate>Sun, 22 Aug 2010 01:56:06 +0000</pubDate>
			<dc:creator>mdo</dc:creator>
			<guid isPermaLink="false">591@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola a todos!!! soy nueva en este foro y también hace poco que estoy con jquery. Mi duda es cómo hacer que un div que se acciona al pulsar un btn, se oculte cuando se pulse el segundo o tercer btn. Es que logré que cada btn llame a su texto correspondiente, pero resulta que si pulso el 1º btn (me despliega el texto que le corresponde,claro) y luego pulso el 2º, el texto de este se despliega sobre el primer texto y así pasa con el tercero. Quise arreglarlo pero no logro hacerlo, aquí les dejo el código:</p>
<pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.btn1&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#ind&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideToggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				visibility<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggleClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;active&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#colec&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#publ&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.btn2&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#colec&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideToggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggleClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;active&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#ind&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#publ&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				visibility<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.btn3&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#publ&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideToggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggleClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;active&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#colec&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#ind&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">				visibility<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;/</span>script<span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li></ol></pre>
<p>No sé si me permitirán en este foro y por ser nueva, daros el enlace hacia el ejemplo funcionando, lo voy a intentar: <a href="http://www.monicadiaz.com.ar/proj/andrea/cv.html" rel="nofollow">http://www.monicadiaz.com.ar/proj/andrea/cv.html</a>  Gracias desde ya.
</p></description>
		</item>

	</channel>
</rss>

