<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>moure.es - Alfonso Moure Ortega &#187; addons</title>
	<atom:link href="http://www.moure.es/tag/addons/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.moure.es</link>
	<description>innovation is the rule, not the exception</description>
	<lastBuildDate>Thu, 11 Aug 2011 10:07:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Peleando para trabajar con AJAX, JSON y PHP</title>
		<link>http://www.moure.es/2009/06/peleando-para-trabajar-con-ajax-json-y-php/</link>
		<comments>http://www.moure.es/2009/06/peleando-para-trabajar-con-ajax-json-y-php/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 21:25:22 +0000</pubDate>
		<dc:creator>moure</dc:creator>
				<category><![CDATA[desarrollo]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[addons]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.moure.es/?p=158</guid>
		<description><![CDATA[Bueno, como vistes en mi anterior post, ando jugueteando a ratos con Javascript y algunas de sus mejores funcionalidades (o metodologías, como prefiráis): AJAX y JSON. Como muchos sabéis, la gran utilidad que se nos presenta explotando estas tres tecnologías (este método, éste protocolo y este lenguaje de programación de scripting de lado de servidor, [...]]]></description>
			<content:encoded><![CDATA[<p>Bueno, como vistes en mi anterior post, ando jugueteando a ratos con Javascript y algunas de sus mejores funcionalidades (o metodologías, como prefiráis): AJAX y <a title="JSON con PHP" href="http://www.moure.es/2009/06/ajax-y-jquery-llamando-a-funciones-de-php-desde-el-cliente/">JSON</a>. Como muchos sabéis, la gran utilidad que se nos presenta explotando estas tres tecnologías (este método, éste protocolo y este lenguaje de programación de scripting de lado de servidor, para ser exáctos) es la posibilidad de intercambiar datos entre cliente y servidor de manera asíncrona y sin tener que recargar todo el HTML de la página, y por lo tanto, de enviar comandos en uno u otro sentido y conocer el resultado de los mismos.</p>
<p>En PHP existen dos maneras de recoger información que venga del exterior: mediante GET o mediante POST. Cuando trabajamos con GET, podemos probar bien nuestras aplicaciones haciendo uso del ya bien conocido QueryString de la URL, pero cuando tratemos de trabajar diréctamente mediante POST (bastante más seguro y útil) la cosa se vuelve más complicada.</p>
<p>¿Quién no ha desperdiciado horas tratando de enviar parámetros por POST a una aplicación PHP para probar su funcionamiento?</p>
<p>Hoy he visto la luz. Que sí, que muchos ya conoceríais su existencia, pero&#8230; he encontrado este Addon de Firefox que nos permite controlar los parámetros que enviamos a la aplicación tanto mediante GET como POST y probar así diferentes juegos de prueba. Se llama <a title="Tamper Data, Firefox addon" href="https://addons.mozilla.org/en-US/firefox/addon/966">Tamper Data</a>, y os puede facilitar mucho la vida <img src='http://www.moure.es/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Mira que siempre he sido un buen amante de los <a title="Firefox addons" href="http://www.webdesignbooth.com/35-absolutely-useful-firefox-plugins-for-web-designers-and-developers/">addons para Firefox</a>, pero por suerte o por desgracia soy un programador muy tradicional y siemre intento hacer todo <em>a manita</em> y pasando de herramientas externas siempre que me fuera posible. Porque, como bien me dicen mis amigos, siempre me gusta reinventar la rueda&#8230; ¡qué le vamos a hacer!</p>
<p>Y, como no, también nos permitirá ver la respuesta que recibimos del servidor de manera sencilla, aunque si trabajais con JSON, os recomiendo también instalar otra extensión: <a title="JSONView" href="https://addons.mozilla.org/en-US/firefox/addon/10869">JSONView</a>, que nos mostrará formateada y resaltada mediante diferentes colores y formas nuestras estructuras JSON sin necesidad de andar haciendo <em>pirulas</em> con nuestro Javascript (esos históricos <em>alert(miobjeto.toString());</em> que tanto usamos para hacer pruebas de Javascript&#8230;</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark</em></strong></a>
<br />
<div class="d">
<br />
<a href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;submitHeadline=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP&amp;submitSummary=" rel="nofollow" title="Añadir a&nbsp;Buzz"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/buzz.png" title="Añadir a&nbsp;Buzz" alt="Añadir a&nbsp;Buzz" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;title=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;Del.icio.us"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/delicious.png" title="Añadir a&nbsp;Del.icio.us" alt="Añadir a&nbsp;Del.icio.us" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;title=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;digg"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/digg.png" title="Añadir a&nbsp;digg" alt="Añadir a&nbsp;digg" /></a>
<a href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;title=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;DotNetKicks"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Añadir a&nbsp;DotNetKicks" alt="Añadir a&nbsp;DotNetKicks" /></a>
<a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F" rel="nofollow" title="Añadir a&nbsp;Facebook"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/facebook.png" title="Añadir a&nbsp;Facebook" alt="Añadir a&nbsp;Facebook" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;title=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;Google Bookmarks"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/google.png" title="Añadir a&nbsp;Google Bookmarks" alt="Añadir a&nbsp;Google Bookmarks" /></a>
<a href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;bm_description=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;Mister Wong"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Añadir a&nbsp;Mister Wong" alt="Añadir a&nbsp;Mister Wong" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;title=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;reddit"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/reddit.png" title="Añadir a&nbsp;reddit" alt="Añadir a&nbsp;reddit" /></a>
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;title=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;Slashdot"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Añadir a&nbsp;Slashdot" alt="Añadir a&nbsp;Slashdot" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;title=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;Stumble Upon"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Añadir a&nbsp;Stumble Upon" alt="Añadir a&nbsp;Stumble Upon" /></a>
<a href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F" rel="nofollow" title="Añadir a&nbsp;Technorati"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/technorati.png" title="Añadir a&nbsp;Technorati" alt="Añadir a&nbsp;Technorati" /></a>
<a href="http://tipd.com/submit.php?url=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F" rel="nofollow" title="Añadir a&nbsp;Tip'd"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/tipd.png" title="Añadir a&nbsp;Tip'd" alt="Añadir a&nbsp;Tip'd" /></a>
<a href="http://twitter.com/home/?status=Check+out+Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP+@+http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F" rel="nofollow" title="Añadir a&nbsp;Twitter"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/twitter.png" title="Añadir a&nbsp;Twitter" alt="Añadir a&nbsp;Twitter" /></a>
<a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.moure.es%2F2009%2F06%2Fpeleando-para-trabajar-con-ajax-json-y-php%2F&amp;t=Peleando+para+trabajar+con+AJAX%2C+JSON+y+PHP" rel="nofollow" title="Añadir a&nbsp;Yahoo My Web"><img class="social_img" src="http://www.moure.es/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Añadir a&nbsp;Yahoo My Web" alt="Añadir a&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.moure.es/2009/06/peleando-para-trabajar-con-ajax-json-y-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

