<?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: jQuery - Recent Posts</title>
		<link>http://www.dudasprogramacion.com/tags/jquery</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Feb 2012 21:34:45 +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/jquery" 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>lineadecodigo on "¿Como integrar un plugin jquery a woordpress?"</title>
			<link>http://www.dudasprogramacion.com/topic/%c2%bfcomo-integrar-un-plugin-jquery-a-woordpress#post-979</link>
			<pubDate>Fri, 21 Oct 2011 11:52:43 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">979@http://www.dudasprogramacion.com/</guid>
			<description><p>@erix_on,</p>
<p>Se me ocurre que puedes tocar el Theme e importar el fichero jQuery. Y luego hacerte un template para aplicarlo a una página con el Slider.
</p></description>
		</item>
		<item>
			<title>erix_on on "¿Como integrar un plugin jquery a woordpress?"</title>
			<link>http://www.dudasprogramacion.com/topic/%c2%bfcomo-integrar-un-plugin-jquery-a-woordpress#post-978</link>
			<pubDate>Sun, 16 Oct 2011 01:13:18 +0000</pubDate>
			<dc:creator>erix_on</dc:creator>
			<guid isPermaLink="false">978@http://www.dudasprogramacion.com/</guid>
			<description><p>pues precisamente lo que no quiero son esos sliders, pues a mi me gustaria adaptar de alguna forma este plugin a una pagina de wordpress, realmente no quiero hacerle todo un administrador de este plugin para wordpress, sino solo quisiera saber si de alguna forma solo se pudiera integrar este slider a una sola pagina de woordpress.
</p></description>
		</item>
		<item>
			<title>lineadecodigo on "¿Como integrar un plugin jquery a woordpress?"</title>
			<link>http://www.dudasprogramacion.com/topic/%c2%bfcomo-integrar-un-plugin-jquery-a-woordpress#post-977</link>
			<pubDate>Sun, 09 Oct 2011 16:10:50 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">977@http://www.dudasprogramacion.com/</guid>
			<description><p>@erix_on,</p>
<p>Integrar el plugin de jQuery como extensión de Wordpress tiene su trabajo.<br />
Mi recomendación es que utilices alguno de los sliders que trae Wordpress.<br />
Si buscas "image slider" en la parte de plugins, te salen un montón.
</p></description>
		</item>
		<item>
			<title>erix_on on "¿Como integrar un plugin jquery a woordpress?"</title>
			<link>http://www.dudasprogramacion.com/topic/%c2%bfcomo-integrar-un-plugin-jquery-a-woordpress#post-975</link>
			<pubDate>Sat, 08 Oct 2011 16:52:20 +0000</pubDate>
			<dc:creator>erix_on</dc:creator>
			<guid isPermaLink="false">975@http://www.dudasprogramacion.com/</guid>
			<description><p>Saludos a Todos</p>
<p>Soy nuevo en este foro de hecho no se porgramar, es por eso que estoy buscando ayuda para lo siguiente, tengo este plugin jquery <a href="http://1.s3.envato.com/files/6525921/index.html" rel="nofollow">http://1.s3.envato.com/files/6525921/index.html</a> que es un slider de imagenes con efectos en el texto, realmente lo que me interesa son los efectos del texto, ponerlos sobre las imagenes, la situacion es que solo se un poco de HTML Y pense en que tal ves este plugin se pudiera intregrar a wordpress pues yo trabajo bajo wordpress, tal vez usando algo de HTML o no se, quisera que me ayudaran a integrar este plugin a wordpress, Muchas gracias por su ayuda y hasta pronto.
</p></description>
		</item>
		<item>
			<title>lineadecodigo on "Al cerrar dialog que ejecute el action del form"</title>
			<link>http://www.dudasprogramacion.com/topic/al-cerrar-dialog-que-ejecute-el-action-del-form#post-966</link>
			<pubDate>Fri, 23 Sep 2011 11:36:24 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">966@http://www.dudasprogramacion.com/</guid>
			<description><p>@MatSumeri,</p>
<p>En el método click tienes un return false. Si este es el botón de envío, el uso del return false corta el submit() del formulario.
</p></description>
		</item>
		<item>
			<title>MatSumeri on "Al cerrar dialog que ejecute el action del form"</title>
			<link>http://www.dudasprogramacion.com/topic/al-cerrar-dialog-que-ejecute-el-action-del-form#post-965</link>
			<pubDate>Thu, 22 Sep 2011 17:56:49 +0000</pubDate>
			<dc:creator>MatSumeri</dc:creator>
			<guid isPermaLink="false">965@http://www.dudasprogramacion.com/</guid>
			<description><p>Tengo un form con un data picker, al llenar con las fechas se me habilita un boton de tipo submit el cual pasa por metodo post las fechas a otro form.</p>
<p>La gracia es que cuando le doy click al boton me muestra un dialogo de lo que se procedera a hacer, el tema es que cuando cierro el dialogo la idea es que haga la accion del form, como puedo lograr esto?</p>
<p>Este es mi dialogo</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
&amp;#60;script&amp;#62;
	$(function() {
		$( &quot;#dialog&quot; ).dialog({
			modal: true,
			autoOpen: false,
			closeOnEscape: false,
			show: &quot;fold&quot;,
			hide: &quot;explode&quot;
		});
		$( &quot;#inyecta&quot; ).click(function() {
			$( &quot;#dialog&quot; ).dialog( &quot;open&quot; );
			return false;
		});
	});
&amp;#60;/script&amp;#62;
&nbsp;</pre>
<p>Saludos
</p></description>
		</item>
		<item>
			<title>v2r3 on "Como acer menu acordeon de 2 niveles??"</title>
			<link>http://www.dudasprogramacion.com/topic/como-acer-menu-acordeon-de-2-niveles#post-963</link>
			<pubDate>Fri, 09 Sep 2011 21:49:19 +0000</pubDate>
			<dc:creator>v2r3</dc:creator>
			<guid isPermaLink="false">963@http://www.dudasprogramacion.com/</guid>
			<description><p>hola, bueno soy nuevo por aca, les cuento rapdio que necesito.<br />
estoy desarrollando en php y he integrado a mi codigo jquery por lo dinamico que este se ve.<br />
Bueno necesito implementar un menu Acordeon como en este ejemplo <a href="http://vagabundia.blogspot.com/2011/02/acordeones-simples-con-jquery.html" rel="nofollow">http://vagabundia.blogspot.com/2011/02/acordeones-simples-con-jquery.html</a><br />
pero necesito que en la opcion 1 aparesca otro menu con 2 opciones mas, lo logro meter pero al momento de dar click en el primer submenu me cierra el menu principal.</p>
<p>como puedo hacerlo?<br />
espero puedan ayudarme<br />
gracias y salu2
</p></description>
		</item>
		<item>
			<title>jasanchezflores on "Bienvenidos al foro jQuery"</title>
			<link>http://www.dudasprogramacion.com/topic/bienvenidos-al-foro-jquery#post-961</link>
			<pubDate>Fri, 02 Sep 2011 21:36:49 +0000</pubDate>
			<dc:creator>jasanchezflores</dc:creator>
			<guid isPermaLink="false">961@http://www.dudasprogramacion.com/</guid>
			<description><p>Quiero hacer un script para que se cargue una página en un div llamado destino, siendo una página distinta para cada enlace, (un menú de selección), y con un efecto fade in y fade out.</p>
<p>He conseguido hacer funcionar el efecto con el siguiente script</p>
<pre class="javascript" style="font-family:monospace;">&nbsp;
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#iddelhref&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>evento<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
evento.<span style="color: #660066;">preventDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#destino&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #339933;">,</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>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#destino&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;urlacargar.html&quot;</span><span style="color: #339933;">,</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>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#destino&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</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: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;</pre>
<p>Quiero simplificarlo para no tener que poner tanto código para cada uno de los enlaces.<br />
No logro que funcione. A ver si podeís ayudarme Gracias.</p>
<p>El código que tengo es éste.  </p>
<pre class="javascript" style="font-family:monospace;">&nbsp;
&nbsp;
$<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>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#destino&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;index_aj.html&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> clicked<span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&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>evento<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
clicked <span style="color: #339933;">=</span> evento.$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.nivel1&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>evento<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
evento.<span style="color: #660066;">preventDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#destino&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #339933;">,</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>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#destino&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span>clicked<span style="color: #339933;">,</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>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#destino&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</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: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">alert</span> <span style="color: #009900;">&#40;</span>clicked<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;</pre></description>
		</item>
		<item>
			<title>ejpprovoste on "Galería Jquery: Necesito minimizar su tamaño y no puedo."</title>
			<link>http://www.dudasprogramacion.com/topic/galeria-jquery-necesito-minimizar-su-tamano-y-no-puedo#post-960</link>
			<pubDate>Wed, 31 Aug 2011 13:23:19 +0000</pubDate>
			<dc:creator>ejpprovoste</dc:creator>
			<guid isPermaLink="false">960@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola,</p>
<p>estimados, buscando una solución a mi problema, he llegado aquí. Éste es mi primer post y espero poder recibir su ayuda, estimados (as) amigos (as).</p>
<p>Tengo una galería Jquery dentro de una ventana html y necesito achicar el tamaño de la galería completa para poder achicar, al mismo tiempo, el fondo (en este caso un jpg de prueba) del html.</p>
<p>La galería está en la siguiente url: <a href="http://www.marketingylogistica.cl/ethos" rel="nofollow">http://www.marketingylogistica.cl/ethos</a>
</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>krloz_link21 on "Mensaje al cerrar ventana Jquery"</title>
			<link>http://www.dudasprogramacion.com/topic/mensaje-al-cerrar-ventana-jquery#post-947</link>
			<pubDate>Mon, 30 May 2011 04:57:09 +0000</pubDate>
			<dc:creator>krloz_link21</dc:creator>
			<guid isPermaLink="false">947@http://www.dudasprogramacion.com/</guid>
			<description><p>Saludos. Saben como poner un sonido a la vez que te manda el alert? quiero ver si se puede hacer eso y como Agradeceria si me ayudaran.
</p></description>
		</item>
		<item>
			<title>lineadecodigo on "src enmascarado con variable ¿se puede?"</title>
			<link>http://www.dudasprogramacion.com/topic/src-enmascarado-con-variable-%c2%bfse-puede#post-945</link>
			<pubDate>Thu, 26 May 2011 20:17:47 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">945@http://www.dudasprogramacion.com/</guid>
			<description><p>@Lobodemonte,</p>
<p>Puedes pegarnos el código que tengas para orientarnos. ¿Una variable jQuery? No será javascript.
</p></description>
		</item>
		<item>
			<title>Lobodemonte on "src enmascarado con variable ¿se puede?"</title>
			<link>http://www.dudasprogramacion.com/topic/src-enmascarado-con-variable-%c2%bfse-puede#post-944</link>
			<pubDate>Thu, 26 May 2011 17:09:53 +0000</pubDate>
			<dc:creator>Lobodemonte</dc:creator>
			<guid isPermaLink="false">944@http://www.dudasprogramacion.com/</guid>
			<description><p>¿Dónde tienes la variable? </p>
<p>Gracias señor por su respuesta.  La variable es de Jquery.  En realidad quisiera como enmascarar el nombre de una imagen, un archivo .swf o una animación.  La idea es que en la página web de respuesta se active una imagen a petición al usuario.  Es por esta razón que debería ir en una variable.</p>
<p>Gracias.
</p></description>
		</item>
		<item>
			<title>lineadecodigo on "src enmascarado con variable ¿se puede?"</title>
			<link>http://www.dudasprogramacion.com/topic/src-enmascarado-con-variable-%c2%bfse-puede#post-941</link>
			<pubDate>Thu, 26 May 2011 00:06:14 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">941@http://www.dudasprogramacion.com/</guid>
			<description><p>@Lobodemonte,</p>
<p>Si la variable la tienes en javascript. Puedes generar el código dinámicamente:</p>
<pre class="javascript" style="font-family:monospace;">&nbsp;
<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;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> url <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;img/photos/1.jpg&quot;</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;img src='&quot;</span> <span style="color: #339933;">+</span> url <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;' width=620&amp;#62;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</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>
<p>¿Dónde tienes la variable?
</p></description>
		</item>

	</channel>
</rss>

