<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>codetheora</title>
	<atom:link href="http://codetheora.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://codetheora.wordpress.com</link>
	<description>Benji'N'Tech</description>
	<pubDate>Wed, 12 Dec 2007 22:34:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>es</language>
			<item>
		<title>AJAX con JQuery</title>
		<link>http://codetheora.wordpress.com/2007/12/12/ajax-con-jquery/</link>
		<comments>http://codetheora.wordpress.com/2007/12/12/ajax-con-jquery/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 22:33:24 +0000</pubDate>
		<dc:creator>codetheora</dc:creator>
		
		<category><![CDATA[ajax]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://codetheora.wordpress.com/2007/12/12/ajax-con-jquery/</guid>
		<description><![CDATA[JQuery nos da los metodos $.ajax, $.post y $get para manejar peticiones AJAX. Los dos últimos son derivados de $.ajax, con una interfaz mas simple. $.ajax es el más completo y nos permite manipular la petición a nuestro antojo como muestro a continuación:

function openAjax(url, data) {
	$.ajax({
		type: &#8220;POST&#8221;,
		url: url,
		data: data,
		beforeSend: function() {
			$(&#8217;#ajax&#8217;).hide();
			$(&#8217;#ajax&#8217;).html(&#8221;);
			$(&#8217;#ajax_loading&#8217;).fadeIn(&#8217;slow&#8217;);
		},
		success: function(callback) {
			$(&#8217;#ajax&#8217;).html(callback);
		},
		complete: function() {
			$(&#8217;#ajax_loading&#8217;).hide();
			$(&#8217;#ajax&#8217;).fadeIn(&#8217;slow&#8217;);
		},
		error: [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://jquery.com/">JQuery</a> nos da los metodos <a href="http://docs.jquery.com/Ajax">$.ajax</a>, <a href="http://docs.jquery.com/Ajax/jQuery.post">$.post</a> y <a href="http://docs.jquery.com/Ajax/jQuery.get">$get</a> para manejar peticiones <a href="http://es.wikipedia.org/wiki/AJAX">AJAX</a>. Los dos últimos son derivados de <a href="http://docs.jquery.com/Ajax">$.ajax</a>, con una interfaz mas simple. <a href="http://docs.jquery.com/Ajax">$.ajax</a> es el más completo y nos permite manipular la petición a nuestro antojo como muestro a continuación:</p>
<p><code><br />
function openAjax(url, data) {<br />
	$.ajax({<br />
		type: &#8220;POST&#8221;,<br />
		url: url,<br />
		data: data,<br />
		beforeSend: function() {<br />
			$(&#8217;#ajax&#8217;).hide();<br />
			$(&#8217;#ajax&#8217;).html(&#8221;);<br />
			$(&#8217;#ajax_loading&#8217;).fadeIn(&#8217;slow&#8217;);<br />
		},<br />
		success: function(callback) {<br />
			$(&#8217;#ajax&#8217;).html(callback);<br />
		},<br />
		complete: function() {<br />
			$(&#8217;#ajax_loading&#8217;).hide();<br />
			$(&#8217;#ajax&#8217;).fadeIn(&#8217;slow&#8217;);<br />
		},<br />
		error: function() {<br />
			$(&#8217;#ajax&#8217;).html(&#8217;Ajax ERROR.&#8217;);<br />
		}<br />
	});<br />
}<br />
</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/codetheora.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/codetheora.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codetheora.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codetheora.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codetheora.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codetheora.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codetheora.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codetheora.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codetheora.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codetheora.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codetheora.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codetheora.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codetheora.wordpress.com&blog=599689&post=3&subd=codetheora&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codetheora.wordpress.com/2007/12/12/ajax-con-jquery/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>