<?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; Forum: jQuery - Recent Posts</title>
		<link>http://www.dudasprogramacion.com/forum/jquery</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Feb 2012 21:46:01 +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/forum/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>skan on "Menús desplegables. Guardar posición?"</title>
			<link>http://www.dudasprogramacion.com/topic/menus-desplegables-guardar-posicion#post-984</link>
			<pubDate>Fri, 28 Oct 2011 00:32:53 +0000</pubDate>
			<dc:creator>skan</dc:creator>
			<guid isPermaLink="false">984@http://www.dudasprogramacion.com/</guid>
			<description><p>Imaginad que hago una lista expandible<br />
Ya sea con &#60;div data-role="collapsible-set"&#62;<br />
o con &#60;ul data-role="listview"&#62; y listas anidadas</p>
<p>Y acabamos seleccionando algún elemento que tiene un link a otra página.<br />
Una página simple con una foto a pantalla completa y un botón para volver atrás.</p>
<p>¿Cómo hago para que al volver atrás se encuentre el menú desplegado exactamente del mismo modo?
</p></description>
		</item>
		<item>
			<title>gormhonk on "eliminar iframe o modificar iframe con jquery"</title>
			<link>http://www.dudasprogramacion.com/topic/eliminar-iframe-o-modificar-iframe-con-jquery#post-982</link>
			<pubDate>Tue, 25 Oct 2011 11:13:08 +0000</pubDate>
			<dc:creator>gormhonk</dc:creator>
			<guid isPermaLink="false">982@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola,<br />
Mi duda es la siguiente:<br />
Me creo un iframe en un .js de la siguiente manera:<br />
       $('#vista').html('&#60;iframe src="http://aqui pongo la url"/&#62;');<br />
       Desde aqui se hace una llamada a un documento .htm</p>
<p>En el documento htm hago un embed de un flash que quiero visualizar:<br />
      var body = document.getElementById('body');<br />
      body.innerHTML =  '&#60;embed id="previewComp" y aqui monto el componente flash.</p>
<p>Pues aqui viene la cuestion. La primera vez me visualiza el flash correctamente, pero el problema me viene la segunda vez que lo quiero visualizar que me da un error. Me gustaria saber si ¿se puede eliminar un iframe que tiene dentro un embed con un flash?¿Y como se haria? He intentado hacerlo con remove,con empty, pero no lo consigo.</p>
<p>Si me podeis ayudar os lo agradezco muchisimo, estoy totalmente bloqueada y no soy capaz de conseguirlo.</p>
<p>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>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>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>Ch0m0 on "ayuda al ocultar un div"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-al-ocultar-un-div#post-955</link>
			<pubDate>Sun, 21 Aug 2011 15:46:34 +0000</pubDate>
			<dc:creator>Ch0m0</dc:creator>
			<guid isPermaLink="false">955@http://www.dudasprogramacion.com/</guid>
			<description><p>primer que nada de ate mano muchas gracias</p>
<p>mi problema es el siguiente, tengo un div que se oculta al entrar a mi sitio</p>
<pre class="lenguaje" style="font-family:monospace;">&nbsp;
$('document').ready(function(){
	$('#pro').hide('fast');
});
&nbsp;</pre>
<p>el detalle esta en que tiene una consulta, y antes de ocultarse se muestra el contenido de este div, y no quiero que eso suceda... alguien sabe como prevenir el 'flashaso' de la informacion contenida con el div
</p></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>Unai Valle on "Mensaje al cerrar ventana Jquery"</title>
			<link>http://www.dudasprogramacion.com/topic/mensaje-al-cerrar-ventana-jquery#post-934</link>
			<pubDate>Tue, 17 May 2011 23:05:26 +0000</pubDate>
			<dc:creator>Unai Valle</dc:creator>
			<guid isPermaLink="false">934@http://www.dudasprogramacion.com/</guid>
			<description><p>Lo que tienes que hacer es usar el evento onclose:</p>
<pre class="html4strict" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;#60;</span>body onclose=&quot;mostrarAlert()&quot;<span style="color: #ddbb00;">&amp;#62;</span></pre>
<p>La función mostrarAlert() se ejecutará cuando abandones la página (se cierre el navegador, se pulse el botón Atrás, se pincha en un enlace...)
</p></description>
		</item>
		<item>
			<title>djtitox on "Mensaje al cerrar ventana Jquery"</title>
			<link>http://www.dudasprogramacion.com/topic/mensaje-al-cerrar-ventana-jquery#post-930</link>
			<pubDate>Fri, 13 May 2011 17:47:41 +0000</pubDate>
			<dc:creator>djtitox</dc:creator>
			<guid isPermaLink="false">930@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola Necesito ayuda con lo siguiente por favor</p>
<p>Lo que necesito es que al cerrar una pagina me lance un alert como en javascript pero quiero hacerlo con jquery ya que en javascript no me deja poner un titulo en la caja de alerta.</p>
<p>la verdad eh intentado hacerlo con jalert query pero solo salen ejemplos desde un boton y lo que yo necesito es que se dispare el evento al cerrar la pagina y bueno no entiendo muy bien como hacerlo.</p>
<p>Muchas Gracias
</p></description>
		</item>

	</channel>
</rss>

