Ver mi estado

lunes, octubre 09, 2006

AJAX Y USABILIDAD

Acrónimo de Asíncrono JAvascript y Xml

aqui encontraras de como utilizar la ingeniería AJAX para sacar mas provecho en el diseño de tus aplicaciones WEB

lo mas basico para el uso de la tecnología ajax es utilizar una de estas herramientas que vienen en distintos navegadores

EXPLORER xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
MOZILLA y NESTCAPE xmlhttp = new XMLHttpRequest();

para verificar entonces que herramienta utilizar y reconocer el navegador se pondria esta funcion la cual te devolveria el objeto adecuado

function getHTTPObject() {
var xmlhttp;
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
xmlhttp = false;
}
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp = false;
}
}
return xmlhttp;
}