Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/08/2010, 10:14
oms02
 
Fecha de Ingreso: junio-2010
Mensajes: 373
Antigüedad: 13 años, 10 meses
Puntos: 11
diferencia entre llamadas ajax

Hola a todos.

Supongo que la novatada es un poco gorda pero me reconcomen ciertas dudas y esta es una de ellas.

Tengo 2 maneras de realizar una peticion ajax.

Una a traves de AJAX "puro":

Código:
function objetoAjax()
{
	var xmlhttp=false;
	try 
		{xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");}
	catch (e)
		{
		try
			{xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
		catch (E) 
			{xmlhttp = false;}
		}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined')
		{xmlhttp = new XMLHttpRequest();}
	return xmlhttp;
}


function X {

ajax=objetoAjax();
...
}
o bien a traves de jquery con $.get, $.post,...


Me gustaria saber las diferencias entre ambos metodos....
Alguno es mas rapido??

1 saludo y gracias.